Skip to content

Add integration tests for multi-user support and other funnel regression bugs#489

Merged
nss10 merged 15 commits intomasterfrom
chore/add_new_g3wf_tests
Mar 17, 2026
Merged

Add integration tests for multi-user support and other funnel regression bugs#489
nss10 merged 15 commits intomasterfrom
chore/add_new_g3wf_tests

Conversation

@nss10
Copy link
Copy Markdown
Contributor

@nss10 nss10 commented Mar 4, 2026

Link to JIRA ticket if there is one: MIDRC-1166

New Features

Breaking Changes

Bug Fixes

Improvements

Dependency updates

Deployment changes

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

Failed to Prepare CI environment

Please find the Github Action logs here

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

Failed to Prepare CI environment

Please find the Github Action logs here

@nss10 nss10 changed the title Add integration tests for multi-user support Add integration tests for multi-user support and other funnel regression bugs Mar 4, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

Test summary after running integration tests

filepath passed failed error skipped SUBTOTAL
tests/test_gen3_workflow.py 0 0 16 0 16
tests/test_oauth2.py 15 0 0 0 15
tests/test_dicom_viewer.py 4 0 0 0 4
tests/test_centralized_auth.py 16 0 0 0 16
tests/test_graph_submit_and_query.py 13 0 0 1 14
tests/test_audit_service.py 3 0 0 3 6
tests/test_pfb_export.py 1 0 0 0 1
tests/test_guppy_service.py 8 0 0 0 8
tests/test_presigned_url.py 7 0 0 0 7
tests/test_data_upload.py 8 0 0 1 9
tests/test_dbgap.py 4 0 0 1 5
tests/test_requestor.py 5 0 0 0 5
tests/test_drs_endpoint.py 4 0 0 0 4
tests/test_user_token.py 5 0 0 0 5
tests/test_user_data_library.py 2 0 0 1 3
tests/test_study_viewer.py 3 0 0 0 3
tests/test_register_user.py 2 0 0 0 2
tests/test_client_credentials.py 1 0 0 0 1
tests/test_gen3client.py 1 0 0 0 1
tests/test_manifest_service.py 1 0 0 0 1
tests/test_login_page.py 2 0 0 0 2
tests/test_oidc_client.py 2 0 0 0 2
tests/test_google_data_access.py 1 0 0 0 1
tests/test_homepage.py 1 0 0 0 1
tests/test_ras_authn.py 0 0 0 3 3
tests/test_gen3ff_landing_page.py 0 0 0 2 2
tests/test_env_sanity.py 0 0 0 1 1
tests/test_etl.py 0 0 0 1 1
tests/test_discoverypage.py 0 1 0 0 1
tests/test_workspace.py 0 1 0 0 1
tests/test_aggregate_mds.py 0 1 0 0 1
TOTAL 109 3 16 14 142

Test summary after rerunning failed integration tests

filepath passed failed SUBTOTAL
tests/test_gen3_workflow.py 10 6 16
tests/test_discoverypage.py 1 0 1
tests/test_aggregate_mds.py 1 0 1
tests/test_workspace.py 0 1 1
TOTAL 12 7 19

Please find the detailed integration test report here

Please find the detailed integration test report after rerunning failed tests here

Please find the Github Action logs here

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

Failed to Prepare CI environment

Please find the Github Action logs here

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

Failed to Prepare CI environment

Please find the Github Action logs here

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

Test summary after running integration tests

filepath passed failed SUBTOTAL
tests/test_gen3_workflow.py 14 2 16
TOTAL 14 2 16

Test summary after rerunning failed integration tests

filepath failed SUBTOTAL
tests/test_gen3_workflow.py 2 2
TOTAL 2 2

Please find the detailed integration test report here

Please find the detailed integration test report after rerunning failed tests here

Please find the Github Action logs here

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

Test summary after running integration tests

filepath passed failed SUBTOTAL
tests/test_gen3_workflow.py 15 1 16
TOTAL 15 1 16

Test summary after rerunning failed integration tests

filepath failed SUBTOTAL
tests/test_gen3_workflow.py 1 1
TOTAL 1 1

Please find the detailed integration test report here

Please find the detailed integration test report after rerunning failed tests here

