-
Notifications
You must be signed in to change notification settings - Fork 1.1k
wp6: pin Bun 1.4.2 and catch up the drifted workflow #4064
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,14 +33,19 @@ async function waitForPath(path: string): Promise<void> { | |
| } | ||
|
|
||
| async function waitForOwnedChild(child: ReturnType<typeof Bun.spawn>): Promise<number> { | ||
| // The child polls for the release marker on a 10 ms sleep, so its exit is bounded by the | ||
| // filesystem noticing that write plus one Bun teardown. On a loaded Windows runner both | ||
| // are slower than the 5 s this used to allow: shard 2/6 measured 5858 ms end to end and | ||
| // reported exit 143, which is this helper's own `kill()`, not a lock defect. Give the | ||
| // teardown room; a genuine hang still fails, it just takes longer to say so. | ||
| const result = await Promise.race([ | ||
| child.exited.then(exitCode => ({ exitCode })), | ||
| Bun.sleep(5_000).then(() => null), | ||
| Bun.sleep(30_000).then(() => null), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win Cancel the losing timer at
🤖 Prompt for AI Agents |
||
| ]); | ||
| if (result) return result.exitCode; | ||
| child.kill(); | ||
| await child.exited; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🤖 get_repo_knowledge executed:
Length of output: 18786 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- target test ---'
cat -n tests/config/config-mutation-lock.test.ts | sed -n '1,90p'
printf '%s\n' '--- related lifecycle test ---'
cat -n tests/clients/client-lifecycle-lock.test.ts | sed -n '1,80p'
printf '%s\n' '--- test/config references ---'
rg -n --glob '!*node_modules*' 'timeout|testTimeout|Bun\\.sleep|child\\.exited|config-mutation-lock|client-lifecycle-lock' package.json bunfig.toml tests src .github 2>/dev/null | head -240
printf '%s\n' '--- tracked root files ---'
git ls-files | sed -n '1,100p'Repository: lidge-jun/opencodex Length of output: 33877 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- package and Bun version ---'
cat -n package.json | sed -n '1,180p'
rg -n --hidden --glob '!node_modules/**' --glob '!dist/**' --glob '!build/**' '1\\.4\\.2|bun-version|BUN_VERSION|setup-bun|bun test --.*tests|config-mutation-lock' .github package.json bun.lockb bun.lock 2>/dev/null | head -180
printf '%s\n' '--- CI test commands around relevant jobs ---'
cat -n .github/workflows/ci.yml | sed -n '680,720p;820,850p'
printf '%s\n' '--- remaining target helper and its callers ---'
cat -n tests/config/config-mutation-lock.test.ts | sed -n '80,260p'
printf '%s\n' '--- changed-file status ---'
git status --short
git diff --stat -- tests/config/config-mutation-lock.test.tsRepository: lidge-jun/opencodex Length of output: 19427 🌐 Web query:
💡 Result: In Bun 1.4.2, the Citations:
Bound the post-kill cleanup wait. At 🤖 Prompt for AI Agents |
||
| throw new Error("Timed out waiting for owned config-lock child"); | ||
| throw new Error("Timed out waiting for owned config-lock child after 30s"); | ||
| } | ||
|
|
||
| beforeEach(() => { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The maintained Docker build now uses Bun 1.4.2, but
docs-site/src/content/docs/guides/remote-hub.md:168still tells users that the Dockerfile pins Bun 1.4.0. This makes the guide's exact runtime claim false for anyone building the documented deployment, so update that reference to 1.4.2 alongside the image pin.AGENTS.md reference: AGENTS.md:L371-L372
Useful? React with 👍 / 👎.