@biffo/cli 0.272.2 → 0.272.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/verify.sh +13 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biffo/cli",
3
- "version": "0.272.2",
3
+ "version": "0.272.3",
4
4
  "description": "Biffo project scaffolding CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/scripts/verify.sh CHANGED
@@ -746,10 +746,20 @@ pg_test_run() {
746
746
  timeout "$PG_TEST_BUDGET_SECONDS" uv run --directory "$1" \
747
747
  pytest -q -m 'not serial' -n auto --dist loadfile $2 >"$_out" 2>&1
748
748
  _pg_rc=$?
749
+ # pytest exits 5 when `-m 'not serial'` matches nothing -- correct when
750
+ # every currently-collected pg module happens to be serial-only (a repo's
751
+ # first test_*_pg.py file can legitimately start out that way; this repo
752
+ # hit it the moment its only pg module went 3-for-3 serial,
753
+ # biffo-template#1453). Symmetric with the identical exit-5 tolerance on
754
+ # the serial pass below: "nothing to run in THIS pass" is not "the lane
755
+ # failed", and treating it as a hard failure here would stop the serial
756
+ # pass -- which DOES have tests to run -- from ever executing.
757
+ [ "$_pg_rc" -eq 5 ] && _pg_rc=0
749
758
 
750
- # Only if the parallel pass actually passed. A failure there is the answer
751
- # already, and running the serial pass on top would append a second summary
752
- # line that the "did it exercise anything" grep below would happily match.
759
+ # Only if the parallel pass actually passed (or had nothing to run, per
760
+ # the exit-5 tolerance above). A failure there is the answer already, and
761
+ # running the serial pass on top would append a second summary line that
762
+ # the "did it exercise anything" grep below would happily match.
753
763
  if [ "$_pg_rc" -eq 0 ]; then
754
764
  _pg_left=$((PG_TEST_BUDGET_SECONDS - ($(date +%s) - _pg_started)))
755
765
  [ "$_pg_left" -lt 10 ] && _pg_left=10