Please find the Github Action logs here

@nss10 nss10 requested a review from paulineribeyre March 4, 2026 19:41
},
]

for test_case in test_cases:
Copy link
Copy Markdown
Contributor Author

@nss10 nss10 Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can speed this up by creating all tasks in parallel, and polling them simultaneously. We can use* this design to combine more regression test cases and test them in parallel.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we not use pytest parametrize mark? - https://docs.pytest.org/en/stable/how-to/parametrize.html

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

Test summary after running integration tests

filepath passed failed SUBTOTAL
tests/test_gen3_workflow.py 15 1 16
TOTAL 15 1 16

Test summary after rerunning failed integration tests

filepath passed SUBTOTAL
tests/test_gen3_workflow.py 1 1
TOTAL 1 1

Please find the detailed integration test report here

Please find the detailed integration test report after rerunning failed tests here

Please find the Github Action logs here

Comment on lines +778 to +783
"command": ["echo 'This will fail' && exit 1"],
"expected_exit_code": 1,
"expected_state": "EXECUTOR_ERROR",
},
{
"command": ["False"],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you clarify in comments or the docstring the difference between the 2 cases, why does the TES server behave differently

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case of a command like False, we get a K8s error --

This is the cause of the System Error

Comment thread gen3-integration-tests/tests/test_gen3_workflow.py Outdated
Comment on lines +968 to +969
# TODO:
# * Test the POST /ga4gh/tes/v1/tasks:cancel with a task id that is not present in the system, and expect a 404 from gen3-workflow
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! there's a ticket for the next tests https://ctds-planx.atlassian.net/browse/MIDRC-1230

Are these just the ones you could think of off the top of your head, or did you go through the list on the OHSU slack board?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these just the ones you could think of off the top of your head.

Yeah, these were the "might as well"s!! !

Comment thread gen3-integration-tests/tests/test_gen3_workflow.py
@github-actions
Copy link
Copy Markdown

The style in this PR agrees with black. ✔️

This formatting comment was generated automatically by a script in uc-cdis/wool.

@github-actions
Copy link
Copy Markdown

Test summary after running integration tests

filepath passed failed SUBTOTAL
tests/test_gen3_workflow.py 13 3 16
TOTAL 13 3 16

Test summary after rerunning failed integration tests

filepath failed SUBTOTAL
tests/test_gen3_workflow.py 3 3
TOTAL 3 3

Please find the detailed integration test report here

Please find the detailed integration test report after rerunning failed tests here

Please find the Github Action logs here

Comment thread gen3-integration-tests/tests/test_gen3_workflow.py Outdated
Comment thread gen3-integration-tests/tests/test_gen3_workflow.py Outdated
Comment thread gen3-integration-tests/tests/test_gen3_workflow.py Outdated
@nss10 nss10 requested a review from paulineribeyre March 13, 2026 21:05
paulineribeyre
paulineribeyre previously approved these changes Mar 13, 2026
@github-actions
Copy link
Copy Markdown

filepath passed SUBTOTAL
tests/test_gen3_workflow.py 16 16
TOTAL 16 16

Please find the detailed integration test report here

Please find the Github Action logs here

haraprasadj
haraprasadj previously approved these changes Mar 17, 2026
},
]

for test_case in test_cases:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we not use pytest parametrize mark? - https://docs.pytest.org/en/stable/how-to/parametrize.html

@nss10 nss10 dismissed stale reviews from haraprasadj and paulineribeyre via 57e7cdd March 17, 2026 15:35
@github-actions
Copy link
Copy Markdown

filepath error SUBTOTAL
tests/test_gen3_workflow.py 5 5
TOTAL 5 5

Please find the detailed integration test report here

Please find the Github Action logs here

@github-actions
Copy link
Copy Markdown

filepath passed SUBTOTAL
tests/test_gen3_workflow.py 17 17
TOTAL 17 17

Please find the detailed integration test report here

Please find the Github Action logs here

Copy link
Copy Markdown
Contributor

@haraprasadj haraprasadj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@nss10 nss10 merged commit fcae56d into master Mar 17, 2026
5 checks passed
@nss10 nss10 deleted the chore/add_new_g3wf_tests branch March 17, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants