Skip to content

fix(#1153): upstream-assessment lands its report via PR - #1155

Merged
admarble merged 4 commits into
mainfrom
feature/1153-fix-ci-upstream-assessment-pushes-its-report-strai
Sep 25, 2026
Merged

admarble merged 4 commits into
mainfrom
feature/1153-fix-ci-upstream-assessment-pushes-its-report-strai

Conversation

@admarble

@admarble admarble commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Notes

  • AC-4 is post-merge (workflow_dispatch). Needs the repo setting "Allow GitHub Actions to create and approve pull requests". PRs from GITHUB_TOKEN do not trigger test/canary; close/reopen or push an empty commit to start CI.
  • CI workflow only; no gate test, so no mutation marker. Full npm test not run (no TS changes).

Closes #1153

🤖 Generated with Claude Code

Runner update after QA round 1 (owner decision: GitHub App token), eb5ecf1f

QA's three blockers, each reproduced by the runner, are addressed as follows:

  1. .gitignore override: new reports are staged with git add -f .sequant/upstream/. Checked locally: a plain git add -n exits 1 with "paths are ignored", and -f adds the file.
  2. Actions not allowed to create PRs (403): the push and gh pr create now authenticate as a GitHub App (actions/[email protected], SHA-pinned). GITHUB_TOKEN is reduced to contents: read + issues: write.
  3. A GITHUB_TOKEN PR starts no required checks: a PR opened by the App does start them.

Without the App configured (repo variable UPSTREAM_APP_CLIENT_ID unset), the run still succeeds. The report is uploaded as the upstream-assessment artifact with a ::warning:: and no push is attempted, so the Monday cron passes before the App exists.

Owner setup (issue AC-6):

  1. Create a GitHub App with Repository permissions Contents: read & write and Pull requests: read & write, then install it on sequant-io/sequant.
  2. Set repo variable UPSTREAM_APP_CLIENT_ID to the App's client ID, and secret UPSTREAM_APP_PRIVATE_KEY to a generated private key.
  3. Dispatch the workflow once and confirm the report PR shows test and canary.

The runner verified issue ACs 1–5 with their literal grep commands. AC-6 can only be checked after merge.

@admarble
admarble merged commit ed79d88 into main Sep 25, 2026
7 checks passed
@admarble
admarble deleted the feature/1153-fix-ci-upstream-assessment-pushes-its-report-strai branch September 25, 2026 18:39
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.

fix(ci): upstream-assessment pushes its report straight to main, which the #1109 ruleset rejects

1 participant