Repository navigation
[local-test-e2e-cli-standalone-address-review-a-2] test(e2e): cli — standalone address-review and resolve-conflicts against an offline GitHub PR fake - #854
Merged
danii1 merged 1 commit intoDec 4, 2026
Conversation
…st(e2e): cli — standalone address-review and resolve-conflicts against an offline GitHub PR fake
Contributor
Author
Artifacts & verificationRun: 1729 · Commit: Verification reportProduced by Show artifactAuto-review summaryProduced by Show artifact |
danii1
deleted the
feature/local-test-e2e-cli-standalone-address-review-a-2
branch
December 4, 2026 14:41
Contributor
Author
|
🤖 Auto-merge: merged (squash) at Every changed file is inside the workspace's safe paths. |
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.
Why
Task local-test-e2e-cli-standalone-address-review-a-2: test(e2e): cli — standalone address-review and resolve-conflicts against an offline GitHub PR fake
The GitHub paths of standalone
address-reviewandresolve-conflictswere covered only by unit tests.cli.mdsaid GitHub "cannot be faked offline", which is outdated: the fetch preload plus a GitinsteadOfrule already do it. The GitLab runs already had offline CLI tests, so GitHub now has matching ones.What changed
providers/fake-github-worker-pulls.ts: newservePull(head, base). It serves a PR that already exists on the bare remote, instead of waiting for a worker'sPOST /pulls. No second fake was built.helpers/github-standalone-scenario.ts(new):GitHubStandaloneScenarioseeds the GitLab fixture repo, setsorigintohttps://github.com/e2e-org/fixture.gitand maps it to the bare remote. It starts the fake and sets up the preload and the deterministic agent.run()runs the built CLI,output()redacts the token, anddispose()releases the fake and the temp dir, each step independently.helpers/gitlab-webhook-scenario.ts:seedRepositoryandgitRewriteEnvare now exported for reuse.tests/local/cli-address-review-github.test.ts(new):--no-push, a stale--expected-head(exit 5, no agent run or push), a current--expected-head(fast-forward push), and--no-reply.tests/local/cli-resolve-conflicts-github.test.ts(new): a stale--expected-heador--expected-basedefers with exit 2 and no agent run or push.--no-pushleaves the remote unchanged. Current guards push a merge commit with parents[old head, base tip].docs/coverage/cli.md: updated both rows (evidence, missing,Last reviewed: 2026-12-04), struck through the GitHub half of Backlog Priority 9, and added a Test notes section for the new tests.Scope
Included: both gaps, GitHub standalone options, with assertions on the fake's request log (writes and unexpected routes), the remote's Git state, and token redaction. Excluded: GitHub
--ci-feedback(left in Missing; the GitLab test covers it), the scheduled/disabled worker mode ofresolve-conflicts, and any product code change.Tradeoffs
The GitLab helper's seeding and git rewrite are exported and reused, so the GitHub fixture reuses the GitLab-named module. I accepted that coupling over duplicating about 60 lines.
Observed (assert current behavior, unconfirmed intent):
address-reviewacknowledges an addressed review comment with ahoorayreaction (POST /pulls/comments/:id/reactions), not a reply. That reaction is the only write on success. The task text expected a reply, so the tests assert the reaction.--expected-headis asserted by exit code 5 and no agent run or push. The refusal message text is not asserted for GitHub.Blast Radius
Test-only changes plus two
exportkeywords.servePullis additive, so the worker offline suites that useFakeGitHubWorkerPullsare unaffected: the full suite ran 506 pass, 1 fail, and the one failure (below) is unrelated. The new tests skip if the CLI build is missing, like the other CLI tests. Each takes about 9–13 s.Verification
bun run --filter @getdevintern/code build: not re-run.packages/code/dist/index.jsalready existed and the tests ran against it.bun run --filter @devintern/e2e test: exit 1. The first full run reported 2 failures; I did not capture their names. A rerun gave 506 pass, 1 fail:worker-doctor.test.ts"offers try-first-task on a ready workspace" (expectedservice, receivedrun-foreground). It fails the same way when run alone. It looks caused by this sandbox having no service manager, and my changes don't touch the doctor code. I did not re-run it on the base commit, so "pre-existing" is unconfirmed. Both new test files pass.bun run --filter @devintern/e2e typecheck: pass.bun run --filter @devintern/e2e lint: 0 warnings and errors.bun run --filter @devintern/e2e format:check: pass.bun run lint(knip and ratchet): exit 0.🤖 Opened by DevIntern from local-test-e2e-cli-standalone-address-review-a-2