Skip to content

Fix CI: make staging-retention test self-contained - #2

Merged
Sap1k merged 1 commit into
mainfrom
claude/inspiring-davinci-r0rk8c
Oct 2, 2026
Merged

Sap1k merged 1 commit into
mainfrom
claude/inspiring-davinci-r0rk8c

Conversation

@Sap1k

@Sap1k Sap1k commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Summary

CI on main is red. tests/unit/test_national_jdf.py::test_build_retains_staging_directory_after_failure fails with:

PipelineError: JrUtil directory does not exist: /home/runner/work/obehy/jrutil

The test set jrutil_root and geodata_root to sibling checkouts next to the repo (WORKSPACE / "jrutil", WORKSPACE / "jrunify-ext-geodata" / "other"). Those directories exist on a dev machine but not on the CI runner. Because of that, _validate_build_config rejects the config before the test reaches the download failure it is meant to check.

This PR has the test create both directories under tmp_path, and it removes the WORKSPACE constant, which nothing else used. No production code changes.

Test plan

  • uv run pytest: 72 passed
  • uv run ruff check ., uv run ruff format --check . and uv run pyright are clean

🤖 Generated with Claude Code

https://claude.ai/code/session_015J2ywEJDXRpvxW8hbnGdKF


Generated by Claude Code

test_build_retains_staging_directory_after_failure pointed jrutil_root and
geodata_root at sibling checkouts beside the repo. Those exist on a dev
machine but not in CI, so build config validation failed before the
fixture download error could be raised. Use tmp_path directories instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015J2ywEJDXRpvxW8hbnGdKF
@Sap1k
Sap1k merged commit eeed893 into main Oct 2, 2026
2 checks passed
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.

2 participants