Repository navigation
ci: reuse green PR CI results in merge queue - #55
Merged
Merged
Conversation
Extract the native inspection path into InspectAsync to keep RunAsync within MA0051 after adding the reuse command.
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.
Refs #16. Live merge-queue proof (full run on this guarded PR, then a reuse skip on a subsequent non-guarded PR) follows after merge, so this PR leaves #16 open.
What changes
tools/OpenCode.Mcp.Tools/Ci/MergeGroupReuseDecision.cs&MergeGroupReuseRunner.cs:mastermerge-group commit with validpr-<n>-queue ref, head hash, and base hash.master.pull_requestrun of.github/workflows/ci.ymlfor the head succeeded in its latest attempt, with one successfulCI resultjob in that attempt.tested-tree-<run_attempt>artifact created within the attempt's successfulChangesjob window, with strict two-line tree and base-tree equality..github/**,tools/**,Directory.Build.*,Directory.Packages.props,global.json, andnuget.config.reuse=true|falseandreason=...and returning exit code 0 on unreadable facts or unwritable output (fail-safe; cancellation propagates).NativeCommand,NativeArguments,NativeApplication):merge-group-reuse --facts <dir> --output <file>before manifest loading, sodotnet run tools/native.cs -- merge-group-reuse ...runs withoutpackaging/native-manifest.json.InspectAsyncinNativeApplicationto keepRunAsyncwithinMA0051..github/workflows/ci.yml:changesrecords and uploadstested-tree-<run_attempt>(7-day retention) onpull_request.reusejob onmerge_group(10-minute timeout; read-onlycontents,actions,pull-requestspermissions;persist-credentials: falseon checkout). Its shell guard runs before .NET setup, checks freshly fetchedrefs/heads/masteragainst bothbase_shaandHEAD^1(blocking stacked/batched entries from running unmerged tooling) using step-scoped--config-env, and scans changed paths case-insensitively before invokingtools/native.cs.lintandbuild-and-testdepend on[changes, reuse]with!cancelled()sopushtomaster(wherereuseis skipped) and any failed/refusedreusejob run full CI.ci-resultfails closed on the updated verdict table, permitting skipped heavy jobs onreuseonly formerge_groupwithChangesgreen.docs/engineering/quality-gates.md,docs/engineering/workflow.md):tested-tree-<run_attempt>artifact,reusejob rules, fail-safe direction, re-run failed jobs limitation, permissions, 10-minute bound, and updatedCI resultverdict table.Verification
NativeArgumentsTestscoverage formerge-group-reuse.pr-prefix, wrong JSON type, non-hash tree/base-tree, and blank-linetested-treeinputs).7827d694): Slopwatch (0 issues), Release build with analyzers (0 warnings),dotnet format whitespace&style,tools/native.csbuild, full solution test suite (1037 passed, 0 failed, 0 skipped), andvalidateempty-receipt CLI smoke (exit 2, 6 ordered lines) all passed.