@calltelemetry/fmix 2.6.0 → 2.7.1

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 (3) hide show
  1. package/LICENSE +21 -0
  2. package/bin/fmix +29 -3
  3. package/package.json +5 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Call Telemetry
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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.1"
27
27
  FMIX_HOME="${FMIX_HOME:-${HOME}/.ct-fmix}"
28
28
  FMIX_OS="$(uname -s)"
29
29
  FMIX_ARCH="$(uname -m)"
@@ -15207,7 +15207,13 @@ EOF
15207
15207
  else
15208
15208
  st_fail "compile timeout was not enforced: rc=$stream_rc out='$stream_out'"
15209
15209
  fi
15210
- FMIX_SETUP_COMPILE_TIMEOUT=3
15210
+ # What this proves is that passing the explicit 5th argument overrides the
15211
+ # 1s default set just above: a 2s compile survives only if the override
15212
+ # took effect. The override's value is scaffolding and must stay well clear
15213
+ # of the fixture, or a loaded runner trips it and the case fails for a
15214
+ # reason it is not testing. It was 3s against a 2s sleep -- one second of
15215
+ # headroom -- and it failed on macOS CI.
15216
+ FMIX_SETUP_COMPILE_TIMEOUT=30
15211
15217
  _fmix_run_compile() { sleep 2; }
15212
15218
  stream_out="$(fmix_run_compile_streamed "$compile_root" demo "" "$stream_log" "$FMIX_SETUP_COMPILE_TIMEOUT" 2>&1)"
15213
15219
  stream_rc=$?
@@ -15243,8 +15249,14 @@ EOF
15243
15249
 
15244
15250
  # Leave one full sampling interval of slack: a printf followed by
15245
15251
  # `sleep 1` can land on the same epoch-second as the watchdog on macOS.
15252
+ #
15253
+ # The stall timeout is what is under test: progress every second must keep
15254
+ # extending it. The hard limit is incidental scaffolding and must stay well
15255
+ # clear of the fixture's ~4s runtime, or a loaded runner trips the hard
15256
+ # limit and the case fails for a reason it is not testing. It was 5s, which
15257
+ # left one second of headroom for four sleeps, and it failed on macOS CI.
15246
15258
  FMIX_DEPS_STALL_TIMEOUT=2
15247
- FMIX_DEPS_TIMEOUT=5
15259
+ FMIX_DEPS_TIMEOUT=30
15248
15260
  _fmix_run_deps_get() {
15249
15261
  local i
15250
15262
  for i in 1 2 3 4; do
@@ -18387,6 +18399,20 @@ main() {
18387
18399
  return 0
18388
18400
  ;;
18389
18401
  version|--version)
18402
+ # `version --json` reports identity a caller can verify: the version
18403
+ # string alone cannot distinguish two different runners, which is
18404
+ # exactly how a 15k-line workspace copy and the published release
18405
+ # both claimed 2.5.0. Installers compare the digest, not the path,
18406
+ # because any version manager (mise, asdf, nvm, volta) legitimately
18407
+ # interposes a shim that no path comparison can see through.
18408
+ if [[ "${1:-}" == "--json" ]]; then
18409
+ local self_path self_sha
18410
+ self_path="$(fmix_realpath "${BASH_SOURCE[0]}" 2>/dev/null || printf '%s' "${BASH_SOURCE[0]}")"
18411
+ self_sha="$(fmix_hash_stdin < "$self_path" 2>/dev/null || printf '')"
18412
+ printf '{"version":"%s","runnerSha256":"%s","runnerPath":"%s"}\n' \
18413
+ "$FMIX_VERSION" "$self_sha" "$self_path"
18414
+ return 0
18415
+ fi
18390
18416
  echo "fmix $FMIX_VERSION"
18391
18417
  return 0
18392
18418
  ;;
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@calltelemetry/fmix",
3
- "version": "2.6.0",
3
+ "version": "2.7.1",
4
4
  "description": "Verified native FMix runner for CallTelemetry workspaces",
5
+ "license": "MIT",
5
6
  "bin": {
6
7
  "fmix": "bin/fmix"
7
8
  },
8
9
  "files": [
9
10
  "bin/fmix",
11
+ "LICENSE",
10
12
  "README.md"
11
13
  ],
12
14
  "os": [
@@ -24,7 +26,7 @@
24
26
  "directory": "packages/npm"
25
27
  },
26
28
  "fmix": {
27
- "runnerSha256": "fa40ca536d217beb174de2a96e0885d349663edb9cc4415eef400bd9f06e3f19",
28
- "sourceTag": "fmix-v2.6.0"
29
+ "runnerSha256": "6d82ad5c478edcdbf4c0cbf8ef7235356c93d1cb785d401834286e62e97f9cb9",
30
+ "sourceTag": "fmix-v2.7.1"
29
31
  }
30
32
  }