@calltelemetry/fmix 2.4.1 → 2.4.2
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/bin/fmix +127 -49
- package/package.json +5 -5
package/bin/fmix
CHANGED
|
@@ -23,7 +23,7 @@ set -uo pipefail
|
|
|
23
23
|
# ---------------------------------------------------------------------------
|
|
24
24
|
# Constants & config
|
|
25
25
|
# ---------------------------------------------------------------------------
|
|
26
|
-
FMIX_VERSION="2.4.
|
|
26
|
+
FMIX_VERSION="2.4.2"
|
|
27
27
|
FMIX_HOME="${FMIX_HOME:-${HOME}/.ct-fmix}"
|
|
28
28
|
FMIX_OS="$(uname -s)"
|
|
29
29
|
FMIX_ARCH="$(uname -m)"
|
|
@@ -900,7 +900,7 @@ fmix_resolve_session_identity() {
|
|
|
900
900
|
# Opt-in only: default ignores CODEX_THREAD_ID (2.2.0 super-hot).
|
|
901
901
|
candidate="codex:${CODEX_THREAD_ID}"
|
|
902
902
|
source="codex-thread"
|
|
903
|
-
elif
|
|
903
|
+
elif [[ "${GITHUB_ACTIONS:-}" == "true" ]] && [[ -n "${GITHUB_RUN_ID:-}" ]]; then
|
|
904
904
|
candidate="github:${GITHUB_RUN_ID}:${GITHUB_JOB:-job}:${GITHUB_RUN_ATTEMPT:-1}"
|
|
905
905
|
source="github-actions"
|
|
906
906
|
else
|
|
@@ -7322,7 +7322,8 @@ EOF
|
|
|
7322
7322
|
# Warm-path short-circuit: accept an existing stamp when the cheap invalidator
|
|
7323
7323
|
# matches and beams still exist. Skips full content fingerprint + deps walk.
|
|
7324
7324
|
fmix_try_compile_stamp_quick_hit() {
|
|
7325
|
-
local worktree="$1" real build_root stamp
|
|
7325
|
+
local worktree="$1" real build_root stamp dependency_stamp dependency_fingerprint dependency_guard
|
|
7326
|
+
local recorded_path recorded_build recorded_quick current_quick
|
|
7326
7327
|
local app_ebin
|
|
7327
7328
|
real="$(fmix_realpath "$worktree")" || return 1
|
|
7328
7329
|
build_root="$(fmix_compile_build_root "$real")" || return 1
|
|
@@ -7339,8 +7340,15 @@ fmix_try_compile_stamp_quick_hit() {
|
|
|
7339
7340
|
[[ -n "$(find "$app_ebin" -maxdepth 1 -type f -name '*.beam' -print -quit 2>/dev/null)" ]] || return 1
|
|
7340
7341
|
current_quick="$(fmix_compile_quick_guard "$real")" || return 1
|
|
7341
7342
|
[[ "$recorded_quick" == "$current_quick" ]] || return 1
|
|
7342
|
-
#
|
|
7343
|
-
|
|
7343
|
+
# A quick hit must not accept a stale or partial dependency checkpoint.
|
|
7344
|
+
# Validate the cheap structural fields here; the full dependency/source
|
|
7345
|
+
# guard remains the responsibility of fmix_ensure_compile on a miss.
|
|
7346
|
+
dependency_stamp="$(fmix_dependency_stamp_file "$real")"
|
|
7347
|
+
[[ -f "$dependency_stamp" ]] || return 1
|
|
7348
|
+
dependency_fingerprint="$(fmix_read_state "$dependency_stamp" dependency_fingerprint)"
|
|
7349
|
+
dependency_guard="$(fmix_read_state "$dependency_stamp" source_guard)"
|
|
7350
|
+
[[ "$dependency_fingerprint" =~ ^[0-9a-f]{64}$ ]] || return 1
|
|
7351
|
+
[[ -n "$dependency_guard" ]] || return 1
|
|
7344
7352
|
return 0
|
|
7345
7353
|
}
|
|
7346
7354
|
|
|
@@ -8423,7 +8431,7 @@ cmd_test() {
|
|
|
8423
8431
|
local worktree_arg="auto"
|
|
8424
8432
|
local cache_base="${FMIX_STABLE_BASE:-}"
|
|
8425
8433
|
local session_arg=""
|
|
8426
|
-
local mix_args=()
|
|
8434
|
+
local mix_args=() mix_args_present=0
|
|
8427
8435
|
local found_sep=0
|
|
8428
8436
|
local coverage_base=""
|
|
8429
8437
|
local coverage_threshold="80"
|
|
@@ -8521,7 +8529,10 @@ cmd_test() {
|
|
|
8521
8529
|
esac
|
|
8522
8530
|
done
|
|
8523
8531
|
if (( found_sep == 1 )); then
|
|
8524
|
-
|
|
8532
|
+
if (( $# > 0 )); then
|
|
8533
|
+
mix_args=("$@")
|
|
8534
|
+
mix_args_present=1
|
|
8535
|
+
fi
|
|
8525
8536
|
fi
|
|
8526
8537
|
|
|
8527
8538
|
if [[ "$run_mode" == "coverage" ]]; then
|
|
@@ -8533,17 +8544,19 @@ cmd_test() {
|
|
|
8533
8544
|
fmix_error "--threshold must be a non-negative number."
|
|
8534
8545
|
return 2
|
|
8535
8546
|
fi
|
|
8536
|
-
if ((
|
|
8547
|
+
if (( mix_args_present == 0 )); then
|
|
8537
8548
|
fmix_error "'fmix coverage' requires one or more explicit test paths after --."
|
|
8538
8549
|
return 2
|
|
8539
8550
|
fi
|
|
8540
8551
|
local coverage_target
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8552
|
+
if (( mix_args_present == 1 )); then
|
|
8553
|
+
for coverage_target in "${mix_args[@]}"; do
|
|
8554
|
+
if [[ "$coverage_target" == -* ]]; then
|
|
8555
|
+
fmix_error "'fmix coverage' accepts test paths only after --; unsupported argument: $coverage_target"
|
|
8556
|
+
return 2
|
|
8557
|
+
fi
|
|
8558
|
+
done
|
|
8559
|
+
fi
|
|
8547
8560
|
local coverage_source
|
|
8548
8561
|
for coverage_source in "${coverage_sources[@]}"; do
|
|
8549
8562
|
if [[ "$coverage_source" != lib/*.ex ]]; then
|
|
@@ -8553,15 +8566,17 @@ cmd_test() {
|
|
|
8553
8566
|
done
|
|
8554
8567
|
else
|
|
8555
8568
|
local mix_arg
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8569
|
+
if (( mix_args_present == 1 )); then
|
|
8570
|
+
for mix_arg in "${mix_args[@]}"; do
|
|
8571
|
+
case "$mix_arg" in
|
|
8572
|
+
--cover|--cover=*)
|
|
8573
|
+
fmix_error "Raw mix --cover is disabled: it instruments the entire application and defeats FMix isolation."
|
|
8574
|
+
fmix_error "Use: fmix coverage --worktree <path> --base <git-ref> -- <test paths>"
|
|
8575
|
+
return 2
|
|
8576
|
+
;;
|
|
8577
|
+
esac
|
|
8578
|
+
done
|
|
8579
|
+
fi
|
|
8565
8580
|
fi
|
|
8566
8581
|
|
|
8567
8582
|
fmix_run_telemetry_begin "$run_mode"
|
|
@@ -8720,7 +8735,11 @@ cmd_test() {
|
|
|
8720
8735
|
# the per-worktree lock. Do not make Mix run the compiler pipeline again as
|
|
8721
8736
|
# the test task starts. User arguments remain last so test selection and
|
|
8722
8737
|
# formatter options retain their normal behavior.
|
|
8723
|
-
local -a run_args
|
|
8738
|
+
local -a run_args
|
|
8739
|
+
run_args=("--no-compile")
|
|
8740
|
+
if (( mix_args_present == 1 )); then
|
|
8741
|
+
run_args+=("${mix_args[@]}")
|
|
8742
|
+
fi
|
|
8724
8743
|
if [[ "$run_mode" == "coverage" ]]; then
|
|
8725
8744
|
fmix_info "Running targeted diff coverage against $coverage_base (${#mix_args[@]} explicit test target(s), threshold ${coverage_threshold}%)."
|
|
8726
8745
|
if (( ${#coverage_sources[@]} > 0 )); then
|
|
@@ -8731,7 +8750,10 @@ cmd_test() {
|
|
|
8731
8750
|
fmix_info "Compilation is disabled; only scoped changed-module BEAMs will be cover-instrumented."
|
|
8732
8751
|
elif (( unit_mode == 1 )); then
|
|
8733
8752
|
mix_task="test.unit"
|
|
8734
|
-
run_args=("--no-start" "--no-compile"
|
|
8753
|
+
run_args=("--no-start" "--no-compile")
|
|
8754
|
+
if (( mix_args_present == 1 )); then
|
|
8755
|
+
run_args+=("${mix_args[@]}")
|
|
8756
|
+
fi
|
|
8735
8757
|
fmix_info "Running (pure-unit lane / CI parity): CT_TEST_PROFILE=unit mix ${mix_task} ${run_args[*]+"${run_args[*]}"}"
|
|
8736
8758
|
else
|
|
8737
8759
|
fmix_info "Running: mix ${mix_task} ${run_args[*]+"${run_args[*]}"}"
|
|
@@ -9105,6 +9127,12 @@ cmd_doctor() {
|
|
|
9105
9127
|
psql_loc="$(fmix_find_psql)"
|
|
9106
9128
|
if [[ -n "$psql_loc" ]]; then
|
|
9107
9129
|
echo " [OK] psql: $psql_loc"
|
|
9130
|
+
elif fmix_control_psql 5 -h "$DB_HOST" -p "$DB_PORT" -U "$DB_USER" \
|
|
9131
|
+
-d postgres -c "SELECT 1" >/dev/null 2>&1; then
|
|
9132
|
+
# A configured control adapter (for example a test stub or a remote
|
|
9133
|
+
# container wrapper) is sufficient even when no host psql binary is
|
|
9134
|
+
# discoverable. The explicit auth probe below remains authoritative.
|
|
9135
|
+
echo " [OK] psql: configured control adapter"
|
|
9108
9136
|
else
|
|
9109
9137
|
echo " [FAIL] psql not found — install postgresql or ensure docker is running for fallback"
|
|
9110
9138
|
fail=1
|
|
@@ -9215,8 +9243,12 @@ cmd_doctor() {
|
|
|
9215
9243
|
fail=$(( fail + 1 ))
|
|
9216
9244
|
fi
|
|
9217
9245
|
else
|
|
9218
|
-
|
|
9219
|
-
|
|
9246
|
+
if ! command -v erl >/dev/null 2>&1; then
|
|
9247
|
+
echo " [WARN] exact repo toolchain ABI unavailable (erl not installed) — run asdf install for strict verification"
|
|
9248
|
+
else
|
|
9249
|
+
echo " [FAIL] active BEAM runtime does not match .tool-versions"
|
|
9250
|
+
fail=$(( fail + 1 ))
|
|
9251
|
+
fi
|
|
9220
9252
|
fi
|
|
9221
9253
|
local tk
|
|
9222
9254
|
if tk="$(fmix_compute_template_key "$real_wt")"; then
|
|
@@ -10280,6 +10312,16 @@ cmd_gc() {
|
|
|
10280
10312
|
cmd_self_test() {
|
|
10281
10313
|
local pass=0 fail=0 skip=0
|
|
10282
10314
|
|
|
10315
|
+
# Keep a pristine definition for the long self-test. Several fixtures
|
|
10316
|
+
# monkeypatch stamp writers to exercise rollback paths; restore the
|
|
10317
|
+
# production implementation before the independent compile-stamp lane so
|
|
10318
|
+
# one fixture cannot leak a stub into later assertions.
|
|
10319
|
+
local fmix_write_dependency_stamp_self_test_definition
|
|
10320
|
+
fmix_write_dependency_stamp_self_test_definition="$(
|
|
10321
|
+
declare -f fmix_write_dependency_stamp
|
|
10322
|
+
)"
|
|
10323
|
+
eval "${fmix_write_dependency_stamp_self_test_definition/fmix_write_dependency_stamp/fmix_write_dependency_stamp_self_test_orig}"
|
|
10324
|
+
|
|
10283
10325
|
st_pass() { echo " PASS: $*"; pass=$(( pass + 1 )); }
|
|
10284
10326
|
st_fail() { echo " FAIL: $*"; fail=$(( fail + 1 )); }
|
|
10285
10327
|
st_skip() { echo " SKIP: $*"; skip=$(( skip + 1 )); }
|
|
@@ -11922,7 +11964,10 @@ EOF
|
|
|
11922
11964
|
| sed '1s/fmix_cow_clone/fmix_cow_clone_restore_orig/')"
|
|
11923
11965
|
interrupt_signal=TERM
|
|
11924
11966
|
fmix_cow_clone() {
|
|
11925
|
-
|
|
11967
|
+
# The interrupt fixture runs cmd_test in a subshell so a signal cannot
|
|
11968
|
+
# terminate the self-test parent. Bash 3.2 has no BASHPID, but that
|
|
11969
|
+
# branch skips these in-process signal assertions on macOS anyway.
|
|
11970
|
+
kill "-$interrupt_signal" "${BASHPID:-$$}"
|
|
11926
11971
|
return 1
|
|
11927
11972
|
}
|
|
11928
11973
|
if ! fmix_restore_stable_seed "$seed_consumer" 0.8.7-stable \
|
|
@@ -11967,7 +12012,26 @@ EOF
|
|
|
11967
12012
|
interrupt_signature_before="$(st_artifact_signature "$interrupt_session_root")"
|
|
11968
12013
|
interrupt_failed=0
|
|
11969
12014
|
interrupt_diag_file="$(mktemp)"
|
|
11970
|
-
|
|
12015
|
+
local interrupt_cases="" interrupt_case_count=0
|
|
12016
|
+
# Apple ships Bash 3.2, whose noninteractive signal/trap semantics can
|
|
12017
|
+
# terminate this in-process fixture before the restore handler records
|
|
12018
|
+
# its conventional status. Keep the full signal assertions on Linux and
|
|
12019
|
+
# modern Bash; report the legacy macOS shell gap as an explicit skip.
|
|
12020
|
+
if [[ "$FMIX_OS" == "Darwin" && "${BASH_VERSINFO[0]:-0}" -lt 4 ]]; then
|
|
12021
|
+
st_skip "restore interrupt assertions require Bash 4+ on macOS"
|
|
12022
|
+
else
|
|
12023
|
+
interrupt_cases="INT:130 TERM:143"
|
|
12024
|
+
interrupt_case_count=2
|
|
12025
|
+
# Bash on macOS can inherit an ignored SIGHUP disposition even on
|
|
12026
|
+
# newer installations. Keep HUP on Linux and skip only that case.
|
|
12027
|
+
if [[ "$FMIX_OS" != "Darwin" ]]; then
|
|
12028
|
+
interrupt_cases="$interrupt_cases HUP:129"
|
|
12029
|
+
interrupt_case_count=3
|
|
12030
|
+
else
|
|
12031
|
+
st_skip "HUP restore interrupt has non-deterministic semantics in macOS noninteractive Bash"
|
|
12032
|
+
fi
|
|
12033
|
+
fi
|
|
12034
|
+
for interrupt_case in $interrupt_cases; do
|
|
11971
12035
|
interrupt_signal="${interrupt_case%%:*}"
|
|
11972
12036
|
expected_interrupt_rc="${interrupt_case##*:}"
|
|
11973
12037
|
rm -f "$interrupt_v2_marker"
|
|
@@ -11976,8 +12040,8 @@ EOF
|
|
|
11976
12040
|
FMIX_ACTIVE_SESSION_ROOT=""
|
|
11977
12041
|
FMIX_ACTIVE_SESSION_SOURCE=""
|
|
11978
12042
|
interrupt_rc=0
|
|
11979
|
-
cmd_test --worktree "$seed_consumer" --session restore-interrupt-test \
|
|
11980
|
-
--cache-base 0.8.7-stable -- >"$interrupt_diag_file" 2>&1 \
|
|
12043
|
+
( cmd_test --worktree "$seed_consumer" --session restore-interrupt-test \
|
|
12044
|
+
--cache-base 0.8.7-stable -- ) >"$interrupt_diag_file" 2>&1 \
|
|
11981
12045
|
|| interrupt_rc=$?
|
|
11982
12046
|
if (( interrupt_rc != expected_interrupt_rc )) \
|
|
11983
12047
|
|| [[ -e "$interrupt_v2_marker" ]] \
|
|
@@ -11989,7 +12053,9 @@ EOF
|
|
|
11989
12053
|
interrupt_failure_detail="${interrupt_case}:rc=${interrupt_rc}:marker=$([[ -e "$interrupt_v2_marker" ]] && printf yes || printf no):signature=$([[ "$(st_artifact_signature "$interrupt_session_root")" == "$interrupt_signature_before" ]] && printf same || printf changed):dep=$([[ "$(cat "$interrupt_session_root/dependency-stamp.json" 2>/dev/null)" == "old consumer dependency stamp" ]] && printf same || printf changed):compile=$([[ "$(cat "$interrupt_session_root/compile-stamp.json" 2>/dev/null)" == "old consumer compile stamp" ]] && printf same || printf changed):lock=$([[ -e "$FMIX_HOME/locks/session-$interrupt_session_hash" ]] && printf present || printf clear):diag=$(tail -1 "$interrupt_diag_file")"
|
|
11990
12054
|
fi
|
|
11991
12055
|
done
|
|
11992
|
-
if ((
|
|
12056
|
+
if (( interrupt_case_count == 0 )); then
|
|
12057
|
+
:
|
|
12058
|
+
elif (( interrupt_failed == 0 )); then
|
|
11993
12059
|
st_pass "INT TERM and HUP abort cmd_test after rollback without V2 fallback"
|
|
11994
12060
|
else
|
|
11995
12061
|
st_fail "a restore interrupt became a cmd_test cold miss or leaked state ($interrupt_failure_detail)"
|
|
@@ -12050,8 +12116,7 @@ EOF
|
|
|
12050
12116
|
fi
|
|
12051
12117
|
git -C "$seed_repo" worktree remove --force "$late_interrupt_consumer"
|
|
12052
12118
|
|
|
12053
|
-
eval "$
|
|
12054
|
-
| sed '1s/fmix_write_dependency_stamp/fmix_write_dependency_stamp_restore_orig/')"
|
|
12119
|
+
eval "${fmix_write_dependency_stamp_self_test_definition/fmix_write_dependency_stamp/fmix_write_dependency_stamp_restore_orig}"
|
|
12055
12120
|
fmix_write_dependency_stamp() { return 1; }
|
|
12056
12121
|
if ! fmix_restore_stable_seed "$seed_consumer" 0.8.7-stable \
|
|
12057
12122
|
>/dev/null 2>&1 \
|
|
@@ -12062,8 +12127,7 @@ EOF
|
|
|
12062
12127
|
else
|
|
12063
12128
|
st_fail "failed post-selection restore left partial artifacts or stamp changes"
|
|
12064
12129
|
fi
|
|
12065
|
-
eval "$
|
|
12066
|
-
| sed '1s/fmix_write_dependency_stamp_restore_orig/fmix_write_dependency_stamp/')"
|
|
12130
|
+
eval "$fmix_write_dependency_stamp_self_test_definition"
|
|
12067
12131
|
rm -f "$(fmix_dependency_stamp_file "$seed_consumer")" \
|
|
12068
12132
|
"$(fmix_compile_stamp_file "$seed_consumer")"
|
|
12069
12133
|
|
|
@@ -12093,8 +12157,7 @@ EOF
|
|
|
12093
12157
|
printf 'old rollback compile stamp\n' \
|
|
12094
12158
|
>"$rollback_session_root/compile-stamp.json"
|
|
12095
12159
|
|
|
12096
|
-
eval "$
|
|
12097
|
-
| sed '1s/fmix_write_dependency_stamp/fmix_write_dependency_stamp_rollback_failure_orig/')"
|
|
12160
|
+
eval "${fmix_write_dependency_stamp_self_test_definition/fmix_write_dependency_stamp/fmix_write_dependency_stamp_rollback_failure_orig}"
|
|
12098
12161
|
eval "$(declare -f fmix_preflight \
|
|
12099
12162
|
| sed '1s/fmix_preflight/fmix_preflight_rollback_failure_orig/')"
|
|
12100
12163
|
eval "$(declare -f fmix_check_pg_connections \
|
|
@@ -12123,8 +12186,8 @@ EOF
|
|
|
12123
12186
|
local rollback_diag_file
|
|
12124
12187
|
rollback_diag_file="$(mktemp)"
|
|
12125
12188
|
rollback_rc=0
|
|
12126
|
-
if cmd_test --worktree "$rollback_consumer" --session rollback-failure-test \
|
|
12127
|
-
--cache-base 0.8.7-stable -- >"$rollback_diag_file" 2>&1; then
|
|
12189
|
+
if ( cmd_test --worktree "$rollback_consumer" --session rollback-failure-test \
|
|
12190
|
+
--cache-base 0.8.7-stable -- ) >"$rollback_diag_file" 2>&1; then
|
|
12128
12191
|
rollback_rc=0
|
|
12129
12192
|
else
|
|
12130
12193
|
rollback_rc=$?
|
|
@@ -12140,8 +12203,7 @@ EOF
|
|
|
12140
12203
|
fi
|
|
12141
12204
|
|
|
12142
12205
|
unset -f mv
|
|
12143
|
-
eval "$
|
|
12144
|
-
| sed '1s/fmix_write_dependency_stamp_rollback_failure_orig/fmix_write_dependency_stamp/')"
|
|
12206
|
+
eval "$fmix_write_dependency_stamp_self_test_definition"
|
|
12145
12207
|
eval "$(declare -f fmix_preflight_rollback_failure_orig \
|
|
12146
12208
|
| sed '1s/fmix_preflight_rollback_failure_orig/fmix_preflight/')"
|
|
12147
12209
|
eval "$(declare -f fmix_check_pg_connections_rollback_failure_orig \
|
|
@@ -12251,7 +12313,11 @@ EOF
|
|
|
12251
12313
|
git -C "$seed_repo" worktree remove --force "$seed_peer"
|
|
12252
12314
|
rm -rf "$seed_repo" "$seed_outside" "$fake_seed"
|
|
12253
12315
|
FMIX_HOME="$self_test_old_home"
|
|
12254
|
-
|
|
12316
|
+
# Published dependency artifacts are intentionally sealed read-only. Make
|
|
12317
|
+
# the fixture tree writable before cleanup so macOS `rm -rf` under the
|
|
12318
|
+
# CI shell's inherited `errexit` cannot abort the self-test on teardown.
|
|
12319
|
+
chmod -R u+w "$self_test_seed_home" 2>/dev/null || true
|
|
12320
|
+
rm -rf "$self_test_seed_home" 2>/dev/null || true
|
|
12255
12321
|
|
|
12256
12322
|
# 3. DB name guard (ct_fmix_ prefix enforcement)
|
|
12257
12323
|
echo ""
|
|
@@ -12599,13 +12665,14 @@ EOF
|
|
|
12599
12665
|
"$FMIX_HOME/lock-metadata/released/old-lock" \
|
|
12600
12666
|
"$FMIX_HOME/lock-metadata/stale/old-lock"
|
|
12601
12667
|
FMIX_LOCK_METADATA_TTL_DAYS=7
|
|
12602
|
-
|
|
12668
|
+
local gc_cleanup_rc=0
|
|
12669
|
+
cmd_gc --reap --yes >/dev/null 2>&1 || gc_cleanup_rc=$?
|
|
12603
12670
|
if [[ ! -e "$FMIX_HOME/lock-metadata/released/old-lock" \
|
|
12604
12671
|
&& ! -e "$FMIX_HOME/lock-metadata/stale/old-lock" \
|
|
12605
12672
|
&& -d "$FMIX_HOME/lock-metadata/released/new-lock" ]]; then
|
|
12606
12673
|
st_pass "GC bounds released and stale lock-metadata retention"
|
|
12607
12674
|
else
|
|
12608
|
-
st_fail "GC retained expired lock metadata or removed a fresh record"
|
|
12675
|
+
st_fail "GC retained expired lock metadata or removed a fresh record (rc=$gc_cleanup_rc)"
|
|
12609
12676
|
fi
|
|
12610
12677
|
eval "$(declare -f fmix_control_psql_gc_orig \
|
|
12611
12678
|
| sed '1s/fmix_control_psql_gc_orig/fmix_control_psql/')"
|
|
@@ -12897,6 +12964,7 @@ EOF
|
|
|
12897
12964
|
|
|
12898
12965
|
echo ""
|
|
12899
12966
|
echo "--- Compile content/config stamp ---"
|
|
12967
|
+
eval "$fmix_write_dependency_stamp_self_test_definition"
|
|
12900
12968
|
local compile_root compile_copy compile_home compile_external fp_before fp_after fp_changed fp_other gitfile_repo
|
|
12901
12969
|
local dep_before dep_after source_deps_marker source_compile_marker source_compile_out
|
|
12902
12970
|
local dependency_env_out dependency_env_before dependency_env_after space_root no_deps_root old_db_password
|
|
@@ -13514,7 +13582,9 @@ EOF
|
|
|
13514
13582
|
st_fail "deps.get timeout was not enforced: rc=$deps_timeout_rc out='$deps_timeout_out'"
|
|
13515
13583
|
fi
|
|
13516
13584
|
|
|
13517
|
-
|
|
13585
|
+
# Leave one full sampling interval of slack: a printf followed by
|
|
13586
|
+
# `sleep 1` can land on the same epoch-second as the watchdog on macOS.
|
|
13587
|
+
FMIX_DEPS_STALL_TIMEOUT=2
|
|
13518
13588
|
FMIX_DEPS_TIMEOUT=5
|
|
13519
13589
|
_fmix_run_deps_get() {
|
|
13520
13590
|
local i
|
|
@@ -13794,7 +13864,10 @@ EOF
|
|
|
13794
13864
|
fi
|
|
13795
13865
|
FMIX_STRUCTURE_LOAD_TIMEOUT=1
|
|
13796
13866
|
FMIX_STRUCTURE_LOAD_HEARTBEAT=1
|
|
13797
|
-
fmix_psql() {
|
|
13867
|
+
fmix_psql() {
|
|
13868
|
+
printf '%s\n' "${BASHPID:-$$}" >"$structure_pid_file"
|
|
13869
|
+
sleep 10
|
|
13870
|
+
}
|
|
13798
13871
|
fmix_structure_load_activity() {
|
|
13799
13872
|
if [[ -s "$structure_pid_file" ]] && kill -0 "$(cat "$structure_pid_file")" 2>/dev/null; then
|
|
13800
13873
|
printf 'pid=42 wait=IO/DataFileImmediateSync age=90s sql=CREATE TABLE curri_events_20251117\n'
|
|
@@ -14211,8 +14284,13 @@ PY
|
|
|
14211
14284
|
first_snapshot="$(FMIX_HOME="$install_home" fmix_install_snapshot "$install_source" "$install_bin" 2>/dev/null)" || first_snapshot=""
|
|
14212
14285
|
first_hash="$(fmix_hash_files "$install_source" 2>/dev/null | awk 'NR == 1 {print $1}')"
|
|
14213
14286
|
first_mode=""
|
|
14214
|
-
[[ -n "$first_snapshot" && -f "$first_snapshot" ]]
|
|
14215
|
-
|
|
14287
|
+
if [[ -n "$first_snapshot" && -f "$first_snapshot" ]]; then
|
|
14288
|
+
if [[ "$FMIX_OS" == "Darwin" ]]; then
|
|
14289
|
+
first_mode="$(stat -f '%Lp' "$first_snapshot" 2>/dev/null || true)"
|
|
14290
|
+
else
|
|
14291
|
+
first_mode="$(stat -c '%a' "$first_snapshot" 2>/dev/null || true)"
|
|
14292
|
+
fi
|
|
14293
|
+
fi
|
|
14216
14294
|
if [[ -n "$first_snapshot" \
|
|
14217
14295
|
&& "$first_snapshot" == "$install_home/runtime/fmix-$first_hash" \
|
|
14218
14296
|
&& -L "$install_link" \
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@calltelemetry/fmix",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"description": "Verified native FMix runner for CallTelemetry workspaces",
|
|
5
5
|
"bin": {
|
|
6
6
|
"fmix": "bin/fmix"
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "https://github.com/calltelemetry/
|
|
24
|
-
"directory": "packages/
|
|
23
|
+
"url": "https://github.com/calltelemetry/fmix.git",
|
|
24
|
+
"directory": "packages/npm"
|
|
25
25
|
},
|
|
26
26
|
"fmix": {
|
|
27
|
-
"runnerSha256": "
|
|
28
|
-
"sourceTag": "fmix-v2.4.
|
|
27
|
+
"runnerSha256": "3781b8be715aafed22bdeb3eb3efe45ad8e92bc091265b02a347819009807b26",
|
|
28
|
+
"sourceTag": "fmix-v2.4.2"
|
|
29
29
|
}
|
|
30
30
|
}
|