Repository navigation
ci: parallelize terminal and online core checks - #902
Conversation
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review of d764479. No actionable findings.
Reviewed the full workflow/Makefile diff, shared Rust setup and cache configuration, scope classifier, nextest limits, and the new dispatch/gate tests.
- The three core shards preserve the existing package selections, features, filters and strict-online-ci profile. Default/all and combined core retain their previous coverage; failures propagate while combined core continues through the remaining groups. Invalid lane names fail before database reset or Cargo execution.
- Each hosted online job starts its own dependency stack, and core database names are distinct. The existing -j 1 behavior remains in each database lane.
- Terminal reader feature variants run on separate runners, and reflow still builds and tests the real CLI binary. Existing required check names are retained through aggregate jobs. I checked dependency conditions, legitimate scope skips, failure handling and cancellation-aware scheduling.
- Cache writes are restricted to push runs, with one terminal writer per OS. No workspace-wide compilation barrier was introduced.
Validation: 32 focused Python tests passed locally (9 parallelism/dispatch, 21 scope, 2 terminal coverage), plus git diff --check; the worktree is clean. The exact head's Static Checks and Test Suite workflows passed. All 25 Test Suite jobs succeeded, including all six terminal segments and all four online lanes. Logs confirm 76 runtime, 11 turn-core and 469 services online tests passed; both macOS reader variants ran 15 tests each, and the macOS reflow scenarios passed.
This hosted Test Suite run completed in 21m08s: https://github.com/matrixorigin/Astra/actions/runs/36387754322. That is useful initial evidence, not a controlled before/after benchmark. macOS scheduling and additional runner usage remain the main performance tradeoff; sustained latency and runner-minute cost should be assessed across subsequent runs. Rust/database tests were verified through hosted CI rather than rerun locally.
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
🛑 GitHub permissions prevent queueingDetailsThe PR cannot be merged because of GitHub restrictions. You must set up an |
Summary
A recent successful run took 38m21s: macOS terminal checks waited about eight minutes for a runner, then spent 29m20s in three sequential builds. The online core lane also built and tested runtime, turn-core, and services sequentially.
The speedup still needs measurement on hosted runners; extra macOS jobs may increase queueing. This change does not introduce a workspace-wide compile barrier or alter test selections, features, exclusions, or deadlines.
Related issue
Requested CI latency improvement; no linked issue.
Change type
User and compatibility impact
Existing required check names remain available.
make test-onlineandASTRA_ONLINE_LANE=coreretain their complete-suite behavior. Newcore-runtime,core-turn-core, andcore-servicesvalues select individual core groups. Both terminal gates aggregate the full OS/segment matrix; the core online gate aggregates all selected online jobs.Architecture and complexity delta
N/A for runtime architecture. The workflow extends the existing Makefile dispatch rather than introducing another test runner. Existing scope classification, serial database limits, cancellation behavior, and fork-safe dependency setup are retained.
Verification
go run github.com/rhysd/actionlint/cmd/[email protected]: passed.python3 -B -m unittest discover -s scripts/ci -p 'test_*.py': passed (101 tests).python3 -B -m unittest discover -s scripts/ci -p 'test_ci_*.py': all 37 tests passed, including the additional database-reset isolation check.python3 -B scripts/ci/validate_repository.py: passed with Python 3.13 on PATH and CDPATH unset.git diff --check: passed.make test-onlinerecipes, with Cargo and MySQL calls recorded in disposable offline fixtures. Shard arguments exactly cover the combined core lane; default/all still include integration.Final checklist