fix(review): verify PR head before E2E test commits - #4359
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4359 +/- ##
=======================================
Coverage 94.12% 94.12%
=======================================
Files 430 430
Lines 38181 38187 +6
Branches 13922 13924 +2
=======================================
+ Hits 35939 35945 +6
Misses 1585 1585
Partials 657 657
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-10 07:17:23 UTC
⏸️ Suggested Action - Manual Review
Review summary Blockers
Nits — 4 non-blocking
Concerns raised — review before merging
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 5bd8615 | Commit Preview URL Branch Preview URL |
Jul 10 2026, 07:02 AM |
…it-delivery test (#4627) Main-red: PR #4600 added this test before #4359 (merged same day) started verifying the live PR head/ref/sha inside commitE2eTestToPrBranch before ever writing. #4600 merged on top of #4359 without picking up the stub every sibling commit-delivery test already got in #4359's own diff, so this one test 404s on the live-PR fetch and silently declines the commit -- zero git-write calls, gitWrites stays empty. Adds the same GET /pulls/{n} stub the passing sibling tests already use.
Motivation
headRefcould be used to update the base repo branch when delivering generated E2E tests.Description
commitE2eTestToPrBranch(src/github/e2e-test-commit.ts) that fetches the live PR and declines delivery unlesslive.head.repo.full_name === args.repoFullNameand the liveref/shamatch the cached values.test/unit/e2e-test-commit.test.tsthat assert fork PRs are declined before any git write and that stale live-head data causes a decline.test/unit/queue.test.tsstubs to account for the new live-PR lookup paths used by the commit delivery flow.Testing
npx vitest run test/unit/e2e-test-commit.test.ts, which passed (all new/modified tests in that file succeeded).test/unit/queue.test.tsdue to a pre-existing duplicate identifier error (maybeProcessReviewCommand) already present in the codebase; this prevented the full queue suite from running in this environment.npm run typecheck, which surfaced pre-existing type errors unrelated to the change (duplicate implementations insrc/queue/processors.tsand a missingaws4fetchtype); no new type errors were introduced by the modified helper and tests.git diff --checkwith no whitespace/conflict issues reported for the modified files.Codex Task