Skip to content

Oasislmf ci update azure fix - #31

Merged
sambles merged 32 commits into
mainfrom
oasislmf-ci-update_azure-fix
Nov 19, 2026
Merged

sambles merged 32 commits into
mainfrom
oasislmf-ci-update_azure-fix

Conversation

@sambles

@sambles sambles commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Enable the PiWindAzure model test in CI. It runs against a local Azurite blob emulator started by testcontainers, so no real Azure credentials are needed.

Depends on OasisLMF/OasisDataManager#55.

Changes

Azurite test fixture (tests/azurite_setup.py, tests/conftest.py)

  • New session-scoped azurite_service fixture, loaded via pytest_plugins:
    • starts mcr.microsoft.com/azure-storage/azurite:3.35.0 (blob service only) with testcontainers
    • uploads PiWind/model_data and PiWind/keys_data into the data container under OasisPiWind/..., the paths that PiWindAzure's model_storage.json and lookup_config.json expect
    • sets AZURE_STORAGE_CONNECTION_STRING for the test session, using Azurite's public dev account key

@sambles
sambles marked this pull request as draft June 16, 2026 10:03
@sambles
sambles marked this pull request as ready for review November 5, 2026 11:25
- Request the azurite_service fixture only for models in AZURITE_MODELS,
  so other model tests no longer need Docker
- Remove the commented-out PiWindAzure SKIP_MODELS entry
- Delete PiWindAzure/docker-compose.azurite.yml, unused since the switch
  to testcontainers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sambles
sambles requested a review from Ha-Ree November 18, 2026 13:55
Comment thread tests/test_model_runs.py

# Models to skip, as (model_name, reason) tuples
SKIP_MODELS = [
("PiWindAzure", "requires Azure cloud credentials"),

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.

Will this need an update for piwind-mdk test on lmf?

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.

nope, it should just work 🤞

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.

No issues then will approve

Comment thread .github/workflows/model-tests.yml Outdated
- name: Install oasis-data-manager (git branch)
#if: ${{ inputs.oasis_data_manager_branch }}
run: pip uninstall oasis-data-manager -y && pip install "git+https://github.com/OasisLMF/OasisDataManager.git@${{ inputs.oasis_data_manager_branch || 'main' }}"
run: pip uninstall oasis-data-manager -y && pip install "oasis-data-manager[azure] @ git+https://github.com/OasisLMF/OasisDataManager.git@${{ inputs.oasis_data_manager_branch || 'fix/azure-env-connection-string' }}"

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.

'fix/azure-env-connection-string' left in for testing or meant to be here temporarily until something passes?

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.

oups, yes that should be set back to main

@sambles
sambles merged commit d744018 into main Nov 19, 2026
4 checks passed
@sambles
sambles deleted the oasislmf-ci-update_azure-fix branch November 19, 2026 17:57
benhayes21 added a commit that referenced this pull request Nov 23, 2026
Resolve import conflict in tests/conftest.py: keep pytest_plugins from #31
and the numpy import from this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants