Skip to content

Return the context error when cancelled during parity - #157

Merged
nodeselector merged 2 commits into
mainfrom
nodeselector-prerc-6-parity-cancel
Oct 11, 2026
Merged

nodeselector merged 2 commits into
mainfrom
nodeselector-prerc-6-parity-cancel

Conversation

@nodeselector

@nodeselector nodeselector commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

If the run is cancelled during the parity check, it now reports the cancellation instead of continuing as if it had succeeded.


Part 6 of 6 (#152 → #157). Previous: #156

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Dependabot-proxy parity errors can still mask context.Canceled because the ordinary error is checked first.

1 open finding
What changed in this PR

Ensures parity-check cancellation is propagated instead of producing a normal result.

Changes:

  • Checks context cancellation after parity.
  • Adds cancellation-aware test helpers and regression coverage.
File Description
internal/​pipeline/​run.go Propagates parity cancellation.
cmd/​gh-actions-lock/​parity_test.go Tests cancellation during ancestry checks.
cmd/​gh-actions-lock/​command_test.go Adds context-aware command execution helper.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread internal/pipeline/run.go Outdated
@nodeselector
nodeselector force-pushed the nodeselector-prerc-6-parity-cancel branch from 7613ea4 to 8fbb4a1 Compare October 11, 2026 22:53
@nodeselector
nodeselector force-pushed the nodeselector-prerc-5-verify-ref-history branch 2 times, most recently from d06f9c0 to 3b7dcb1 Compare October 11, 2026 23:23
Ancestry checks and diagnosis can see a cancelled context and return
inconclusive results; without the check Run reported them as a normal
result.
Behind the proxy a cancelled history lookup came back as an inconclusive
ancestry error, which Run returned ahead of the context error.
@nodeselector
nodeselector changed the base branch from nodeselector-prerc-5-verify-ref-history to main October 11, 2026 23:26
@nodeselector
nodeselector force-pushed the nodeselector-prerc-6-parity-cancel branch from 8fbb4a1 to fcc1324 Compare October 11, 2026 23:26
@nodeselector
nodeselector merged commit 4f28243 into main Oct 11, 2026
12 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