@futurelastic/colab-handbook 1.13.0-rc.33 → 1.13.0-rc.34

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
@@ -33,5 +33,5 @@
33
33
  "engines": {
34
34
  "node": ">=18"
35
35
  },
36
- "version": "1.13.0-rc.33"
36
+ "version": "1.13.0-rc.34"
37
37
  }
@@ -265,6 +265,7 @@ jobs:
265
265
  # (tools/lib/ship-batch.js parseShipBatch): absent/empty/null, or 1–3. Why the
266
266
  # cap is 3: project.schema.md, `ship-batch`. `ship-batch-wait` (#555) the same way
267
267
  # (parseShipBatchWait): absent/empty/null, or a whole number with a unit (s, m, h).
268
+ # `ci-wait-factor` (#564) too (tools/lib/ci-profile.js parseFactor): absent, or a number >= 1.
268
269
  # ---------------------------------------------------------------------------
269
270
  - name: Descriptor check (.github/project.yml)
270
271
  working-directory: ${{ github.workspace }}
@@ -296,6 +297,19 @@ jobs:
296
297
  exit 1
297
298
  fi ;;
298
299
  esac
300
+ # ci-wait-factor (#559): a number >= 1 — a multiple of the repo's measured CI duration. No ceiling.
301
+ # Same reading as tools/lib/ci-profile.js parseFactor on the raw scalar the audit hands it.
302
+ f="$(field ci-wait-factor)"
303
+ case "$f" in
304
+ ''|'~'|null) echo "ci-wait-factor: absent — ok (default 2)" ;;
305
+ *)
306
+ if printf '%s\n' "$f" | grep -Eq '^[0-9]+(\.[0-9]+)?$' && awk -v n="$f" 'BEGIN { exit !(n + 0 >= 1) }'; then
307
+ echo "ci-wait-factor: $f — ok"
308
+ else
309
+ echo "::error file=.github/project.yml::ci-wait-factor is '$f', expected a number >= 1 (a multiple of the measured CI duration; omit for 2). colab ship and colab ci-wait ignore any other value and use 2. See project.schema.md, ci-wait-factor."
310
+ exit 1
311
+ fi ;;
312
+ esac
299
313
  # thresholds (#560): one level of `name: whole number`, each name known and at or above its
300
314
  # floor (and, for a percent, at most 100) — the table in tools/lib/thresholds.js (SPEC),
301
315
  # which a test holds this list to.
@@ -14,7 +14,7 @@
14
14
  #
15
15
  # What it does:
16
16
  # 0. Fail on a .github/project.yml value colab would silently ignore (ship-batch, #416;
17
- # ship-batch-wait, #555).
17
+ # ship-batch-wait, #555; ci-wait-factor, #564).
18
18
  # 1. Resolve the Node version from declared sources — never a hardcoded default.
19
19
  # 2. Secret scan with gitleaks (pinned release binary, see note at the step).
20
20
  # 3. Install dependencies with the package manager the lockfile implies.
@@ -260,6 +260,7 @@ jobs:
260
260
  # (tools/lib/ship-batch.js parseShipBatch): absent/empty/null, or 1–3. Why the
261
261
  # cap is 3: project.schema.md, `ship-batch`. `ship-batch-wait` (#555) the same way
262
262
  # (parseShipBatchWait): absent/empty/null, or a whole number with a unit (s, m, h).
263
+ # `ci-wait-factor` (#564) too (tools/lib/ci-profile.js parseFactor): absent, or a number >= 1.
263
264
  # ---------------------------------------------------------------------------
264
265
  - name: Descriptor check (.github/project.yml)
265
266
  working-directory: ${{ github.workspace }}
@@ -291,6 +292,19 @@ jobs:
291
292
  exit 1
292
293
  fi ;;
293
294
  esac
295
+ # ci-wait-factor (#559): a number >= 1 — a multiple of the repo's measured CI duration. No ceiling.
296
+ # Same reading as tools/lib/ci-profile.js parseFactor on the raw scalar the audit hands it.
297
+ f="$(field ci-wait-factor)"
298
+ case "$f" in
299
+ ''|'~'|null) echo "ci-wait-factor: absent — ok (default 2)" ;;
300
+ *)
301
+ if printf '%s\n' "$f" | grep -Eq '^[0-9]+(\.[0-9]+)?$' && awk -v n="$f" 'BEGIN { exit !(n + 0 >= 1) }'; then
302
+ echo "ci-wait-factor: $f — ok"
303
+ else
304
+ echo "::error file=.github/project.yml::ci-wait-factor is '$f', expected a number >= 1 (a multiple of the measured CI duration; omit for 2). colab ship and colab ci-wait ignore any other value and use 2. See project.schema.md, ci-wait-factor."
305
+ exit 1
306
+ fi ;;
307
+ esac
294
308
  # thresholds (#560): one level of `name: whole number`, each name known and at or above its
295
309
  # floor (and, for a percent, at most 100) — the table in tools/lib/thresholds.js (SPEC),
296
310
  # which a test holds this list to.
@@ -28,7 +28,7 @@
28
28
  #
29
29
  # What it does:
30
30
  # 0. Fail on a .github/project.yml value colab would silently ignore (ship-batch, #416;
31
- # ship-batch-wait, #555).
31
+ # ship-batch-wait, #555; ci-wait-factor, #564).
32
32
  # 1. Resolve the Python version from declared sources — never a hardcoded default.
33
33
  # 2. Secret scan with gitleaks (pinned release binary, see note at the step).
34
34
  # 3. Install dependencies from whichever manifest the repo actually has.
@@ -251,6 +251,7 @@ jobs:
251
251
  # (tools/lib/ship-batch.js parseShipBatch): absent/empty/null, or 1–3. Why the
252
252
  # cap is 3: project.schema.md, `ship-batch`. `ship-batch-wait` (#555) the same way
253
253
  # (parseShipBatchWait): absent/empty/null, or a whole number with a unit (s, m, h).
254
+ # `ci-wait-factor` (#564) too (tools/lib/ci-profile.js parseFactor): absent, or a number >= 1.
254
255
  # ---------------------------------------------------------------------------
255
256
  - name: Descriptor check (.github/project.yml)
256
257
  working-directory: ${{ github.workspace }}
@@ -282,6 +283,19 @@ jobs:
282
283
  exit 1
283
284
  fi ;;
284
285
  esac
286
+ # ci-wait-factor (#559): a number >= 1 — a multiple of the repo's measured CI duration. No ceiling.
287
+ # Same reading as tools/lib/ci-profile.js parseFactor on the raw scalar the audit hands it.
288
+ f="$(field ci-wait-factor)"
289
+ case "$f" in
290
+ ''|'~'|null) echo "ci-wait-factor: absent — ok (default 2)" ;;
291
+ *)
292
+ if printf '%s\n' "$f" | grep -Eq '^[0-9]+(\.[0-9]+)?$' && awk -v n="$f" 'BEGIN { exit !(n + 0 >= 1) }'; then
293
+ echo "ci-wait-factor: $f — ok"
294
+ else
295
+ echo "::error file=.github/project.yml::ci-wait-factor is '$f', expected a number >= 1 (a multiple of the measured CI duration; omit for 2). colab ship and colab ci-wait ignore any other value and use 2. See project.schema.md, ci-wait-factor."
296
+ exit 1
297
+ fi ;;
298
+ esac
285
299
  # thresholds (#560): one level of `name: whole number`, each name known and at or above its
286
300
  # floor (and, for a percent, at most 100) — the table in tools/lib/thresholds.js (SPEC),
287
301
  # which a test holds this list to.