Repository navigation
[local-make-worker-doctor-try-first-task-e2e-te] Make worker-doctor try-first-task e2e test independent of host service manager - #855
Merged
danii1 merged 1 commit intoDec 4, 2026
Conversation
… worker-doctor try-first-task e2e test independent of host service manager
Contributor
Author
Artifacts & verificationRun: 1735 · Commit: Verification reportProduced by Show artifactAuto-review summaryProduced by Show artifact |
danii1
deleted the
feature/local-make-worker-doctor-try-first-task-e2e-te
branch
December 4, 2026 15:22
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-make-worker-doctor-try-first-task-e2e-te: Make worker-doctor try-first-task e2e test independent of host service manager
The try-first-task e2e test in
worker-doctor.test.tshard-coded["service", "try-first-task"]as the next steps and read the command at index 1. It also inherited the host environment.buildWorkerDoctorReportswapsserviceforrun-foregroundwhen there is no service manager, as intended since PR #842. On containers and worker sandboxes the first step was thereforerun-foregroundand the test failed.What changed
In
packages/e2e/tests/local/worker-doctor.test.ts, the test now accepts eitherserviceorrun-foregroundas the first step. It still requires exactly two steps, withtry-first-tasklast. It finds the command by id instead of by index. The rest is unchanged: the command still runs through thedevinternshim and still checks that one task is enqueued headless.Scope
Included: the one failing test. I searched
packages/e2e/tests/localfor other assertions on aservicenext step. The only other test that touches this,worker-init-noninteractive.test.tsline 122, already accepts either step. The no-bus test inworker-init-noninteractive.test.tsand the earlier one inworker-doctor.test.tspin the env explicitly. Excluded: product code inreadiness-json.tsand the service-manager detection.Tradeoffs
I used the host-independent assertion rather than pinning the env. The test therefore doesn't pin which branch it takes, but it passes on both kinds of host. The pinned no-bus case is already covered by the earlier test. No e2e helper was added.
Blast Radius
Test-only change in one file. No product code or other callers are affected.
Verification
bun run --filter @getdevintern/code build.bun test tests/local/worker-doctor.test.tsinpackages/e2e: 2 pass, 0 fail. This sandbox has no systemd user bus, so it exercised therun-foregroundbranch, which failed before. I did not run it on a host with a bus, so theservicebranch is unverified.bun run typecheck,bun run lintandbun run formatcompleted without reported errors. I only looked at the last lines of their output.bun run testinpackages/e2ehad 512 pass, 1 fail. The failure wasa busy worker installs only after its task settlesinworker-auto-update.test.ts. That file passes when run alone (4 pass), so it looks like a flake under full-suite load. I did not run the full suite on the base commit, and I did not check whether the flake also happens there.🤖 Opened by DevIntern from local-make-worker-doctor-try-first-task-e2e-te