Repository navigation
test(gitops): guard cases mutate a fixture, not the live request (DRF-72) - #85
Merged
Merged
Conversation
…-72) check_guards.sh used gitops/requests/tenant-a-docs-qa.yaml as its mutation fixture, so the PR that deleted the live requests in window P5-L3-20261125-01 (PR #81) turned CI red with FileNotFoundError. The cases now copy gitops/tests/fixtures/request-tenant-a.yaml into the temp tree under the live file's name, and a baseline check requires the unchanged copy with the fixture to pass check.sh before any case runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Follow-up F3 from window
P5-L3-20261125-01(docs/evidence/p5/P5-T4.2_L3_WINDOW_20261125.md§10).Problem:
gitops/tests/check_guards.shmutated the live requestgitops/requests/tenant-a-docs-qa.yaml. PR #81 deleted the live requests for the sandbox recreate, so the gitops CI failed withFileNotFoundError, althoughcheck.shpassed.Change:
gitops/tests/fixtures/request-tenant-a.yaml, a copy of the valid tenant-a request.check.shdoes not scangitops/tests/, so Argo CD never syncs this file.duplicate requestand.ymlcases read the fixture.check.sh, or the guard run stops with FAIL. Without it, a broken fixture could let a case fail for the wrong rule.Checked locally:
RESULT: PASS (77 guard cases …).docs--qa): baseline FAIL,RESULT: FAIL, rc 1.gitops/check.sh: PASS.The guard test logic changed, so Codex review is recommended (false-PASS risk).