@calltelemetry/fmix 2.6.0 → 2.7.0

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/bin/fmix +22 -2
  2. package/package.json +3 -3
package/bin/fmix CHANGED
@@ -23,7 +23,7 @@ set -uo pipefail
23
23
  # ---------------------------------------------------------------------------
24
24
  # Constants & config
25
25
  # ---------------------------------------------------------------------------
26
- FMIX_VERSION="2.6.0"
26
+ FMIX_VERSION="2.7.0"
27
27
  FMIX_HOME="${FMIX_HOME:-${HOME}/.ct-fmix}"
28
28
  FMIX_OS="$(uname -s)"
29
29
  FMIX_ARCH="$(uname -m)"
@@ -15243,8 +15243,14 @@ EOF
15243
15243
 
15244
15244
  # Leave one full sampling interval of slack: a printf followed by
15245
15245
  # `sleep 1` can land on the same epoch-second as the watchdog on macOS.
15246
+ #
15247
+ # The stall timeout is what is under test: progress every second must keep
15248
+ # extending it. The hard limit is incidental scaffolding and must stay well
15249
+ # clear of the fixture's ~4s runtime, or a loaded runner trips the hard
15250
+ # limit and the case fails for a reason it is not testing. It was 5s, which
15251
+ # left one second of headroom for four sleeps, and it failed on macOS CI.
15246
15252
  FMIX_DEPS_STALL_TIMEOUT=2
15247
- FMIX_DEPS_TIMEOUT=5
15253
+ FMIX_DEPS_TIMEOUT=30
15248
15254
  _fmix_run_deps_get() {
15249
15255
  local i
15250
15256
  for i in 1 2 3 4; do
@@ -18387,6 +18393,20 @@ main() {
18387
18393
  return 0
18388
18394
  ;;
18389
18395
  version|--version)
18396
+ # `version --json` reports identity a caller can verify: the version
18397
+ # string alone cannot distinguish two different runners, which is
18398
+ # exactly how a 15k-line workspace copy and the published release
18399
+ # both claimed 2.5.0. Installers compare the digest, not the path,
18400
+ # because any version manager (mise, asdf, nvm, volta) legitimately
18401
+ # interposes a shim that no path comparison can see through.
18402
+ if [[ "${1:-}" == "--json" ]]; then
18403
+ local self_path self_sha
18404
+ self_path="$(fmix_realpath "${BASH_SOURCE[0]}" 2>/dev/null || printf '%s' "${BASH_SOURCE[0]}")"
18405
+ self_sha="$(fmix_hash_stdin < "$self_path" 2>/dev/null || printf '')"
18406
+ printf '{"version":"%s","runnerSha256":"%s","runnerPath":"%s"}\n' \
18407
+ "$FMIX_VERSION" "$self_sha" "$self_path"
18408
+ return 0
18409
+ fi
18390
18410
  echo "fmix $FMIX_VERSION"
18391
18411
  return 0
18392
18412
  ;;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calltelemetry/fmix",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "description": "Verified native FMix runner for CallTelemetry workspaces",
5
5
  "bin": {
6
6
  "fmix": "bin/fmix"
@@ -24,7 +24,7 @@
24
24
  "directory": "packages/npm"
25
25
  },
26
26
  "fmix": {
27
- "runnerSha256": "fa40ca536d217beb174de2a96e0885d349663edb9cc4415eef400bd9f06e3f19",
28
- "sourceTag": "fmix-v2.6.0"
27
+ "runnerSha256": "becc32a47794140cdc7ee60e6204aff47f113ce41292c4a3e4f9a078518c6c2b",
28
+ "sourceTag": "fmix-v2.7.0"
29
29
  }
30
30
  }