Skip to content

Fix migration image content directory setting#502

Merged
madebygps merged 1 commit into
mainfrom
fix/migration-image-content-dir
May 25, 2026
Merged

Fix migration image content directory setting#502
madebygps merged 1 commit into
mainfrom
fix/migration-image-content-dir

Conversation

@madebygps

Copy link
Copy Markdown
Collaborator

Summary

  • Set the migration image default curriculum path with the nested CONTENT__DIR environment variable.
  • Update deploy-time curriculum sync documentation references from CONTENT_DIR to CONTENT__DIR.

Why

The production deploy failed during the migration image self-check because the image still exported the old flat CONTENT_DIR name after the flat settings compatibility layer was removed.

Validation

  • cd api && uv run ruff check . ../packages/learn-to-cloud-shared
  • cd api && uv run ruff format --check . ../packages/learn-to-cloud-shared
  • cd api && uv run ty check --exclude scripts --exclude tests .
  • cd packages/learn-to-cloud-shared && uv run ty check --exclude tests .
  • cd api && uv run pytest tests/
  • cd packages/learn-to-cloud-shared && uv run pytest tests/
  • cd apps/verification-functions && uv run ruff check . && uv run ruff format --check . && uv run ty check . && uv run python -c "import function_app"
  • Local CONTENT__DIR YAML-loading smoke test passed.

Note: Docker is not installed in the current environment, so I could not run the exact container smoke test locally.

Use the nested CONTENT__DIR environment variable in the migration image so deploy-time curriculum validation can find the copied YAML content after flat settings compatibility was removed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@madebygps madebygps merged commit 59cc305 into main May 25, 2026
15 checks passed
@madebygps madebygps deleted the fix/migration-image-content-dir branch May 25, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant