ci(upstream): keep merge report cleanup clean#54
Merged
code-yeongyu merged 1 commit intoJun 21, 2026
Conversation
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.
Fixes the upstream-agent merge workflow clean-tree failure from Actions run 27799681367.
What changed
scripts/archive-upstream-agent-report.mjsto copy.github/agent/last-merge-report.mdinto the QA evidence directory without leaving the automation branch dirty.upstream-agent-merge.ymlto use the helper instead ofcp+rm.Evidence
local-ignore/qa-evidence/20260619-actions-27799681367/red-existing-report-rm.txtreproducesD .github/agent/last-merge-report.mdand old gate exit 1.node --test scripts/archive-upstream-agent-report.test.mjspassed.local-ignore/qa-evidence/20260619-actions-27799681367/green-archive-report-gate.txtshows the helper preserves evidence and leavesgit status --porcelainempty.npm run checkpassed locally and in the pre-commit hook.npm run buildpassed locally.Known caveat
npm testwas run; it failed on unrelated live-provider/auth-dependent tests (401 invalid x-api-key, missing Cloudflare env) plus existing coding-agent live/RPC/flaky failures.packages/tuitests passed.Summary by cubic
Fixes the upstream-agent merge workflow’s clean-tree gate by archiving and cleanly removing the merge report so the branch stays clean and the gate stops failing.
scripts/archive-upstream-agent-report.mjsto copy.github/agent/last-merge-report.mdto the QA evidence dir ($EVIDENCE_DIRorlocal-ignore/qa-evidence/upstream-agent) and remove the source.git statusempty for the clean-tree gate.upstream-agent-merge.ymlto call the script instead ofcp+rm.scripts/archive-upstream-agent-report.test.mjsfor coverage.Written for commit 3098091. Summary will update on new commits.