fix(tests): pin test-check-rtk-prefix.sh's pre-#113 corpus to a fixed SHA #131
Reference in New Issue
Block a user
Delete Branch "fix/rtk-prefix-test-pinned-ref"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The
run-testspre-push gate was failing on every branch, regardless of what was being pushed — discovered while trying to push unrelated work.tests/test-check-rtk-prefix.sh's "pre-#113 corpus trips the gate" case reconstructed the historical (pre-sweep) corpus by reading files off the livemainref, asserting the gate should still catch a known drift (gitea-issues/SKILL.md's un-prefixedgit remote get-url origin) there.mainis the moving integration branch, and the actual fix for that drift (commited8c99e) merged back ontomain— so the moment it merged,mainstopped containing the drift the test exists to catch, and the assertion silently inverted from "this should fail" to "this now passes, incorrectly expected to fail."Fix
Pin the historical-corpus reconstruction to
598a7c326a4bbfa4a39007eb95d944c4150686e8— the last commit beforeed8c99ewheregitea-issues/SKILL.mdstill had the unprefixed call — instead of the movingmainref. A specific commit SHA is immutable, so this can't drift again the same way.Also includes a routine
apm.lock.yamlrefresh to match the deployed install state (the drift AGENTS.md documents as expected from kyberforge'sSessionStarthook), needed to clear theapm-audit-cipre-push gate.Test plan
bash tests/test-check-rtk-prefix.sh— 23/23 passedbash tests/run-tests.sh --strict— 26/26 suites passed, 0 skipped, 0 failedapm audit --ci— 10/10 checks passedNo linked issue — this was discovered as a blocker, not filed ahead of time.
🤖 Generated with Claude Code
https://claude.ai/code/session_01PDj6F7SPXzh3FtPN78dZ88