test_05_upload_as_new_version_lands_in_staging_with_a_confirmed_link
automation/tests/docsvc/test_document_tmf_promotion.py::TestDocumentTMFPromotion::test_05_upload_as_new_version_lands_in_staging_with_a_confirmed_link
API test in suite
DocumentTMFPromotion ·
first seen 2026-08-27 06:38:14 UTC · last seen 2026-11-17 00:21:42 UTC
· ← all runs
Linear issues
| Issue | State | What it means now | Linked | |
|---|---|---|---|---|
| ENG-8846 [Test failure] Recommendations helper sends doc_id; docproc now reads docId, so the filter is ignored | Completed · [email protected] | fixed: ENG-8846 is Completed, and the test passes | 2026-11-15 01:44:19 UTC by triage-agent (agent) · for api-tests-master The test is wrong |
Each distinct failure it has had (4)
21eaf3d6e943
in 0 runs · first
api-tests-master jenkins-597
(2026-11-15 00:26:03 UTC) · last
api-tests-master jenkins-597
(2026-11-15 00:26:03 UTC)
why AssertionError: link should name the target: {'tildaid': '79ae9bc1-0b71-4383-94a1-2e679cd51732', 'recId': 'NZ0174DD', 'docId': '526b44e1-4833-42cd-be1d-ddb3e36a2635', 'userAction': 'Confirm', 'status': 'confirmed', 'category': 'Version Link', 'data': '', 'dataFormatted': None, 'suggestions': None, 'explanation': None, 'comment': None, 'commentAnnotatedBy': None, 'commentAnnotatedAt': None, 'severity': None, 'createdat': 1794703028653, 'updatedat': 1794703028653, 'allowedUserActions': ['Ignore'], 'documentName': 'IB_source_v2.0.pdf', 'documentCountry': '', 'siteName': None, 'siteId': None, 'studyId': '7a6864e8-b72e-437a-94dd-616ebd257037', 'studyName': 'TestStudy1794702404395741071', 'type': 'MANUAL', 'dependsOn': ['TMF Artifact'], 'locationType': None, 'pageIndex': None, 'xCoordinate': None, 'yCoordinate': None, 'isIgnoredBySupport': False, 'expectedValue': None, 'expectedSource': None, 'expectedCountry': None, 'expectedSite': None, 'isDiscrepancy': False, 'subartifactList': None, 'scopeList': None, 'metadataCodesWithMandatory': None, 'contentType': 'application/pdf', 'availableScopes': [], 'targetDocumentId': '543fa527-c8a1-4895-9bca-67189b12a859'}
assert '543fa527-c8a...-67189b12a859' == '22553117-0db...-1a22ea146e5c'
- 22553117-0db7-47be-bf57-1a22ea146e5c
+ 543fa527-c8a1-4895-9bca-67189b12a859
traceback
automation/tests/docsvc/test_document_tmf_promotion.py:379: in test_05_upload_as_new_version_lands_in_staging_with_a_confirmed_link
assert link["targetDocumentId"] == target_id, f"link should name the target: {link}"
E AssertionError: link should name the target: {'tildaid': '79ae9bc1-0b71-4383-94a1-2e679cd51732', 'recId': 'NZ0174DD', 'docId': '526b44e1-4833-42cd-be1d-ddb3e36a2635', 'userAction': 'Confirm', 'status': 'confirmed', 'category': 'Version Link', 'data': '', 'dataFormatted': None, 'suggestions': None, 'explanation': None, 'comment': None, 'commentAnnotatedBy': None, 'commentAnnotatedAt': None, 'severity': None, 'createdat': 1794703028653, 'updatedat': 1794703028653, 'allowedUserActions': ['Ignore'], 'documentName': 'IB_source_v2.0.pdf', 'documentCountry': '', 'siteName': None, 'siteId': None, 'studyId': '7a6864e8-b72e-437a-94dd-616ebd257037', 'studyName': 'TestStudy1794702404395741071', 'type': 'MANUAL', 'dependsOn': ['TMF Artifact'], 'locationType': None, 'pageIndex': None, 'xCoordinate': None, 'yCoordinate': None, 'isIgnoredBySupport': False, 'expectedValue': None, 'expectedSource': None, 'expectedCountry': None, 'expectedSite': None, 'isDiscrepancy': False, 'subartifactList': None, 'scopeList': None, 'metadataCodesWithMandatory': None, 'contentType': 'application/pdf', 'availableScopes': [], 'targetDocumentId': '543fa527-c8a1-4895-9bca-67189b12a859'}
E assert '543fa527-c8a...-67189b12a859' == '22553117-0db...-1a22ea146e5c'
E
E - 22553117-0db7-47be-bf57-1a22ea146e5c
E + 543fa527-c8a1-4895-9bca-67189b12a859
928ffe372f57
in 0 runs · first
api-tests-production jenkins-580
(2026-10-14 19:26:11 UTC) · last
api-tests-production jenkins-601
(2026-11-02 19:30:29 UTC)
why TimeoutError: Timed out waiting for docproc to record the Version Link on document 87b2dc45-0741-4949-bd88-bead9b32d375 after 30s
traceback
automation/tests/docsvc/test_document_tmf_promotion.py:378: in test_05_upload_as_new_version_lands_in_staging_with_a_confirmed_link
link = wait_for_version_link(test_headers, source_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
automation/utils/helpers/doc_helper.py:347: in wait_for_version_link
body = wait_for_condition(
automation/utils/helpers/wait_helper.py:27: in wait_for_condition
raise TimeoutError(f"Timed out waiting for {description} after {max_retries * interval}s")
E TimeoutError: Timed out waiting for docproc to record the Version Link on document 87b2dc45-0741-4949-bd88-bead9b32d375 after 30s
b360062659e0
in 0 runs · first
api-tests-production jenkins-599
(2026-11-01 19:23:47 UTC) · last
api-tests-production jenkins-599
(2026-11-01 19:23:47 UTC)
why failed on setup with "RuntimeError: add_site_to_study: study 10fb26c2-b28d-4575-990d-2e58d37f0c62 did not accept afac8a6f-e288-499c-a753-bc9a9b993a79: you do not have access to this resource"
traceback
automation/tests/fixtures/common.py:161: in shared_env
Study(cro_test_headers).add_site_to_study(
automation/models/study.py:63: in add_site_to_study
raise RuntimeError(
E RuntimeError: add_site_to_study: study 10fb26c2-b28d-4575-990d-2e58d37f0c62 did not accept afac8a6f-e288-499c-a753-bc9a9b993a79: you do not have access to this resource
e050857be931
in 0 runs · first
api-tests-master jenkins-509
(2026-09-10 12:56:33 UTC) · last
api-tests-master jenkins-577
(2026-10-29 00:22:03 UTC)
why failed on setup with "requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)"
traceback
.venv/lib/python3.12/site-packages/requests/models.py:978: in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/lib/python3.12/json/__init__.py:346: in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/lib/python3.12/json/decoder.py:338: in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/lib/python3.12/json/decoder.py:356: in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
automation/tests/fixtures/common.py:143: in shared_env
StudyActor(study["tildaid"], cro_test_headers).wait_till_default_actor_added()
automation/models/study_actor.py:171: in wait_till_default_actor_added
all_actors = response.json()
^^^^^^^^^^^^^^^
.venv/lib/python3.12/site-packages/requests/models.py:982: in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
E requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)