-
Notifications
You must be signed in to change notification settings - Fork 60
Fix integration tests to run with instance_principal #339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix integration tests to run with instance_principal #339
Conversation
|
|
📌 Cov diff with main: No success to gather report. 😿 📌 Overall coverage: No success to gather report. 😿 |
|
1 similar comment
|
|
📌 Cov diff with main: No success to gather report. 😿 📌 Overall coverage: No success to gather report. 😿 |
|
|
||
| # Add default signer if the uri is an object storage uri, and | ||
| # the user does not specify config or signer. | ||
| if ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need to check on the "oci://"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just copied lines 94-99 (https://github.com/oracle/accelerated-data-science/blob/main/ads/jobs/serializer.py#L94-L99) from the same file, I think QQ told me he forgot to add this code here also. So my answer to your question - I do not know :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the uri does not start with oci://, the config and signer are not needed. Also we don't want to send the credentials to non-oci server (which could be a security issue).
|
📌 Cov diff with main: No success to gather report. 😿 📌 Overall coverage: No success to gather report. 😿 |
- removed hardcoded config path from test_dsc_job.py - added if to update kwargs with default_signer in jobs serializer write_to_fle - fixed check-docstring-first pro-commit check in serializer.py
- fix test_jobs_cli.py - fix test_jobs_notebook.py
- fix test_jobs_cli.py - fix test_jobs_runs.py
- fix test_jobs_cli.py
- updated driver_utils.py to work with Instance Principals - added default_signer() into test_notebook_driver_with_outputs()
5b1dd56 to
969e15d
Compare
|
📌 Cov diff with main: No success to gather report. 😿 📌 Overall coverage: No success to gather report. 😿 |
- set OCI_IAM_TYPE env var for run driver in jobs tests
|
📌 Cov diff with main: No success to gather report. 😿 📌 Overall coverage: No success to gather report. 😿 |
- fix typo in test_jobs_cli.py
|
📌 Cov diff with main: No success to gather report. 😿 📌 Overall coverage: No success to gather report. 😿 |
- updated tests in "other" folder
|
📌 Cov diff with main: No success to gather report. 😿 📌 Overall coverage: No success to gather report. 😿 |
- rollback changes in driver_utils.py - fix test_jobs_cli.py - fix test_artifact_saving_data.py
|
📌 Cov diff with main: No success to gather report. 😿 📌 Overall coverage: No success to gather report. 😿 |
- update env_vars to run_driver()
|
📌 Cov diff with main: No success to gather report. 😿 📌 Overall coverage: No success to gather report. 😿 |
- mark test_notebook_driver_with_outputs() skipped
|
📌 Cov diff with main: No success to gather report. 😿 📌 Overall coverage: No success to gather report. 😿 |
- fixes to OPCLT int tests
|
📌 Cov diff with main: No success to gather report. 😿 📌 Overall coverage: No success to gather report. 😿 |
- fixes to OPCLT int tests
|
📌 Cov diff with main: No success to gather report. 😿 📌 Overall coverage: No success to gather report. 😿 |
- fixes to OPCTL int tests - marked skipped one data_flow test
|
📌 Cov diff with main: No success to gather report. 😿 📌 Overall coverage: No success to gather report. 😿 |
|
|
||
| # Add default signer if the uri is an object storage uri, and | ||
| # the user does not specify config or signer. | ||
| if ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the uri does not start with oci://, the config and signer are not needed. Also we don't want to send the credentials to non-oci server (which could be a security issue).
Description
After we setup integration tests to run with instance principals we got 42 tests failed. This PR is to address integration tests and opctl tests. More fixes will follow in future PRs.
Jira for ALL Integration tests: https://jira.oci.oraclecorp.com/browse/ODSC-47592 (details in comments in subtasks)
Jira for OPCTL tests: https://jira.oci.oraclecorp.com/browse/ODSC-47603
In addition to code changed in the tests in this PR, there were updated done to Dynamic Groups and Policy so that instance principal will work with logs, buckets and dataflow service.
What was done
Pre-commit
Integration tests
Integration tests (no opctl included) passed with Python3.9:

Integration OPCTL tests passed on Python3.8:
