SG-42503 Packaging for v3.10.2 #448
Build #20260602.3 had test failures
Details
- Failed: 8 (0.27%)
- Passed: 3,008 (99.73%)
- Other: 0 (0.00%)
- Total: 3,016
- 4343 of 5525 lines covered (78.61%)
Annotations
Check failure on line 590 in Build log
azure-pipelines / python-api
Build log #L590
Bash exited with code '1'.
azure-pipelines / python-api
tests/test_api.py::TestHumanUserAuth::test_humanuser_upload_thumbnail_for_version
self = <tests.test_api.TestHumanUserAuth testMethod=test_humanuser_upload_thumbnail_for_version>
def test_humanuser_upload_thumbnail_for_version(self):
"""simple upload thumbnail for version test as human user."""
this_dir, _ = os.path.split(__file__)
path = os.path.abspath(
os.path.expanduser(os.path.join(this_dir, "sg_logo.jpg"))
)
# upload thumbnail
thumb_id = self.sg.upload_thumbnail("Version", self.version["id"], path)
self.assertTrue(isinstance(thumb_id, int))
# check result on version
version_with_thumbnail = self.find_one_await_thumbnail(
"Version",
[["id", "is", self.version["id"]]],
)
self.assertEqual(version_with_thumbnail.get("type"), "Version")
self.assertEqual(version_with_thumbnail.get("id"), self.version["id"])
h = Http(".cache")
thumb_resp, content = h.request(version_with_thumbnail.get("image"), "GET")
self.assertIn(thumb_resp["status"], ["200", "304"])
self.assertIn(thumb_resp["content-type"], ["image/jpeg", "image/png"])
# clear thumbnail
> response_clear_thumbnail = self.sg.update(
"Version", self.version["id"], {"image": None}
)
tests/test_api.py:2485:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
shotgun_api3/shotgun.py:1565: in update
record = self._call_rpc("update", params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
shotgun_api3/shotgun.py:3805: in _call_rpc
self._response_errors(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <shotgun_api3.shotgun.Shotgun object at 0x7f9b41478cd0>
sg_response = {'error_code': 104, 'exception': True, 'message': 'API update() CRUD ERROR #4: The field is not editable for this user...ue => . RULE: {"path":"user", "relation":"is","values":[{"type":"HumanUser","id":0,"valid":"logged_in_user_token"}]}'}
def _response_errors(self, sg_response):
"""
Raise any API errors specified in the response.
:raises ShotgunError: If the server response contains an exception.
"""
# error code for authentication related problems
ERR_AUTH = 102
# error code when 2FA authentication is required but no 2FA token provided.
ERR_2FA = 106
# error code when SSO is activated on the site, preventing the use of username/password for authentication.
ERR_SSO = 108
# error code when Oxygen is activated on the site, preventing the use of username/password for authentication.
ERR_OXYG = 110
if isinstance(sg_response, dict) and sg_response.get("exception"):
if sg_response.get("error_code") == ERR_AUTH:
raise AuthenticationFault(
sg_response.get("message", "Unknown Authentication Error")
)
elif sg_response.get("error_code") == ERR_2FA:
raise MissingTwoFactorAuthenticationFault(
sg_response.get("message", "Unknown 2FA Authentication Error")
)
elif sg_response.get("error_code") == ERR_SSO:
raise UserCredentialsNotAllowedForSSOAuthenticationFault(
sg_response.get(
"message",
"Authentication using username/password is not "
"allowed for an SSO-enabled Flow Production Tracking site",
)
)
elif sg_response.get("error_code") == ERR_OXYG:
raise UserCredentialsNotAllowedForOxygenAuthenticationFault(
sg_response.get(
"message",
"Authentication using username/password is not "
"allowed for an Autodesk Identity enabled Flow Production Tracking site",
Raw output
/home/vsts/work/1/s/shotgun_api3/shotgun.py:4092: shotgun_api3.shotgun.Fault: API update() CRUD ERROR #4: The field is not editable for this user: [Version.image]. Rule: Artist -- PermissionRule 534: update_field_condition FOR entity_type => Version, field_name => , field_value => . RULE: {"path":"user", "relation":"is","values":[{"type":"HumanUser","id":0,"valid":"logged_in_user_token"}]}
Check failure on line 1 in tests/test_api.py::TestFind::test_in_relation_comma_multi_entity
azure-pipelines / python-api
tests/test_api.py::TestFind::test_in_relation_comma_multi_entity
self = <tests.test_api.TestFind testMethod=test_in_relation_comma_multi_entity>
def test_in_relation_comma_multi_entity(self):
"""
Test that 'in' relation using commas (old format) works with multi_entity fields.
"""
filters = [
[
"task_assignees",
"in",
self.human_user,
],
["project", "is", self.project],
]
result = self._id_in_result("Task", filters, self.task["id"])
> self.assertTrue(result)
E AssertionError: False is not true
tests/test_api.py:1670: AssertionError
Raw output
/opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/unittest/case.py:744: AssertionError: False is not true
Check failure on line 1 in tests/test_api.py::TestFind::test_in_relation_list_multi_entity
azure-pipelines / python-api
tests/test_api.py::TestFind::test_in_relation_list_multi_entity
self = <tests.test_api.TestFind testMethod=test_in_relation_list_multi_entity>
def test_in_relation_list_multi_entity(self):
"""
Test that 'in' relation using list (new format) works with multi_entity fields.
"""
filters = [
[
"task_assignees",
"in",
[
self.human_user,
],
],
["project", "is", self.project],
]
result = self._id_in_result("Task", filters, self.task["id"])
> self.assertTrue(result)
E AssertionError: False is not true
tests/test_api.py:1688: AssertionError
Raw output
/opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/unittest/case.py:744: AssertionError: False is not true
Check failure on line 1 in tests/test_api.py::TestFind::test_not_in_relation_multi_entity
azure-pipelines / python-api
tests/test_api.py::TestFind::test_not_in_relation_multi_entity
self = <tests.test_api.TestFind testMethod=test_not_in_relation_multi_entity>
def test_not_in_relation_multi_entity(self):
"""
Test that 'not_in' relation using commas (old format) works with multi_entity fields.
"""
filters = [
[
"task_assignees",
"not_in",
[
self.human_user,
],
],
["project", "is", self.project],
]
result = self._id_in_result("Task", filters, self.task["id"])
> self.assertFalse(result)
E AssertionError: True is not false
tests/test_api.py:1706: AssertionError
Raw output
/opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/unittest/case.py:738: AssertionError: True is not false