@soleur/opencode 3.379.2 → 3.379.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -577,7 +577,15 @@ if [[ -n "$RUNNER" ]]; then
|
|
|
577
577
|
echo "affected-tests: no CI test workflow detected — wall-clock budget not enforced; running to completion."
|
|
578
578
|
fi
|
|
579
579
|
rc=0
|
|
580
|
-
|
|
580
|
+
# (#12013, ADR-242 addendum) Hand the runner's parallel pool a width of 4 for a local --affected
|
|
581
|
+
# run: not --full, not under CI, not over a width the operator set (SOLEUR_TEST_JOBS=1 is the serial
|
|
582
|
+
# override), and only when the runner itself mentions the knob. The prefix scopes it to this call.
|
|
583
|
+
# Pinned by plugins/soleur/test/affected-tests-pool-default.test.sh.
|
|
584
|
+
if (( ! ARG_FULL )) && [[ -z "${CI:-}" ]] && grep -q SOLEUR_TEST_JOBS "$RUNNER"; then
|
|
585
|
+
SOLEUR_TEST_JOBS="${SOLEUR_TEST_JOBS:-4}" affected_bound bash "$RUNNER" "$_flag" || rc=$?
|
|
586
|
+
else
|
|
587
|
+
affected_bound bash "$RUNNER" "$_flag" || rc=$?
|
|
588
|
+
fi
|
|
581
589
|
# A delegated verdict is eligible for the content trigger unless the operator
|
|
582
590
|
# passed --full; finish() runs it only when this run passed.
|
|
583
591
|
(( ARG_FULL_REQUESTED )) || AFFECTED_CT_ELIGIBLE=1
|
package/skills/ship/SKILL.md
CHANGED
|
@@ -355,8 +355,8 @@ For each new source file, check if a corresponding test file exists (e.g., `foo.
|
|
|
355
355
|
**Interactive mode:** Ask the user whether to write tests now or continue without them. Do not silently proceed.
|
|
356
356
|
|
|
357
357
|
Then run the affected-suite gate — the plugin entry point, wired the same in
|
|
358
|
-
`soleur:work` Phase 2 and `soleur:review`. Its rc contract (0/1/4/6/7),
|
|
359
|
-
`.soleur-test-gate.json` override schema,
|
|
358
|
+
`soleur:work` Phase 2 and `soleur:review`. Its rc contract (0/1/4/6/7),
|
|
359
|
+
`.soleur-test-gate.json` override schema, per-rc actions, pool wait live in
|
|
360
360
|
[affected-gate-contract.md](${CLAUDE_PLUGIN_ROOT}/skills/ship/references/affected-gate-contract.md). In THIS
|
|
361
361
|
repo the gate capability-probes and delegates [scripts/test-all.sh](../../../../scripts/test-all.sh), so the
|
|
362
362
|
always-on fast tier (#9763), ADR-262's PR-gated mutation batteries, and the
|
|
@@ -170,3 +170,7 @@ gate). Its exit status is the only failure signal.
|
|
|
170
170
|
- Pytest repo without xdist → serial run with the reason printed; a pytest
|
|
171
171
|
rc-5 collection is treated as empty selection, never a pass.
|
|
172
172
|
- Empty native selection on a code diff → full command, `reason=empty-selection`.
|
|
173
|
+
|
|
174
|
+
## Parallel pool and live reds while waiting (#12013)
|
|
175
|
+
|
|
176
|
+
ADR-242 amendment. `affected-tests.sh` hands the runner `SOLEUR_TEST_JOBS=4` for a local `--affected` run (never `--full`, never under `CI`; `SOLEUR_TEST_JOBS=1` forces serial). Once the run holds the lock, the log carries `[parallel] mode engaged — width=4`; a `[parallel] serial fallback — reason=…` line says why it did not (`lock-not-held` follows budget expiry, a missing `flock` or a disabled session state, not a wait that ended in acquisition). While waiting on the rc file, read the log for a red as it happens — extend the wait loop, do not add a second one: `until [ -s "$RCF" ]; do grep -E '^\[run\] .* done \(rc=[1-9]' "$LOG" | sort -u; sleep 30; done`. A hit is provisional: do not kill or relaunch on it. Only the final exit code and the `affected-tests:` verdict line count; a red that shows up only under the pool is re-run alone with `SOLEUR_TEST_JOBS=1` before it is treated as a diff regression. A diff that edits the runner or the affected index selects the self-SUT batteries, which run one at a time at any width, so the pool does not make that run short.
|