Repository navigation
ci: adopt ci-kit — PR checks per suite family; sminos and codex-companion timing tests made event-driven (ci-kit M3) - #198
Merged
Merged
Conversation
…th sides alike glibc and macOS sort collate '_' differently, so the hard-coded expected order matched macOS only and the assertion failed on ubuntu (hosted probe, run 38810355572). The expected list now goes through the same sort -u as the actual one: the set is what is pinned, not an order.
SSFSKIM
added a commit
that referenced
this pull request
Oct 16, 2026
Review of #198: the documented SMINOS_FAMILY_ONLY=1 run skips the guard where SMINOS_PART, run_suites and summary were defined, and the unconditional tail then aborted under set -u. They now come before the guard, so a focused run finishes and reports (1053 assertions, family-only, run locally).
SSFSKIM
added a commit
that referenced
this pull request
Oct 16, 2026
Review of #198: the changed files were read through a process substitution, whose exit status nothing checks. If the kit's fetch of the change basis failed (it only warns), the diff failed, the list came out empty, and the gate passed with "no changed files". The diff now writes to a file under the gate's -eo pipefail.
SSFSKIM
added a commit
that referenced
this pull request
Oct 16, 2026
Review of #198: test_rpcs.py runs tests/mods/live-resume-check.py's Resume call, which imports live-control-check.py and live-bridge-check.py, against its fake engine. A change to those files alone selected mods and not the suite that runs them.
.github/ci-kit.yml names one gate per suite family that runs without model calls (shell-lint, sminos, issue-tracker, board-api, claude-code, mods, triaging-feedback, repo-checks), each scoped to its area by paths; .github/workflows/ci.yml is the kit's caller, pinned at @v1. Checks are added, never required. Suites that call a model, need Docker, or test the installed plugin cache stay local.
… second The case slept 0.5 s and read the newest frame id, then gave the send 5 s to see it acknowledged. On a loaded host (TECH-DEBT T3) the frame had not landed yet: the id read was the previous frame's, and the window ran out. The case now waits for the ACK-1 frame itself and gives the send a liveness window. wait_until is the suite's poll for such conditions, with one generous ceiling (LIVENESS_SECONDS) that bounds liveness, not the machine's speed.
It slept 0.8 s and retired. Under load the spawn had not recorded the seat yet, or still held its lifecycle lock (retire refused, rc 4), so the case asserted on a retire that never happened (TECH-DEBT T3: "the watcher's finalize does not overwrite a retire"). It now waits for the record and retries the retire while the lock is held.
… seconds "the say lands within two seconds" and the nudge's three were speed claims: the base itself missed 2 s in 11 of 48 runs at load ~130 (TECH-DEBT T3). The cases now wait for each loop's first tick (its daemon.json rewritten) instead of sleeping 1.5 s, then for the frame in b's socket under the liveness bound. The nudge case keeps its meaning by putting the loop's interval (3600 s) far beyond that bound: only the nudge delivers in time.
"at most once more: two frames in all" failed 4 of 20 runs at 2x load before, and still 5 to 10 of 20 once the waits were lengthened. Diagnostics showed why (y's inbox held one frame, and the restarted tick saw y live). The inbox stand-in held any connection while the hold file existed, and marked it held. The doomed tick probes y's socket (connect, close) before it pushes, so under load the probe was held and marked, and the case killed the tick before its frame was sent. The stand-in now holds only a connection that carries a frame. The case's waits are also under the liveness bound instead of 5 s.
… deadline The suite failed on the hosted macOS runner (1 full run, 2 of 5 reruns; ci-kit probe) at "the terminal answering first": its until_true gave each condition 5 s. until_true now polls under one liveness ceiling (30 s) rather than a count of tries. The background-window case raced its own 800 ms deadline (a sleep 0.4 that had to land inside it, a sleep 0.6 that had to land past it, and a 5 s window for the accepted decision). It now raises one window open for the whole case and one whose deadline it waits out, so neither check depends on how fast the machine is. One clock wait stays, lengthened to 2 s: the bridge must have read the record as waiting before it turns idle, and it exposes no sign that it has.
…the engine's do On ubuntu, test_rpcs.py's two Resume cases failed in the CI gate. They failed with "job … took the session, but no process of it holds the session after 30 s". The fake engine's records had no startedAt, so sminos read the holder's start from ps -o lstart. Linux derives that from a boot time truncated to the second, so the holder could read as started a second before the launch, and launched_by refused it. The real engine writes startedAt (ms), and the fake now writes it too, taken at the holder's spawn.
…them With DC7's suites the sminos gate took 9.5 min on ubuntu, close to the 10 min a PR's checks have. run-sminos-tests.sh takes SMINOS_PART=core|suites. core is its own cases, about 3.5 min. suites is the files it runs after them, the bridge, uplink, hub, sync and archive shell suites and the three Python suites, about 5.5 min. Unset, it still runs both, as before. The list of suites stays in the runner, so CI and a local run cannot drift apart.
… terminal answers The after-fix series on the hosted macOS runner (2x load) still failed 2 of 20 runs at "the terminal answering first", with 30 s to spare. The dialog's close is read as the terminal's answer only once the bridge's watcher (every 0.25 s) has read the record as waiting since the raise. A loaded runner let the record turn busy before that read, so the close went unseen. The bridge exposes no sign of the read, so the case now waits on the clock, 2 s, before both the perm02 and perm03 closes.
…0 s old The case set the lock's mtime to 120 s ago, then asserted on the literal "120s old". At 8x load the tick read it a second or more later, so it said 121 s or more (18 of 20 runs failed). The case now accepts any age the lock can have when the tick reads it.
It slept 1.5 s, touched the daemon's code once, and gave the loop 5 s to exit. If the touch landed before the loop read its own code, the change became the loop's baseline and was never seen (6 of 20 runs at 8x load). The case now touches under the liveness bound until the loop exits.
…he gate "the tick loop is still in the fetch all along" failed in an unloaded CI run (its daemon.json moved 50 ms after it was read), and once at load ~218 (TECH-DEBT T3). The stand-in marked ssh-entered before it looked at the gate. So a fetch that started between the case's rm of the mark and its touch of the gate marked "entered", passed through, and let its tick finish while the case believed the loop hung. The mark now means a call that is waiting at the gate.
… they close
test_policy_requests.py failed 1 of 20 runs in each of two loaded series
("'written here, while read-only' not found in ''"). Its Inbox thread closed
the connection, then recorded the frame. sminos's send_frame returns as soon
as the connection closes, and the test read the inbox at once, before the
thread had appended. fake_holder.py (test_rpcs.py's session process) had the
same order. Both now record first, then close.
…try rewritten as what landed and what remains
Review of #198: the documented SMINOS_FAMILY_ONLY=1 run skips the guard where SMINOS_PART, run_suites and summary were defined, and the unconditional tail then aborted under set -u. They now come before the guard, so a focused run finishes and reports (1053 assertions, family-only, run locally).
Review of #198: the changed files were read through a process substitution, whose exit status nothing checks. If the kit's fetch of the change basis failed (it only warns), the diff failed, the list came out empty, and the gate passed with "no changed files". The diff now writes to a file under the gate's -eo pipefail.
Review of #198: test_rpcs.py runs tests/mods/live-resume-check.py's Resume call, which imports live-control-check.py and live-bridge-check.py, against its fake engine. A change to those files alone selected mods and not the suite that runs them.
…lane, left to their owners
SSFSKIM
force-pushed
the
ci-kit-adoption
branch
from
October 16, 2026 03:28
65469f3 to
289a0b8
Compare
…l it holds "the two fail apart" removed the derivation lock file and made a directory in its place. The running loop takes that lock every tick (SMINOS_DERIVE_EVERY=1), so it could come back between the rm and the mkdir. The mkdir then failed under set -e and ended the whole suite: one red in the A10 ci-gate series, run 38852905278. It now retries both under the liveness bound.
…ss bound The bridge, uplink, hub, sync and archive suites polled with a count of tries, 5 to 20 s. Several of those calls are not followed by || true: a slow start of a stand-in (the hub's port, an inbox socket) would end the suite under set -e, not just fail a check. Each until_true now waits under the same 30 s ceiling as run-sminos-tests.sh's wait_until and test-bridge-requests.sh's until_true. Every call site waits for a condition it then asserts, so only a failing run takes longer.
…ent-driven timing tests (ci-kit M3)
#203 fixes the Linux start-time refusal at its source (sminos_rpc reads /proc). The stand-in's startedAt and the TECH-DEBT note about it go, so test_rpcs.py exercises that path. Version files take main's side; the bump follows.
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.
Who is submitting this PR? (required)
What problem are you trying to solve?
doperpowers had no CI (TECH-DEBT T2 #4). Every suite ran by hand on the MacBook, which sits at load 90–330. At that
load the sminos suites' timing assertions failed on unchanged code (TECH-DEBT T3): the git-mirror "two seconds",
send --wait's ack window, "at most once more", the watcher's finalize-vs-retire, andtest-bridge-requests.sh.This PR is milestone M3 of SSFSKIM/ci-kit (spec
docs/doperpowers/specs/2026-10-15-ci-kit-design.md):doperpowers adopts the kit, and its timing-sensitive tests become event-driven.
What does this PR change?
It adopts ci-kit with its two files.
.github/ci-kit.ymlgives one gate per suite family that runs without modelcalls, and
.github/workflows/ci.ymlcalls the kit's reusable workflow at@v1. Every PR getsci / <gate>checkson GitHub's free hosted runners. The checks are added, never required. Each timing-sensitive test is made
event-driven, in its own commit. Only test files, CI files, TECH-DEBT and the version change. Nothing under
skills/,agents/,hooks/oroutput-styles/changes. The version moves to 7.160.1, above main, at the author's request. The branch merges main(#200–#203 and 7.160.0) and gives the timing waits those changes brought the same liveness bound.
shell-lintscripts/lint-shell.shon the files changed betweenCI_KIT_BASEandCI_KIT_HEADsminosSMINOS_PART=core tests/sminos/run-sminos-tests.sh: the runner's own casessminos-suitesSMINOS_PART=suites …: the bridge, uplink, hub, sync and archive shell suites, and the three Python suitesissue-trackertests/issue-tracker/test-*.shand the meta-grammar fuzzboard-apitests/claude-code/board-api/test-*.sh, withoutintegration/claude-codemodstests/mods/run-mods-tests.sh(claude plugin test, no credentials)triaging-feedbacknpm ci && npm testinapplication-agents/triaging-feedbackrepo-checksSMINOS_PART(core, suites, or unset for both) is the one change to how a suite runs. With DC7's suites, sminos took9.5 min serially. Split, the slowest gate is about 8 min, and the list of suites stays inside the runner.
Is this change appropriate for the core library?
It is the repository's own CI and tests, not plugin behavior. Plugin users see nothing.
What alternatives did you consider?
spec chose a shared kit.
inside a correctness test (ci-kit spec §6). The fixes wait on the event, under one 30 s liveness ceiling.
ci-kit.yml. It would drift from the runner.SMINOS_PARTkeeps one list.Does this PR contain multiple unrelated changes?
No. The adoption and the stabilization are one milestone: a gate is only useful once its suite stops failing under
load. Each test fix is its own commit.
Existing PRs
to DC7's tests.
Environment tested
v1Evaluation
A10, per test. Each test ran under an induced CPU load on GitHub-hosted runners only, never on the MacBook or the
mini. The load is
stress-ng --cpu <2×nproc>on ubuntu (8 workers on 4 vCPU), oryes > /dev/nullloops at2× cores on macOS (6 on 3 vCPU), the latter for
test-bridge-requests.sh, whose flake was macOS's. The harness ran beside each test in a throwawayci-gaterun.send --waitack case120s old)test_policy_requests.py)test_rpcs.pyResume on Linux (start time read a second early)/proc); suites part 20/20 at 2× on the merged head (38862575846)test-bridge-requests.shA10, the gates. 20 of 20 consecutive
ci-gateruns of the head 8220494 were GREEN across all nine gates (labels stabF1–stabF20): runs 38864246208, 38865038947, 38865996618, 38866858454, 38867671952, 38868552548, 38869467508, 38870386713, 38871274429, 38872183101, 38873130125, 38873860615, 38874827767, 38875666124, 38876573177, 38877544701, 38878527366, 38879513602, 38880557341, 38881548718. Everyci/ref was deleted afterwards. Earlier series were reset by fixes (a test-uplink race, red at stabC11, run 38852905278) and by merges of main. The 2× stress of the sminos sub-suites on the merged head was 20/20 (38862575846).8× series on the head (run 38835255682). Every M3 target passed 20/20. That run's red jobs are speed claims that only 8× breaks, which their owners hold:
test-uplink.sh"an event from the hub reaches m within a second while the fetch hangs" (17/20), andtest_session_plane.pytest_a_presence_within_a_second(8/20). Both pass 20/20 at 2×, and both are recorded in TECH-DEBT for a pinned-coreperfgate (ci-kit §6).A1. PR run 38864241036 on 8220494: every check green, 8m14s from created to verdict.
Negative proof. A committed shell file with a ShellCheck error (SC2068,
tests/shell-lint/neg-proof.sh, athrowaway commit) turns
ci / shell-lintred: run 38828692666,RED 1/1.Unresolved Review Findings
None. codex-companion is not gated: the owner discarded the component on 2026-10-16, and this PR does not touch it.
Rigor
doperpowers:writing-skills(not a skills change)Human review