Repository navigation
Conversation
0cb6d3e to
ff425eb
Compare
| FIXED_HEAD_SHA: ${{ steps.load-fix.outputs.head-sha }} | ||
| GIT_CONFIG_GLOBAL: /dev/null | ||
| GIT_CONFIG_NOSYSTEM: "1" | ||
| PARENT_HEAD_SHA: ${{ inputs.parent-head-sha }} |
There was a problem hiding this comment.
[P2] Use the resolved parent SHA in the split verifier
When the regression-test branch advances beyond inputs.parent-head-sha, preparation deliberately resolves and validates the newer head, then creates or reuses the fix on that revision. This new step instead compares the fix’s parent with the original input, rejecting a valid fix. I reproduced that failure with the extracted verification step; supplying the resolved parent succeeds. Use needs.fix.outputs.parent-head-sha here, and consistently pass the resolved parent to the persist/load actions.
|
|
||
| def test_reject_invalid_revisions(self): | ||
| for base, head in [ | ||
| ("main", self.head), |
There was a problem hiding this comment.
[P3] Test SHA-only validation with a resolvable branch
The fixture does not create main, so this case fails on a missing object even without the full-SHA validation. Removing both SHA regex guards in a temporary copy left this test passing, while a branch pointing to self.base was accepted. Create an explicit branch at self.base and reject that name in a focused named test, so the test protects the full-SHA requirement rather than missing-object handling.
The rebase, regression-test, and bug-fix automations each package and import Git bundles. Add shared
persist-commitandload-commitactions that pass an immutable artifact ID and expected commit SHA, require exactly the expected bundle ref, and verify ancestry without checking out the received code. Keep workflow-specific publication checks and credential gates in the callers, and restore the trusted workflow revision before invoking the local actions.