Repository navigation
test(adoption-wall): give each vitest worker its own sandbox root - #427
Merged
Merged
Conversation
The main() end-to-end cases mkdtemp'd their sandboxes under a FIXED path, node_modules/.aw-main-test/, and two afterAll hooks rmSync'd that whole directory. Two concurrent runs of this file against one checkout therefore shared a tree, and whichever suite finished first deleted the other's live sandboxes mid-run — surfacing as ENOENT on docs/index.html in whichever main() cases were in flight (2-4 of 270, varying by timing). Because it only bites under load, it reads as a regression in the code under test rather than as harness self-interference; two reviewers chased it as one. mkdtemp the worker's root under that path instead, and let each afterAll delete only its own. Nothing else changes: the sandbox still lives under node_modules so git, prettier and eslint ignore it and the child still resolves the repo's prettier and .prettierrc by walking up.
commit: |
Merged
jpr5
added a commit
that referenced
this pull request
Sep 11, 2026
Cuts the accumulated `[Unreleased]` work. **MINOR** — a new provider surface (BytePlus Ark video) and new endpoints, no breaking changes. **Prepared, not merged.** `publish-release.yml` fires on push-to-main, so merging this publishes to npm, tags `v1.41.0`, cuts the GitHub Release, dispatches the Docker build, and posts to Slack. Merge when you want it live. ## What ships Only **#424** (plus its follow-up **#429**, which fixes the same never-released BytePlus code) touches the published package. Verified against `package.json` `files` + `tsconfig` include/exclude: ``` git log v1.40.0..origin/main --oneline -- src/ ':(exclude)src/__tests__/' fixtures/ .claude-plugin/ skills/ CHANGELOG.md ``` …returns byteplus commits only. #422, #423, #425, #426, #427, #428 touch scripts/, .github/ and docs/ exclusively and are deliberately **not** in the CHANGELOG. ### Added - BytePlus Ark (Seedance) video record/replay — submit, poll and retrieve, stored as the raw Ark task envelope - `--provider-byteplus` flag ### Changed - `/api/v3` chat and image requests are attributed to the `byteplus` provider - `aimock-pytest` pin moves to 1.41.0 ### Fixed - Startup error when a BytePlus provider base already ends in `/api/v3` ## Version surfaces — seven, all bumped Found by grepping the tree for `1.40.0`, not from a checklist. **Zero occurrences of the old string remain** (excluding `CHANGELOG.md` history, `fixtures/` and `pnpm-lock.yaml`): | File | Field | 1.40.0 → 1.41.0 | | --- | --- | --- | | `package.json` | `version` | ✔ | | `charts/aimock/Chart.yaml` | `appVersion` (chart `version` stays `0.1.0`) | ✔ | | `.claude-plugin/plugin.json` | `version` | ✔ | | `.claude-plugin/marketplace.json` | `plugins[0].source.version` (`^1.41.0`) | ✔ | | `docs/index.html` | demo banner `aimock v…` | ✔ | | `packages/aimock-pytest/src/aimock_pytest/_version.py` | `AIMOCK_VERSION` npm pin | ✔ | | `packages/aimock-pytest/README.md` | `--aimock-version` default | ✔ | `AIMOCK_VERSION` **must** move this release: `/api/v3/contents/generations/tasks` is a new server route, so a default-download pytest user on the 1.40.0 pin would run a server without it. `packages/aimock-pytest/pyproject.toml` is deliberately untouched — that package versions on its own PyPI cadence. There is **no version constant in `src/cli.ts`** and **no `metadata.version` in `marketplace.json`** in this tree; both surfaces exist only in the release checklist, not in the repo. ## Drive-by: the npm description has been `<div align="center">` since the README got a centered header `npm view @copilotkit/[email protected] description` returns the literal string `<div align="center">`. Both README-subtitle extractors — the inline `node -e` in `publish-release.yml` and `syncDescriptionFromReadme()` in `scripts/drift-sync.ts` — skip `#`, `[`, ` https://claude.ai/code/session_01AvkmhXVLqSSEW6FvPQHSu5
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.
The premise was wrong; the flake is real
This started as "
adoption-wall.test.tsprobes live avatar URLs and GitHub's CDNrate-limits us under concurrent load". It does not touch the network at all.
Verified by preloading a spy that records every
net.Socket.connectanddns.lookup(and which propagates into the
tsxsandbox children themain()cases spawn):Positive control, same spy, one real
fetch:Every probe is already stubbed —
withFetchfor the unit cases, theAW_RUNNERglobalThis.fetchstub for the child process. The 6.3 s case is not network; it isthe script's own
CHECK_RETRY_BASE_MSbackoff (1 s + 2 s + 4 s) being spent for realinside the child on the
avatarStatus: 429path.What actually breaks
AW_SANDBOX_HOMEwas a fixed path,node_modules/.aw-main-test/, and twoafterAllhooksrmSync'd that whole directory. Two runs of this file against onecheckout — two agents, or a
vitestrun overlapping a watch — share that tree, andwhichever suite finishes first deletes the other's live sandboxes mid-run.
RED
Six staggered concurrent runs of the file, before the change:
Every failure is the same, and it names the mechanism:
Run alone the file is 270/270, which is why this reads as a regression in the code
under test rather than as the harness deleting its own files.
GREEN
Same six-way concurrency, three rounds, after the change: 18/18 runs
exit=0,270/270 each.
Mutation proof
Green is worthless if it is green for the wrong reason, so each affected case was
re-checked against a deliberate break of the guard it covers, in
scripts/update-adoption-wall.ts:if (!verdict.ok)→if (false)(neuters thescanIsConclusivestamp gate)does NOT advance lastScan when the avatar probes reached no verdictdoes NOT advance lastScan when a repo returned no usable metadatawriteFileSync(statePath, ...)recovers a state file that has aged past MAX_STATE_AGE_DAYS in one runreasons.push("${repo} is on the wall today but absent...")exits 20 and emits a scrapeable reason per problem when a tile disappearsThe 21-day-fuse guard still bites.
The change
mkdtempthe worker's sandbox root under that path and let eachafterAlldeleteonly its own. Nothing else moves — the sandbox still lives under
node_modules, sogit, prettier and eslint ignore it and the child still resolves the repo's own
prettierand.prettierrcby walking up. One test file touched; no production code,no assertion, no stub changed.
Nothing was stubbed, nothing left live
No test was converted, so no coverage moved. The four real failure classes stay
covered exactly as they were: 403/429 (
fetchRepoMetaRestrejects/403/,/429/;checkLogocalls 429/500/503inconclusive), network error, non-image content-type(
200 text/html→ dead), and a missing owner (api.github.com/user/<id>→ 404).Runtime
Unchanged — the fix is a path, not a timing change.
11.11 sbefore,11.02 safterfor the file alone;
22.14 swall for the full 5732-test suite.Gates (raw exit codes)
prettier --check .npx eslint .pnpm typechecknpx vitest run(5686 passed, 46 skipped)