Repository navigation
fix(ci): unblock main by classifying failure routes for preview and fixing the access-log assertion (CHE-1143) - #100
Merged
Conversation
…ccess-log assertion (CHE-1143)
Author
|
This scheduled run's OCR status is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
mainis red (commit9745829), and every open PR fails the same Python job. Two independent causes:/api/system/failures. The preview allowlist (feat(artemis): per-PR preview L2b - route allowlist and synthetic control dispatch #92) refuses to boot a preview with an unclassified route, so 9 preview tests fail (require_classifiedatapps/admin_console/server.py:563). Production is not affected, because that check runs only in preview mode.test_access_logging.pyasserted the status phrase200 OK, but the redacted access formatter prints the numeric status withsession_id=...(CHE-1051 requires the session id). The test was inconsistent withtest_logging_redaction.py.What changed
preview_routes.py: classifyGET /api/system/failures,POST /api/system/failures/collectandPOST /api/system/failures/digestas DISABLED in preview. They are admin-only, and two of them write or send.test_access_logging.py: assertHTTP/1.1" 200andsession_id=access-testin the access line.Verified
Full unit suite: 3,652 passed, 9 skipped.
ruff check .: clean. I tried restoring uvicorn's own access formatter first. It drops the session id and broke 4 tests intest_logging_redaction.py, so I reverted it.Known limit
test_access_logging.pyfails when it runs aftertest_preview_profile.pyin the same process (5 failures onmaintoo). CI runs in file order, so it passes there. A separate issue tracks the isolation bug.Refs CHE-1143