From 6231a82be0ada297dda8c74284aaf750e0f01b45 Mon Sep 17 00:00:00 2001 From: giles Date: Sat, 6 Jun 2026 19:55:03 +0000 Subject: [PATCH] fed-sx-m2: bump http_publish/post_format/multi_actor sx_server timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Step 5d added ~150 lines to http_server.erl bringing it to ~1180 lines. erlang-load-module on this port scales superlinearly with function count, so three more http_*.sh tests' internal sx_server timeout (M1 default 240s) was no longer enough. Bumped to 600s — matches the headroom the other eight http_*.sh tests got in the Step 5d commit. Background-gate verification flagged these three (no behaviour change; just budget). http_publish 10/10, http_post_format 13/13, http_multi_actor 41/41 all green at 600s. --- next/tests/http_multi_actor.sh | 2 +- next/tests/http_post_format.sh | 2 +- next/tests/http_publish.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/next/tests/http_multi_actor.sh b/next/tests/http_multi_actor.sh index 115166ed..f41caea3 100755 --- a/next/tests/http_multi_actor.sh +++ b/next/tests/http_multi_actor.sh @@ -230,7 +230,7 @@ cat > "$TMPFILE" <<'EPOCHS' (eval "(get (erlang-eval-ast \"AliceTok = <<97,108,105,99,101,45,116,111,107,101,110>>, AuthKey = <<97,117,116,104,111,114,105,122,97,116,105,111,110>>, AliceAuth = <<66,101,97,114,101,114,32,97,108,105,99,101,45,116,111,107,101,110>>, Cfg = [{tokens, [{AliceTok, alice}]}], Req = [{method, <<80,79,83,84>>}, {path, http_server:activity_path()}, {headers, [{AuthKey, AliceAuth}]}, {body, <<>>}], R = http_server:route(Req, Cfg), case R of [{status, 200}, _, {body, B}] -> http_server:match_prefix(<<112,117,98,108,105,115,104,101,100>>, B) =/= nomatch; _ -> false end\") :name)") EPOCHS -OUTPUT=$(timeout 240 "$SX_SERVER" < "$TMPFILE" 2>/dev/null) +OUTPUT=$(timeout 600 "$SX_SERVER" < "$TMPFILE" 2>/dev/null) check() { local epoch="$1" desc="$2" expected="$3" diff --git a/next/tests/http_post_format.sh b/next/tests/http_post_format.sh index eb6d6be5..c995e92a 100755 --- a/next/tests/http_post_format.sh +++ b/next/tests/http_post_format.sh @@ -97,7 +97,7 @@ cat > "$TMPFILE" <<'EPOCHS' (eval "(get (erlang-eval-ast \"KM = <<1,2,3,4>>, KS = [{key_id,k1},{algorithm,ed25519},{value,KM}], AS = [{public_keys,[[{id,k1},{created,0},{value,KM}]]}], nx_kernel:start_link(alice, KS, AS), Token = <<102,111,111>>, AuthKey = <<97,117,116,104,111,114,105,122,97,116,105,111,110>>, AuthVal = <<66,101,97,114,101,114,32,102,111,111>>, AcceptKey = <<97,99,99,101,112,116>>, AcceptVal = <<97,112,112,108,105,99,97,116,105,111,110,47,106,115,111,110>>, Req = [{method, <<80,79,83,84>>}, {path, http_server:activity_path()}, {headers, [{AuthKey, AuthVal}, {AcceptKey, AcceptVal}]}, {body, <<104,105>>}], Cfg = [{publish_token, Token}], R = http_server:route(Req, Cfg), case R of [_, {headers, [{_, CT}]}, _] -> CT =:= http_server:content_type_for(json); _ -> false end\") :name)") EPOCHS -OUTPUT=$(timeout 240 "$SX_SERVER" < "$TMPFILE" 2>/dev/null) +OUTPUT=$(timeout 600 "$SX_SERVER" < "$TMPFILE" 2>/dev/null) check() { local epoch="$1" desc="$2" expected="$3" diff --git a/next/tests/http_publish.sh b/next/tests/http_publish.sh index 97eaae66..cb5bfce1 100755 --- a/next/tests/http_publish.sh +++ b/next/tests/http_publish.sh @@ -92,7 +92,7 @@ cat > "$TMPFILE" <>), case R of [_, _, {body, B}] -> B =:= <<99,105,100,58,32,102,111,111,10>>; _ -> false end\") :name)") EPOCHS -OUTPUT=$(timeout 240 "$SX_SERVER" < "$TMPFILE" 2>/dev/null) +OUTPUT=$(timeout 600 "$SX_SERVER" < "$TMPFILE" 2>/dev/null) check() { local epoch="$1" desc="$2" expected="$3"