Repository navigation
[local-test-e2e-code-host-github-offline-worker] test(e2e): code-host-github — offline worker review-feedback polling and auto-merge watcher - #851
Merged
danii1 merged 1 commit intoDec 4, 2026
Conversation
…(e2e): code-host-github — offline worker review-feedback polling and auto-merge watcher
Contributor
Author
Artifacts & verificationRun: 1725 · Commit: Verification reportProduced by Show artifactAuto-review summaryProduced by Show artifact |
Contributor
Author
|
🤖 Auto-merge: merged (squash) at Every changed file is inside the workspace's safe paths. |
danii1
deleted the
feature/local-test-e2e-code-host-github-offline-worker
branch
December 4, 2026 14:23
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-code-host-github-offline-worker: test(e2e): code-host-github — offline worker review-feedback polling and auto-merge watcher
The GitHub worker loops had no offline coverage. A worker that opens a PR and then ignores "changes requested", answers the same comment twice, or auto-merges a PR it should hold is a user-facing failure. Only the one-shot
devintern auto-mergecommand and the GitLab worker loops were covered before. This change adds offline tests for review polling and the worker auto-merge watcher.What changed
providers/fake-github-worker-pulls.ts(new):FakeGitHubPullswith the routes a worker calls beyond it: PR create and list, repo metadata, and the base-branch check probe.providers/fake-github-pulls.ts(small edit):extraRoutehook for subclasses.FAKE_GITHUB_LOGIN.nextCommentIdprotected.helpers/github-offline-worker.ts(new):WorkerFixture, with the remote set tohttps://github.com/e2e-org/fixture.git.insteadOfwrapper, and points the API preload at the fake.poll_interval = 1, optional[workspace]auto-merge keys, and branch-head helpers.tests/local/worker-github-review-polling.test.ts(new):CHANGES_REQUESTEDreview with an inline comment.tests/local/worker-github-auto-merge.test.ts(new):PUT .../mergebody carries the headshaandmerge_method: squash, and theauto-mergedlabel is applied.needs-human-reviewlabel, status comment.needs-human-reviewlabel, comment names the path.docs/coverage/code-host-github.md:default.Scope
Included: both gaps, offline only. Excluded: CI repair, conflict resolution and
@mention(the rest of Priority 5), and the agent merge-safety review. No product code changed.Tradeoffs
installGitlabGitRewritefor the GitHub git mapping instead of duplicating it. It is host-agnostic despite the name.giton each request to read the head SHA and file list. That is cheap here and keeps the fake stateless about pushes.Blast Radius
fake-github-pulls.ts, and the change is additive (a hook that returnsundefinedby default). Its one consumer,github-auto-merge.test.ts, still passes in the full suite.packages/code/dist/index.jsexists.Verification
bun run --filter @getdevintern/code build: passed.bun run --filter @devintern/e2e test(full local suite): 503 pass, 16 skip, 3 todo, 1 fail.worker-doctor.test.ts, "offers try-first-task on a ready workspace". The received list contains an extrarun-foregroundstep.bun run --filter @devintern/e2e typecheck: passed.bun run --filter @devintern/e2e lint: 0 warnings, 0 errors.bun run --filter @devintern/e2e format:check: passed.bun run lint(including knip and the lint ratchet): completed with no reported findings.🤖 Opened by DevIntern from local-test-e2e-code-host-github-offline-worker