Repository navigation
chore: shorten PR check latency - #985
Merged
Merged
Conversation
Use more test threads on the existing runners so filesystem and child-process waits can overlap. This is the first benchmark toward a three-minute PR gate; runner labels and the selected checks are unchanged. Assisted-by: gpt-6.1-sol
Contributor
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummarySets
Reviews (1) · Last reviewed commit: "chore: shorten PR check latency" · Reviewed by Greptile |
Preserve the initial 16-thread run and collect Cargo timings for the next experiment. Windows test builds omit debug information to measure its compile cost on the same runner CPUs. The faster Linux run exposed two fixture races: a reconnect request could join the still-finishing initial connection after Live was published, and another test fork could inherit a compaction fixture database handle. Wait for a Hello roundtrip before changing SSH config, and run the compaction fixture in its own process as its sibling lease tests do. Both focused tests passed ten stress iterations locally. Assisted-by: gpt-6.1-sol
Run frontend tests in two shards alongside the existing build and typecheck. Windows uses pinned Nextest to separate test processes: demo installation tests otherwise share a process-wide lock even when Rust runs more test threads. Keep zero retries, doctests, launcher checks, and the same runner labels and prices. Validated both frontend shards (768 tests each), UI build and typecheck, CI selection/aggregation tests, workflow lint, and focused Nextest plus doctest execution locally. The full local Nextest run passed 1906 of 1908 tests; two macOS process-inspection cases failed under parallel load and both passed when run alone. Nextest is only selected on Windows in CI. Assisted-by: gpt-6.1-sol
Run each provider-switch pair and each recovery/fork action as its own isolated test so the test runner can overlap their database work. Keep all nine provider pairs, five actions and their assertions. Use the existing child-test helper instead of two private subprocess wrappers. All fourteen cases passed locally in 4.767s with eight workers. Cargo fmt and clippy --all-targets --locked with warnings denied pass. Assisted-by: gpt-6.1-sol
Run Linux Rust lint separately from tests, and split x86 desktop lint/build on PRs as already done for ARM. The aggregate gate now requires both Rust jobs; a missing, skipped, cancelled or failed lint result cannot pass it. Keep Windows native commands in separate steps so a later success cannot overwrite an earlier Cargo failure in PowerShell. A temporary ignored profiling test measures path resolution, process construction, store setup and harness options on Windows; remove it after the experiment. Local validation: 13 CI selection/aggregation tests, workflow lint, formatting, and the profiling command pass. Assisted-by: gpt-6.1-sol
The isolated case matrix passed every assertion but increased Windows test execution from 328s to 485s by repeating setup. Restore the two original matrix tests before measuring registry lookup costs. Assisted-by: gpt-6.1-sol
Include the merged fork-switch race fix and the current agent-install changes without rewriting the published PR history. Assisted-by: gpt-6.1-sol
Preset registration repeatedly searched PATH while comparing each built-in agent with every prior entry. Resolve each launch identity once per registry pass and track its executable/argument key in a set, preserving custom entries, their order and duplicates, and current executable discovery on every call. Tests preserve duplicate custom definitions, distinguish arguments and refresh bare/absolute executable aliases as a fake binary appears and disappears. All 20 ACP and bridge tests passed locally, including the original complete switch/recovery matrices. Assisted-by: gpt-6.1-sol
Run Linux test binaries together and move helper protocol checks off the Rust test critical path. Preserve doc-tests and require helper results in the aggregate gate. Trial compiler query caching on Windows without increasing the cache storage limit. Assisted-by: gpt-6.1-sol
Commit core tables, added columns and deletion triggers together instead of flushing each DDL statement separately. Keep existing migrations and stored contracts. Verify rollback and simultaneous opens. Reserve the whole Nextest pool for the two tests that deliberately create non-dumpable processes, preserving concurrent cancellation proof assertions. Assisted-by: gpt-6.1-sol
Reuse compiler queries on Linux as well as Windows. Key PR snapshots by their main base to avoid uploading a fresh copy on each edit; successful main runs seed the next base. Keep the existing cache storage limit and runner labels. Compare the native Windows test runner after batching schema setup, move launcher builds and tests beside launcher lint, and remove temporary profiling. Make login expiry wait for its first poll before advancing the test clock, retaining all polling and expiration assertions. Assisted-by: gpt-6.1-sol
Reuse incremental compiler data for end-to-end builds on the same Linux runners. Start CLI and reconnect stress tests earlier so their waits overlap the smaller tests. Simplify the controlled login-expiry fixture to one shared lifetime value. Measure the Windows incremental cache sessions while benchmarking exact base-key reuse; remove this diagnostic after inspecting the archive growth. Assisted-by: gpt-6.1-sol
Apply SQLite busy_timeout immediately after opening the connection, before reader-floor queries or WAL setup. A zero-wait open previously stalled for the default five seconds; the regression test now passes with the full store suite. Run workflow lint in parallel with change selection while requiring it in the aggregate gate, and trial 32 test threads on the unchanged Windows runner. Remove the completed cache diagnostic. Assisted-by: gpt-6.1-sol
Use lld-link already installed on the Windows runner image for test binaries, with the same CPU and runner label. Benchmark linking separately from the preceding concurrency change. Assisted-by: gpt-6.1-sol
Use complementary native Cargo filters to run the 14 demo cases independently while preserving shared fixture setup within each process. The listed-test interface confirms all 1929 local cases across 17 binaries are covered exactly once, including ignored cases; Cargo retains doc-tests. Set the installed LLVM linker before cache identity is computed. Derive dependency and incremental namespaces from that setting, allow the full-suite job to seed matching PR dependencies, and make the demo job a reader of the shared cache. Assisted-by: gpt-6.1-sol
Warm a desktop development build snapshot on main and reuse it on both existing Linux architectures. Keep desktop tests in main and release runs, and keep release tests outside the development cache writer. The existing runner labels, CPU prices and cache storage limit stay unchanged. Assisted-by: gpt-6.1-sol
Advance the fixture clock only after discovery has observed an incomplete reload and started another poll. Keep the cold catalog and last complete pair assertions without requiring multiple network round trips inside 100 milliseconds. Assisted-by: gpt-6.1-sol
Reject different launch arguments before resolving executable paths. Definition deduplication keeps the same executable identity checks while avoiding filesystem work for unrelated commands. Assisted-by: gpt-6.1-sol
Fail if discovery finishes before the fixture observes its reload, so an early discovery error cannot leave the clock driver waiting indefinitely. Assisted-by: gpt-6.1-sol
Lint and test profiles produce different dependency metadata. Give lint its own cache writer and run the existing PR matrix on main so both profiles are available to later PRs. Release runs keep the unfiltered all mode. Assisted-by: gpt-6.1-sol
Concurrent fresh store opens can receive SQLITE_BUSY while changing journal mode even with a busy timeout configured. Retry only that idempotent pragma with bounded backoff inside the requested lock-wait budget, then restore the connection timeout. Keep schema failures and zero-wait opens visible. Assisted-by: gpt-6.1-sol
Keep a successful test build reusable when a later test fails. Restore compiler queries once for both test groups, and let only the core group save them after a successful no-run build. Test failures still fail the required gate; cached dependencies and compiler queries do not cache test outcomes. Assisted-by: gpt-6.1-sol
Return native Windows tests to sixteen threads after the thirty-two-thread trial failed to improve measured suite time. Runner labels and CPU prices stay unchanged. Assisted-by: gpt-6.1-sol
Keep journal-mode retries and their deadline in one error loop. A store already in WAL mode avoids resetting its busy handler before the first pragma attempt; successful setup restores the requested connection timeout. Assisted-by: gpt-6.1-sol
Measure the existing PowerShell CIM inventory in the lint job before deciding whether native process cleanup warrants more platform code. This diagnostic step is temporary and will be removed after the measurements. Assisted-by: gpt-6.1-sol
Measure one maximum-size host hash and the disconnect, reconnect and page-read phases inside the existing hundred-reconnect stress test. Expose only that test output. Remove the diagnostics and output override after the measurement. Assisted-by: gpt-6.1-sol
Name the database path and offer a retry without exposing the journal-mode acronym. Preserve the SQLite error as the diagnostic cause. Assisted-by: gpt-6.1-sol
Windows test slices do not run Clippy or rustfmt. Keep those components on lint and release jobs while using the same stable toolchain and cache identity for the test jobs. Assisted-by: gpt-6.1-sol
Request only the process fields used by the existing Windows cleanup walk. Prioritize one-shot tests with explicit request deadlines alongside the existing slow-test priorities, so their timers overlap other work. Assisted-by: gpt-6.1-sol
Binary test harnesses and library/integration tests build on separate existing Windows runners. Native chat/demo groups build only their orx harness. Their complement stays in the core slices, and the first slice runs all doc-tests. Main still compiles every target before saving the single shared compiler snapshot. Assisted-by: gpt-6.1-sol
Use the same orx-only unit-test target for core slices and native groups. Discover the other workspace binary tests through Cargo metadata and run them with library/integration tests, preserving the full target inventory. Assisted-by: gpt-6.1-sol
Halve Windows nextest concurrency after simultaneous DLL initialization failures prevented unrelated tests and runner cleanup from starting. Keep all test cases and disable retries as before. Assisted-by: gpt-6.1-sol
Wait until the fixture reaches a stalled initialization, setup or prompt before advancing Tokio time. Preserve timeout messages, cancellation, and directory cleanup assertions without waiting on real deadlines. Assisted-by: gpt-6.1-sol
Experiment waits accepted terminal events from older active runs, so legacy recovery could finish a wait while the latest launch was starting. Apply latest-run selection to snapshots and event resynchronization, and reject older run events while following an experiment. Assisted-by: gpt-6.1-sol
Benchmark the native core harness alongside the existing native chat and demo groups. Keep library and integration targets separate, all doc-tests, and the same runner and main-only compiler snapshot policy. Assisted-by: gpt-6.1-sol
Restore four isolated core slices after the native harness took 97 seconds for the same 1355 cases. Start slow store and paper-sync cases before the short tests to reduce each slice tail. Assisted-by: gpt-6.1-sol
Give the three onboarding scenarios their own native test process so they can overlap the remaining demo installations without losing fixture reuse within either group. Keep every existing assertion. Assisted-by: gpt-6.1-sol
The dependency-free selection and result scripts can use Node 22 already installed on ubuntu-24.04. Drop setup-node from those two serial jobs; the measured steps added four seconds to the required gate. Assisted-by: gpt-6.1-sol
Keep the same runners and process budget while reducing each core slice from about 339 to 226 cases. Derive the partition denominator from the partition map, with docs and main snapshot writes still on the first slice. Assisted-by: gpt-6.1-sol
Assisted-by: gpt-6.1-sol Assisted-by: claude-opus-5.5
Linux test jobs install OpenSSH and zsh in the background, the end-to-end job compiles orx while dependencies install, and Windows reuses the restored crate registry offline and skips marking the dev drive trusted. Assisted-by: claude-opus-5.5
small-angel
force-pushed
the
clo/ci-three-minutes
branch
from
November 12, 2026 23:53
1effcaa to
2315701
Compare
Advancing past the stall let the Windows process-tree inspection time out virtually, leaving the agent's directory locked. Assisted-by: claude-opus-5.5
small-angel
force-pushed
the
clo/ci-three-minutes
branch
from
November 13, 2026 00:29
2315701 to
5896796
Compare
rustup runs in the background from the first step, so a toolchain update overlaps the checkout and Dev Drive setup instead of following them. Assisted-by: claude-opus-5.5
Terminated agents can hold their working directory past the single 500ms retry, failing Windows ACP tests at random. Assisted-by: claude-opus-5.5
Assisted-by: claude-opus-5.5
Reverts the temporary seeding that let this branch write its own. Assisted-by: claude-opus-5.5
small-angel
added a commit
that referenced
this pull request
Nov 13, 2026
Canaries failed on 13 of the last 25 pushes to main, each after a green pull request. Main and releases ran the whole test suite again inside release-canary.yml and release.yml, and on more surfaces than a pull request: the Linux desktop tests (x86_64 since #985, aarch64 always) ran only there. One timing race in roughly four runs of every test was enough to withhold a canary, and the runners moving stable Rust to 1.100 broke main without touching a pull request. Pull requests now run the Linux desktop tests on both architectures, so they run every test main runs. Canaries and releases gate on release-checks.yml instead of ci.yml: the checks only a release build can make (embedded host lookup, the optimized build's channel, the packaged binary bootstrapping an SSH host). ci.yml loses its release mode. rust-toolchain.toml pins Rust 1.100.0 for CI, release builds and local work alike; a new Rust release becomes a pull request that bumps it. switching_forks_stops_an_idle_claude_child_and_waits_for_a_busy_one is ignored until its race is fixed: a refused fork switch drops its TurnGuard, whose spawned held-continuation check can run after the test sees the slot idle and claim the reply the test meant to hold. Assisted-by: claude-opus-5.5
alphaxiv-bot Bot
pushed a commit
that referenced
this pull request
Nov 13, 2026
13 of the last 25 canaries failed after green PRs. None of the failures was a product bug. Main and releases re-ran the whole test suite inside the canary and `release.yml`, on more platforms than a PR: the Linux desktop tests (`cargo test --features desktop`) ran on PRs only for x86_64, and #985 removed that too. Linux aarch64 never ran them on PRs. So each test ran about four times on main, with no retries, and any one timing race withheld the canary. Of the 13: 3 were GitHub's runners moving `stable` to Rust 1.100 (new clippy lint, new test-binary path; fixed in #996). The other 10 were test races: `alias_authorization_survives_lazy_roots_and_restarts` ×4, `claude_fork_switches_branch_the_native_session` ×3, slurm ×2, e2e `restart.spec` ×2, the PTY relay test, the Windows device-code login test and today's `switching_forks_…`. What changes: - **PRs run every test main runs.** The Linux desktop tests now run on PRs for both architectures, with lint and tests in separate jobs to keep latency down. They also move from one `cargo test` process to nextest, as the Rust and Windows jobs already do. On this PR's first run, a test exec'ing a freshly written binary hit "Text file busy" because another test thread had forked mid-write. - **Canaries stop waiting on the test suite.** They gate on the new `release-checks.yml`, which checks only what a release build embeds: the embedded host lookup, the optimized build's channel, and the packaged binary bootstrapping an SSH host. Real releases run `ci.yml` (every check, forced) beside `release-checks.yml`. `ci.yml` loses its release mode. `dist-workspace.toml` names both jobs, and `release.yml` is hand-edited to match, as before. The new job also needs `build-host`. Under the old setup, the long test run before the host download hid that race. - **Rust is pinned in `rust-toolchain.toml` (1.100.0)** for CI, release builds and local work. A Rust upgrade becomes a PR. `rustup toolchain install` replaces `dtolnay/rust-toolchain`, which ignores the file. Incremental cache keys hash the file instead of the rustc commit. - **`switching_forks_stops_an_idle_claude_child_and_waits_for_a_busy_one` is `#[ignore]`d** until its fix lands. A refused fork switch drops its `TurnGuard`. The drop spawns a held-continuation check that can run after the test sees the slot idle, then claim the reply the test is holding, so the next switch is refused as busy. A delay injected before that check reproduces it. The fix follows in its own PR. Checked locally: actionlint, zizmor (`--offline`), `node --test 'scripts/*.test.mjs'`, and `cargo fmt --all --check` on the pinned 1.100.0. The workflow changes themselves are unproven until this PR's CI and the next canary run. Assisted-by: claude-opus-5.5
1 task
qianyuliu
pushed a commit
to CMCC-AI/OpenResearch
that referenced
this pull request
Nov 16, 2026
- 在 src/store.rs 的连接打开阶段先设置 busy_timeout,并对 journal_mode=WAL 增加有界退避重试与初始化建表事务批处理(alphaXiv#985) - 在 src/store.rs、src/local/chat/mod.rs 与 src/commands/up.rs 传递当前进程持有的活跃租约列表 held_turn_leases,避免进程短暂卡顿时误清理自身回合租约(alphaXiv#952) - 调整 src/local/chat/mod.rs 的 drain_queue 仅接管处于 Draining 状态的槽位,消除空队列检查时的无效租约抢占(alphaXiv#981) - 新增 src/file_lock.rs 并在 opencode_db、updates、app、managed_env 与 ssh 锁守卫析构时显式调用 unlock,防止并发子进程继承未释放文件锁(alphaXiv#990)
qianyuliu
pushed a commit
to CMCC-AI/OpenResearch
that referenced
this pull request
Nov 17, 2026
- 更新 `releases.md` 与 `release-notes/v0.2.24-mobilesci.1.md`,完整反映 `.7.1` 后新增能力、阶段 1/2 加固及 `hosted-local` 启动器状态 - 刷新 `upstream-v0.2.24-backports.md` 与 `upstream-v0.2.25-review-2026-11-09.md` 回移台账,标注已适配落地的 `alphaXiv#985`/`alphaXiv#952`/`alphaXiv#981`/`alphaXiv#990`/`alphaXiv#962`/`alphaXiv#923`/`alphaXiv#730`/`alphaXiv#786`/`alphaXiv#909`/`alphaXiv#747`/`alphaXiv#903` - 补充 `start-mobilesci.md` 与 `runtime-and-deployment.md` 中的本地多用户托管模式(5400)说明,消除文档与仓库入口漂移 - 修订 `next-cycle-plan.md`,明确 Gate 1 发版上线与 Phase 3 增量重构、上游按需跟踪及重型需求准入边界
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.
PR checks drop from an 11:35 median to 3:00–3:07 (run), on the same runners and prices, with every check still required.
Proved with two consecutive green runs of the full required gate on this branch, then rerun after restoring main-only snapshot writes.
Assisted-by: gpt-6.1-sol
Assisted-by: claude-opus-5.5