Skip to content

Fix Python 3.12 test compatibility#1390

Merged
mrDzurb merged 3 commits into
mainfrom
ODSC-88950/fix-python312-test-compat
Jul 7, 2026
Merged

Fix Python 3.12 test compatibility#1390
mrDzurb merged 3 commits into
mainfrom
ODSC-88950/fix-python312-test-compat

Conversation

@mrDzurb

@mrDzurb mrDzurb commented Jul 3, 2026

Copy link
Copy Markdown
Member

Summary

  • update dataset correlation plotting to use the current matplotlib colormap API with a fallback for older matplotlib
  • make AQUA deployment test fixtures tolerant of OCI SDK generated-model schema differences
  • unblock Python 3.12 collection failures in AQUA deployment and dataset correlation plot tests

Details

Python 3.12 test runs were failing during collection due to dependency API drift:

  • matplotlib.cm.get_cmap is not available in newer matplotlib versions
  • newer OCI SDK models may not expose StreamConfigurationDetails
  • newer OCI SDK model constructors may reject fields such as stream_configuration_details and capacity_reservation_id

The test fixture now filters generated OCI model kwargs based on the installed SDK model’s declared swagger_types, and the dataset code uses mpl.colormaps when available.

Testing

  • git diff --check
  • Python 3.10.19:
    • python -m pytest tests/unitary/with_extras/dataset/test_dataset_correlation_plot.py -q
    • python -m pytest --collect-only tests/unitary/with_extras/aqua/test_deployment.py -q
  • Python 3.11.12:
    • python -m pytest tests/unitary/with_extras/dataset/test_dataset_correlation_plot.py -q
    • python -m pytest --collect-only tests/unitary/with_extras/aqua/test_deployment.py -q
  • Python 3.12.12:
    • python -m pytest tests/unitary/with_extras/dataset/test_dataset_correlation_plot.py -q
    • python -m pytest --collect-only tests/unitary/with_extras/aqua/test_deployment.py tests/unitary/with_extras/dataset/test_dataset_correlation_plot.py -q

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 3, 2026
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

📌 Cov diff with main:

Coverage-0%

📌 Overall coverage:

Coverage-18.43%

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

📌 Cov diff with main:

Coverage-0%

📌 Overall coverage:

Coverage-18.43%

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

📌 Cov diff with main:

Coverage-0%

📌 Overall coverage:

Coverage-18.42%

@mrDzurb
mrDzurb enabled auto-merge (squash) July 4, 2026 05:09
@mrDzurb
mrDzurb merged commit 45d7e38 into main Jul 7, 2026
21 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants