diff --git a/.fabrica/artifex/layers.yaml b/.fabrica/artifex/layers.yaml index 2f436d1..f08e17b 100644 --- a/.fabrica/artifex/layers.yaml +++ b/.fabrica/artifex/layers.yaml @@ -13,10 +13,10 @@ runner: nixos env: CARGO_TERM_COLOR: "never" CARGO_BUILD_JOBS: "8" - # Each of control's integration tests starts its own edge, Caddy and upstreams, and the tests give edge a 2 s - # margin to hear control's confirmation (production: 30 s). Run all at once on the shared runner, a status call - # can take longer than that and edge reverts the trial by itself, as designed (runs rc344zj96yjz1 and - # rqzephjsp7983, 2026-12-02). Four at a time keeps the runner within the margin. + # Each of control's integration tests starts its own edge, Caddy and upstreams. With the tests' old 2 s margin for + # control's confirmation (production: 30 s), a status call on the loaded shared runner took longer and edge + # reverted the trial by itself, as designed (runs rc344zj96yjz1, rqzephjsp7983, rzqmqbvx970f8; 2026-12-02). The + # margin is 5 s now (crates/control/tests/common/mod.rs), and four tests at a time keep the runner's load down. RUST_TEST_THREADS: "4" steps: - id: workspace-tests diff --git a/.fabrica/nix/pin.json b/.fabrica/nix/pin.json deleted file mode 100644 index 105a06e..0000000 --- a/.fabrica/nix/pin.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "commit": "d0c1ac2548224aa9c7b4d3a5586a0bc6f74beb78", - "nixpkgs": "c56a87d8e41ce69bd2af57eb35dcc117a9dfca33", - "outputs": { - "ianitor": { - "narHash": "sha256-hlX5oiJQPTieETbjojaZnPUGcSgPrKqO2vPsr2o2Xok=", - "narSize": 24455232, - "storePath": "/nix/store/p1fjjxz514ccaqyvzag43mpagj0akiqk-ianitor-1.0.0" - }, - "ianitor-web": { - "narHash": "sha256-cR8Lq5LNQoQ7xWa40jpjmRybUC8tS9XuXAtojDmCg2c=", - "narSize": 598000, - "storePath": "/nix/store/vsrm3326zm440gwp17nqg3g3bixb3cmm-ianitor-web-1.0.0" - } - }, - "sourceTree": "bf05c78a942bb6915c588760eef97a97ddf4efc0644c73f6ea2941bb9fde97f5", - "system": "x86_64-linux", - "version": "1.0.0" -} diff --git a/crates/control/tests/apply.rs b/crates/control/tests/apply.rs index fefea8d..7e69725 100644 --- a/crates/control/tests/apply.rs +++ b/crates/control/tests/apply.rs @@ -237,8 +237,9 @@ mod unix { "{stage}: edge.json untouched" ); } - // A trial edge was serving reverts by itself at its deadline (watch 2 s + margin 2 s). - tokio::time::sleep(Duration::from_secs(5)).await; + // A trial edge was serving reverts by itself at its deadline (watch 2 s + margin 5 s, + // common/mod.rs: room for a loaded runner between the watch's end and the confirmation). + tokio::time::sleep(Duration::from_secs(8)).await; let st = env.edge_status().await; assert!(st["trial"].is_null(), "{stage}: trial still running: {st}"); if !confirmed { diff --git a/crates/control/tests/common/mod.rs b/crates/control/tests/common/mod.rs index f1c6f07..5022ee3 100644 --- a/crates/control/tests/common/mod.rs +++ b/crates/control/tests/common/mod.rs @@ -174,7 +174,7 @@ state_dir = "{state}" credentials_dir = "{creds}" watch_secs = {watch} watch_every_secs = 1 -trial_margin_secs = 2 +trial_margin_secs = 5 health_poll_secs = 1 [routes]