these 3 derivations will be built: /nix/store/8v4cgpfl00y9f9d4aby19m7xhz3bng9l-test-script.drv /nix/store/f38d5xfv1rrm8m2xmy3cvm0srf3k02z0-nixos-test-driver-github-webhook.drv /nix/store/ibj84yil82an60c2fwcc3ya2j7is9qa1-container-test-run-github-webhook.drv these 20 paths will be fetched (0.0 KiB download, 5.6 MiB unpacked): /nix/store/ymzym4plfmin4n299dv4nj1sf6f6zzp4-X-Restart-Triggers-dbus-broker /nix/store/5ja2ndlx3gpsvjr98xw2kv5vrc7502pf-X-Restart-Triggers-systemd-tmpfiles-resetup /nix/store/w5qisxd7p6ic5bjs9z17ck5n832z5anr-dbus-1 /nix/store/4w8ri8wymq7gi6m6bvryjqqqyhrqd0ch-driverConfiguration.json /nix/store/bbmp7r1iwv9vc2mjxaxsg49l9nw2j4kg-etc /nix/store/6r5hafdc25zrr7bgfa35jkbs350b70nn-github-webhook-config.json /nix/store/cq3i4s5cv07hqhdwis6jyhicjb5gg1gr-manifest.json /nix/store/ny8msqw831c2hcqdv7mxvnhypc6mi8dq-nixos-system-machine-test /nix/store/3snszds9bwqald889xpchsy8xcajiis7-nixos-tmpfiles.d /nix/store/2zrjrdl560cw1h65mnwszdh3bvwzkxry-run-machine-nspawn /nix/store/gb6p7aysjaj7i3wrjq22fqq1xgsy6iyz-system-path /nix/store/j6bfzf32nlldwpbq2rf4001wkzv6gszg-system-units /nix/store/nysh5kkl77jlnvqbqg3griffsqa9vl5q-test-script /nix/store/07pdcg313si1g1crzwyyl80yi6v2pyw1-tmpfiles.d /nix/store/fq36251aga80vv7i8zfkyw7n2bp98jl5-unit-dbus-broker.service /nix/store/ylb5pzklksr3cddf9fm8krccq4mn1p69-unit-dbus-broker.service /nix/store/p9sj1q27ms1qcmsp74x91a37w17gwylq-unit-github-webhook.service /nix/store/r28sahqk832bipjw0aqm37ii39y2gcvh-unit-systemd-tmpfiles-resetup.service /nix/store/n8wmk4l22lrf9rrkbwmfhcsniv5vknkn-user-units /nix/store/zfwlqpyxbr8nmgb68251bjjmpwqncmg7-users-groups.json building '/nix/store/8v4cgpfl00y9f9d4aby19m7xhz3bng9l-test-script.drv' building '/nix/store/f38d5xfv1rrm8m2xmy3cvm0srf3k02z0-nixos-test-driver-github-webhook.drv' nixos-test-driver-github-webhook> Running type check (enable/disable: config.skipTypeCheck) nixos-test-driver-github-webhook> See https://nixos.org/manual/nixos/stable/#test-opt-skipTypeCheck nixos-test-driver-github-webhook> All checks passed! nixos-test-driver-github-webhook> Linting test script (enable/disable: config.skipLint) nixos-test-driver-github-webhook> See https://nixos.org/manual/nixos/stable/#test-opt-skipLint nixos-test-driver-github-webhook> All checks passed! building '/nix/store/ibj84yil82an60c2fwcc3ya2j7is9qa1-container-test-run-github-webhook.drv' container-test-run-github-webhook> [0.00s] Machine state will be reset. To keep it, pass --keep-machine-state container-test-run-github-webhook> [0.00s] start all VLans container-test-run-github-webhook> [0.00s] (finished: start all VLans, in 0.00 seconds) container-test-run-github-webhook> Initializing machine ID from random generator. container-test-run-github-webhook> [0.03s] Test will time out and terminate in 120.0 seconds container-test-run-github-webhook> [0.03s] run the VM test script container-test-run-github-webhook> additionally exposed symbols: container-test-run-github-webhook> machine, container-test-run-github-webhook> vlan1, container-test-run-github-webhook> start_all, test_script, machines, machines_qemu, machines_nspawn, vlans, driver, log, os, create_machine, subtest, run_tests, join_all, retry, serial_stdout_off, serial_stdout_on, polling_condition, BaseMachine, QemuMachine, NspawnMachine, t, debug, dump_machine_ssh container-test-run-github-webhook> [0.03s] machine: systemd-nspawn running (pid 50) container-test-run-github-webhook> [0.03s] machine: Waiting for journal at /build/vm-state-machine/var/log/journal... container-test-run-github-webhook> [0.03s] machine: waiting for unit multi-user.target container-test-run-github-webhook> nixos-nspawn(machine): TAP vde-tap1 not found; container will be isolated from VDE container-test-run-github-webhook> nixos-nspawn(machine): A common reason for this is that /dev/net is not available in the Nix sandbox. Try adding /dev/net to extra-sandbox-paths. container-test-run-github-webhook> Note: in a future version of systemd-nspawn the default set of permitted socket address families will be restricted to AF_INET, AF_INET6 and AF_UNIX. Use --restrict-address-families= to configure the set of permitted socket address families, or set RestrictAddressFamilies= in a .nspawn file. container-test-run-github-webhook> ░ Spawning container machine on /build/vm-state-machine. container-test-run-github-webhook> machine # No journal files were found. container-test-run-github-webhook> machine # No journal boot entry found for the specified boot (+0). container-test-run-github-webhook> machine # [639923.590707] machine systemd-journald[68]: Journal started container-test-run-github-webhook> machine # [639923.591273] machine systemd-journald[68]: Runtime Journal (/run/log/journal/5617ef926c6c4c7da74d2099bc0b1bfc) is 8M, max 1.2G, 1.2G free. container-test-run-github-webhook> machine # [639923.610278] machine systemd[1]: Finished Apply Kernel Variables. container-test-run-github-webhook> machine # [639923.630365] machine systemd[1]: Finished Create Static Device Nodes in /dev gracefully. container-test-run-github-webhook> machine # [639923.652044] machine systemd[1]: Starting Flush Journal to Persistent Storage... container-test-run-github-webhook> machine # [639923.653187] machine systemd[1]: Starting Create Static Device Nodes in /dev... container-test-run-github-webhook> machine # [639923.671507] machine systemd-journald[68]: Time spent on flushing to /var/log/journal/5617ef926c6c4c7da74d2099bc0b1bfc is 1.532ms for 6 entries. container-test-run-github-webhook> machine # [639923.671507] machine systemd-journald[68]: System Journal (/var/log/journal/5617ef926c6c4c7da74d2099bc0b1bfc) is 8M, max 4G, 3.9G free. container-test-run-github-webhook> machine # [639923.690745] machine systemd[1]: Finished Flush Journal to Persistent Storage. container-test-run-github-webhook> machine # [639923.691076] machine systemd[1]: Finished Create Static Device Nodes in /dev. container-test-run-github-webhook> machine # [639923.691950] machine systemd[1]: Reached target Preparation for Local File Systems. container-test-run-github-webhook> machine # [639923.692271] machine systemd[1]: Rule-based Manager for Device Events and Files skipped, unmet condition check ConditionPathIsReadWrite=/sys container-test-run-github-webhook> machine # [639923.759762] machine systemd[1]: Finished Firewall. container-test-run-github-webhook> machine # [639924.582209] machine systemd[1]: Mounting /run/wrappers... container-test-run-github-webhook> machine # [639924.616395] machine systemd[1]: Mounted /run/wrappers. container-test-run-github-webhook> machine # [639924.617225] machine systemd[1]: Reached target Local File Systems. container-test-run-github-webhook> machine # [639924.618071] machine systemd[1]: Listening on Boot Loader Control Service Socket. container-test-run-github-webhook> machine # [639924.618858] machine systemd[1]: Starting Create SUID/SGID Wrappers... container-test-run-github-webhook> machine # [639924.618894] machine systemd[1]: Update Boot Loader Random Seed skipped, unmet condition check ConditionVirtualization=!container container-test-run-github-webhook> machine # [639924.619595] machine systemd[1]: Starting Save Transient machine-id to Disk... container-test-run-github-webhook> machine # [639924.620236] machine systemd[1]: Starting Create System Files and Directories... container-test-run-github-webhook> machine # [639924.653124] machine systemd-tmpfiles[174]: Cannot set file attributes for '/var/empty', value=0x00000010, mask=0x00000010, ignoring: Operation not permitted container-test-run-github-webhook> machine # [639924.653487] machine systemd-tmpfiles[174]: fchmod() of /var/log/journal failed: Operation not permitted container-test-run-github-webhook> machine # [639924.653694] machine systemd-tmpfiles[174]: fchmod() of /var/log/journal/5617ef926c6c4c7da74d2099bc0b1bfc failed: Operation not permitted container-test-run-github-webhook> machine # [639924.653973] machine systemd-tmpfiles[174]: fchmod() of /run/log/journal failed: Operation not permitted container-test-run-github-webhook> machine # [639924.656156] machine suid-sgid-wrappers-start[181]: chmod: changing permissions of '/run/wrappers/wrappers.65hHqq7ANX/chsh': Operation not permitted container-test-run-github-webhook> machine # [639924.656520] machine systemd[1]: Finished Create System Files and Directories. container-test-run-github-webhook> machine # [639924.695603] machine systemd[1]: etc-machine\x2did.mount: Deactivated successfully. container-test-run-github-webhook> machine # [639924.696558] machine systemd[1]: suid-sgid-wrappers.service: Main process exited, code=exited, status=1/FAILURE container-test-run-github-webhook> machine # [639924.696618] machine systemd[1]: suid-sgid-wrappers.service: Failed to read pids.max for control group /system.slice/suid-sgid-wrappers.service, ignoring: No data available container-test-run-github-webhook> machine # [639924.696676] machine systemd[1]: suid-sgid-wrappers.service: Failed to read pids.max for control group /system.slice/suid-sgid-wrappers.service, ignoring: No data available container-test-run-github-webhook> machine # [639924.696709] machine systemd[1]: suid-sgid-wrappers.service: Failed with result 'exit-code'. container-test-run-github-webhook> machine # [639924.696868] machine systemd[1]: Failed to start Create SUID/SGID Wrappers. container-test-run-github-webhook> machine # [639924.697136] machine systemd[1]: Finished Save Transient machine-id to Disk. container-test-run-github-webhook> machine # [639924.699306] machine systemd[1]: Starting Rebuild Journal Catalog... container-test-run-github-webhook> machine # [639924.701158] machine systemd[1]: Starting Record System Boot/Shutdown in UTMP... container-test-run-github-webhook> machine # [639924.723251] machine systemd[1]: Finished Record System Boot/Shutdown in UTMP. container-test-run-github-webhook> machine # [639924.742398] machine systemd[1]: Finished Rebuild Journal Catalog. container-test-run-github-webhook> machine # [639924.743436] machine systemd[1]: Starting Update is Completed... container-test-run-github-webhook> machine # [639924.759411] machine systemd[1]: Finished Update is Completed. container-test-run-github-webhook> machine # [639924.759945] machine systemd[1]: Reached target System Initialization. container-test-run-github-webhook> machine # [639924.760086] machine systemd[1]: Discard unused filesystem blocks once a week skipped, unmet condition check ConditionVirtualization=!container container-test-run-github-webhook> machine # [639924.760135] machine systemd[1]: Started Daily Cleanup of Temporary Directories. container-test-run-github-webhook> machine # [639924.760168] machine systemd[1]: Reached target Timer Units. container-test-run-github-webhook> machine # [639924.760334] machine systemd[1]: Listening on D-Bus System Message Bus Socket. container-test-run-github-webhook> machine # [639924.760481] machine systemd[1]: Listening on Nix Daemon Socket. container-test-run-github-webhook> machine # [639924.762106] machine systemd[1]: Listening on OpenSSH Server Socket (systemd-ssh-generator, AF_UNIX Export). container-test-run-github-webhook> machine # [639924.763462] machine systemd[1]: Listening on OpenSSH Server Socket (systemd-ssh-generator, AF_UNIX Local). container-test-run-github-webhook> machine # [639924.764561] machine systemd[1]: Listening on SSH Socket. container-test-run-github-webhook> machine # [639924.764784] machine systemd[1]: Listening on Virtual Machine and Container Registration Service Socket. container-test-run-github-webhook> machine # [639924.764834] machine systemd[1]: Reached target Socket Units. container-test-run-github-webhook> machine # [639924.764920] machine systemd[1]: Reached target Basic System. container-test-run-github-webhook> machine # [639924.766513] machine systemd[1]: Starting Import lastlog data into lastlog2 database... container-test-run-github-webhook> machine # [639924.767661] machine systemd[1]: Starting Name Service Cache Daemon (nsncd)... container-test-run-github-webhook> machine # [639924.768647] machine systemd[1]: Starting resolvconf update... container-test-run-github-webhook> machine # [639924.768788] machine systemd[1]: SSH Host Keys Generation skipped, no trigger condition checks were met. container-test-run-github-webhook> machine # [639924.798871] machine systemd[1]: Finished Import lastlog data into lastlog2 database. container-test-run-github-webhook> machine # [639924.840933] machine systemd[1]: nscd.service: Failed to read pids.max for control group /system.slice/nscd.service, ignoring: No data available container-test-run-github-webhook> machine # [639924.841124] machine systemd[1]: nscd.service: Deactivated successfully. container-test-run-github-webhook> machine # [639924.841366] machine systemd[1]: Stopped Name Service Cache Daemon (nsncd). container-test-run-github-webhook> machine # [639924.846886] machine systemd[1]: Starting Name Service Cache Daemon (nsncd)... container-test-run-github-webhook> machine # [639924.856135] machine resolvconf-start[248]: setfacl: /run/resolvconf: Operation not supported container-test-run-github-webhook> machine # [639924.859133] machine systemd[1]: resolvconf.service: Main process exited, code=exited, status=1/FAILURE container-test-run-github-webhook> machine # [639924.859210] machine systemd[1]: resolvconf.service: Failed to read pids.max for control group /system.slice/resolvconf.service, ignoring: No data available container-test-run-github-webhook> machine # [639924.859271] machine systemd[1]: resolvconf.service: Failed to read pids.max for control group /system.slice/resolvconf.service, ignoring: No data available container-test-run-github-webhook> machine # [639924.859305] machine systemd[1]: resolvconf.service: Failed with result 'exit-code'. container-test-run-github-webhook> machine # [639924.863148] machine systemd[1]: Failed to start resolvconf update. container-test-run-github-webhook> machine # [639924.864312] machine systemd[1]: Reached target Preparation for Network. container-test-run-github-webhook> machine # [639924.866526] machine systemd[1]: Starting Address configuration of eth1... container-test-run-github-webhook> machine # [639924.869582] machine systemd[1]: Starting Extra networking commands.... container-test-run-github-webhook> machine # [639924.903475] machine network-addresses-eth1-start[251]: adding address 192.168.1.1/24... done container-test-run-github-webhook> machine # [639924.910037] machine network-addresses-eth1-start[251]: adding address 2001:db8:1::1/64... done container-test-run-github-webhook> machine # [639924.919984] machine systemd[1]: Finished Address configuration of eth1. container-test-run-github-webhook> machine # [639924.967566] machine systemd[1]: Finished Extra networking commands.. container-test-run-github-webhook> machine # [639924.968089] machine systemd[1]: Reached target Network. container-test-run-github-webhook> machine # [639924.968200] machine systemd[1]: Reached target Network is Online. container-test-run-github-webhook> machine # [639924.971084] machine systemd[1]: Starting GitHub webhook listener... container-test-run-github-webhook> machine # [639925.123391] machine systemd[1]: Started Name Service Cache Daemon (nsncd). container-test-run-github-webhook> machine # [639925.123462] machine systemd[1]: Reached target Host and Network Name Lookups. container-test-run-github-webhook> machine # [639925.123515] machine systemd[1]: Reached target User and Group Name Lookups. container-test-run-github-webhook> machine # [639925.124014] machine nsncd[240]: Nov 22 17:59:35.953 INFO started, config: Config { ignored_request_types: {}, worker_count: 8, handoff_timeout: 10s }, path: "/var/run/nscd/socket" container-test-run-github-webhook> machine # [639925.124613] machine systemd[1]: Starting User Login Management... container-test-run-github-webhook> machine # [639925.126926] machine systemd[1]: Starting Permit User Sessions... container-test-run-github-webhook> machine # [639925.158575] machine systemd[1]: Finished Permit User Sessions. container-test-run-github-webhook> machine # [639925.162146] machine systemd[1]: Started Console Getty. container-test-run-github-webhook> machine # [639925.162450] machine systemd[1]: Getty on tty1 skipped, unmet condition check ConditionPathExists=/dev/tty0 container-test-run-github-webhook> machine # [639925.162483] machine systemd[1]: Reached target Login Prompts. container-test-run-github-webhook> machine # [639926.415908] machine systemd[1]: Started GitHub webhook listener. container-test-run-github-webhook> machine # [639926.419663] machine github-webhook[309]: [test/repo1] running startup command container-test-run-github-webhook> machine # [639926.425119] machine github-webhook[309]: [test/repo1] cmd: /nix/store/lfm00fnq66xfgbn099vqckabyl5jllz6-bash-interactive-5.3p20/bin/bash -c echo 'repo1 triggered' > /tmp/repo1-result container-test-run-github-webhook> machine # [639926.425119] machine github-webhook[309]: listening on :8673 container-test-run-github-webhook> machine # [639926.443889] machine systemd-logind[321]: New seat seat0. container-test-run-github-webhook> machine # [639926.444884] machine systemd[1]: Starting D-Bus System Message Bus... container-test-run-github-webhook> machine # [639926.445243] machine systemd[1]: Started User Login Management. container-test-run-github-webhook> machine # [639926.446207] machine systemd[1]: Starting linger-users.service... container-test-run-github-webhook> machine # [639926.467474] machine systemd[1]: linger-users.service: Failed to read pids.max for control group /system.slice/linger-users.service, ignoring: No data available container-test-run-github-webhook> machine # [639926.467531] machine systemd[1]: linger-users.service: Failed to read pids.max for control group /system.slice/linger-users.service, ignoring: No data available container-test-run-github-webhook> machine # [639926.467560] machine systemd[1]: linger-users.service: Deactivated successfully. container-test-run-github-webhook> machine # [639926.467924] machine systemd[1]: Finished linger-users.service. container-test-run-github-webhook> machine # [639926.468553] machine systemd[1]: Reached target Multi-User System. container-test-run-github-webhook> [4.69s] machine: (finished: waiting for unit multi-user.target, in 4.66 seconds) container-test-run-github-webhook> [4.69s] machine: waiting for unit github-webhook.service container-test-run-github-webhook> [4.71s] machine: (finished: waiting for unit github-webhook.service, in 0.02 seconds) container-test-run-github-webhook> [4.71s] machine: waiting for TCP port 8673 on localhost container-test-run-github-webhook> Connection to localhost (::1) 8673 port [tcp/*] succeeded! container-test-run-github-webhook> [4.72s] machine: (finished: waiting for TCP port 8673 on localhost, in 0.02 seconds) container-test-run-github-webhook> Test 1: Health check... container-test-run-github-webhook> [4.72s] machine: must succeed: curl -f http://localhost:8673/healthz container-test-run-github-webhook> % Total % Received % Xferd Average Speed Time Time Time Current container-test-run-github-webhook> Dload Upload Total Spent Left Speed container-test-run-github-webhook> 100 3 100 3 0 0 5893 0 0 container-test-run-github-webhook> [4.74s] machine: (finished: must succeed: curl -f http://localhost:8673/healthz, in 0.02 seconds) container-test-run-github-webhook> ✓ Test 1 passed: Health check OK container-test-run-github-webhook> Test 2: Check runOnStartup... container-test-run-github-webhook> [4.74s] machine: waiting for file '/tmp/repo1-result' container-test-run-github-webhook> [4.75s] machine: (finished: waiting for file '/tmp/repo1-result', in 0.00 seconds) container-test-run-github-webhook> [4.75s] machine: must succeed: cat /tmp/repo1-result container-test-run-github-webhook> [4.75s] machine: (finished: must succeed: cat /tmp/repo1-result, in 0.01 seconds) container-test-run-github-webhook> ✓ Test 2 passed: runOnStartup executed container-test-run-github-webhook> Test 3: Send push webhook for repo1... container-test-run-github-webhook> [4.75s] machine: must succeed: rm -f /tmp/repo1-result container-test-run-github-webhook> [4.76s] machine: (finished: must succeed: rm -f /tmp/repo1-result, in 0.01 seconds) container-test-run-github-webhook> [4.76s] machine: must succeed: container-test-run-github-webhook> curl -X POST http://localhost:8673/webhooks/github -H 'Content-Type: application/json' -H 'X-GitHub-Event: push' -H 'X-Hub-Signature-256: sha256=15259c7e93fe5c1d76310f128b047ec8bc59d7854155b88d66022a28075fc5e6' -d '{"ref": "refs/heads/main", "after": "abc123def456", "repository": {"full_name": "test/repo1"}, "sender": {"login": "testuser"}}' -w '%{http_code}' -o /dev/null -s container-test-run-github-webhook> container-test-run-github-webhook> [4.77s] machine: (finished: must succeed: container-test-run-github-webhook> curl -X POST http://localhost:8673/webhooks/github -H 'Content-Type: application/json' -H 'X-GitHub-Event: push' -H 'X-Hub-Signature-256: sha256=15259c7e93fe5c1d76310f128b047ec8bc59d7854155b88d66022a28075fc5e6' -d '{"ref": "refs/heads/main", "after": "abc123def456", "repository": {"full_name": "test/repo1"}, "sender": {"login": "testuser"}}' -w '%{http_code}' -o /dev/null -s container-test-run-github-webhook> , in 0.01 seconds) container-test-run-github-webhook> machine # [639926.879856] machine dbus-broker-launch[337]: Looking up NSS user entry for 'systemd-timesync'... container-test-run-github-webhook> machine # [639926.880350] machine dbus-broker-launch[337]: NSS returned no entry for 'systemd-timesync' container-test-run-github-webhook> machine # [639926.880350] machine dbus-broker-launch[337]: Invalid user-name in /nix/store/gb6p7aysjaj7i3wrjq22fqq1xgsy6iyz-system-path/share/dbus-1/system.d/org.freedesktop.timesync1.conf +16: user="systemd-timesync" container-test-run-github-webhook> machine # [639926.880926] machine systemd[1]: Started D-Bus System Message Bus. container-test-run-github-webhook> machine # [639926.881212] machine systemd[1]: Startup finished in 3.759s. container-test-run-github-webhook> machine # [639926.889790] machine dbus-broker-launch[337]: Ready container-test-run-github-webhook> machine # [639927.260342] machine github-webhook[309]: [test/repo1] cmd: /nix/store/lfm00fnq66xfgbn099vqckabyl5jllz6-bash-interactive-5.3p20/bin/bash -c echo 'repo1 triggered' > /tmp/repo1-result container-test-run-github-webhook> [5.78s] machine: waiting for file '/tmp/repo1-result' container-test-run-github-webhook> [5.78s] machine: (finished: waiting for file '/tmp/repo1-result', in 0.01 seconds) container-test-run-github-webhook> [5.78s] machine: must succeed: cat /tmp/repo1-result container-test-run-github-webhook> [5.79s] machine: (finished: must succeed: cat /tmp/repo1-result, in 0.01 seconds) container-test-run-github-webhook> ✓ Test 3 passed: Push webhook triggered repo1 container-test-run-github-webhook> Test 4: Send push webhook for repo2 with env context... container-test-run-github-webhook> [5.79s] machine: must succeed: container-test-run-github-webhook> curl -X POST http://localhost:8673/webhooks/github -H 'Content-Type: application/json' -H 'X-GitHub-Event: push' -H 'X-Hub-Signature-256: sha256=4b70297f69ca1f9483bd977193e89ef3a0fff4834a0501e8e76347fce9e2da19' -d '{"ref": "refs/heads/master", "after": "def456abc789", "repository": {"full_name": "test/repo2"}, "sender": {"login": "alice"}}' -w '%{http_code}' -o /dev/null -s container-test-run-github-webhook> container-test-run-github-webhook> [5.80s] machine: (finished: must succeed: container-test-run-github-webhook> curl -X POST http://localhost:8673/webhooks/github -H 'Content-Type: application/json' -H 'X-GitHub-Event: push' -H 'X-Hub-Signature-256: sha256=4b70297f69ca1f9483bd977193e89ef3a0fff4834a0501e8e76347fce9e2da19' -d '{"ref": "refs/heads/master", "after": "def456abc789", "repository": {"full_name": "test/repo2"}, "sender": {"login": "alice"}}' -w '%{http_code}' -o /dev/null -s container-test-run-github-webhook> , in 0.01 seconds) container-test-run-github-webhook> machine # [639928.286911] machine github-webhook[309]: [test/repo2] cmd: /nix/store/lfm00fnq66xfgbn099vqckabyl5jllz6-bash-interactive-5.3p20/bin/bash -c echo "repo2 triggered on $GH_BRANCH" > /tmp/repo2-result container-test-run-github-webhook> [6.80s] machine: waiting for file '/tmp/repo2-result' container-test-run-github-webhook> [6.81s] machine: (finished: waiting for file '/tmp/repo2-result', in 0.00 seconds) container-test-run-github-webhook> [6.81s] machine: must succeed: cat /tmp/repo2-result container-test-run-github-webhook> [6.81s] machine: (finished: must succeed: cat /tmp/repo2-result, in 0.01 seconds) container-test-run-github-webhook> ✓ Test 4 passed: Push webhook triggered repo2 with environment context container-test-run-github-webhook> Test 5: Reject webhook for untracked branch... container-test-run-github-webhook> [6.81s] machine: must succeed: rm -f /tmp/repo2-result container-test-run-github-webhook> [6.82s] machine: (finished: must succeed: rm -f /tmp/repo2-result, in 0.01 seconds) container-test-run-github-webhook> [6.82s] machine: must succeed: container-test-run-github-webhook> curl -X POST http://localhost:8673/webhooks/github -H 'Content-Type: application/json' -H 'X-GitHub-Event: push' -H 'X-Hub-Signature-256: sha256=d485bc2ab9974e10150aaa7ae6e38e372c6711fbbe15baf0ea82388d39cf3043' -d '{"ref": "refs/heads/feature", "after": "xyz789", "repository": {"full_name": "test/repo2"}, "sender": {"login": "bob"}}' -w '%{http_code}' -o /dev/null -s container-test-run-github-webhook> container-test-run-github-webhook> [6.83s] machine: (finished: must succeed: container-test-run-github-webhook> curl -X POST http://localhost:8673/webhooks/github -H 'Content-Type: application/json' -H 'X-GitHub-Event: push' -H 'X-Hub-Signature-256: sha256=d485bc2ab9974e10150aaa7ae6e38e372c6711fbbe15baf0ea82388d39cf3043' -d '{"ref": "refs/heads/feature", "after": "xyz789", "repository": {"full_name": "test/repo2"}, "sender": {"login": "bob"}}' -w '%{http_code}' -o /dev/null -s container-test-run-github-webhook> , in 0.01 seconds) container-test-run-github-webhook> [7.83s] machine: must fail: test -f /tmp/repo2-result container-test-run-github-webhook> [7.84s] machine: (finished: must fail: test -f /tmp/repo2-result, in 0.01 seconds) container-test-run-github-webhook> ✓ Test 5 passed: Rejected webhook for untracked branch container-test-run-github-webhook> Test 6: Reject webhook with invalid signature... container-test-run-github-webhook> [7.84s] machine: must succeed: rm -f /tmp/repo1-result container-test-run-github-webhook> [7.85s] machine: (finished: must succeed: rm -f /tmp/repo1-result, in 0.01 seconds) container-test-run-github-webhook> [7.85s] machine: must succeed: container-test-run-github-webhook> curl -X POST http://localhost:8673/webhooks/github -H 'Content-Type: application/json' -H 'X-GitHub-Event: push' -H 'X-Hub-Signature-256: sha256=badbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbaad' -d '{"ref": "refs/heads/main", "repository": {"full_name": "test/repo1"}, "sender": {"login": "eve"}}' -w '%{http_code}' -o /dev/null -s container-test-run-github-webhook> container-test-run-github-webhook> [7.86s] machine: (finished: must succeed: container-test-run-github-webhook> curl -X POST http://localhost:8673/webhooks/github -H 'Content-Type: application/json' -H 'X-GitHub-Event: push' -H 'X-Hub-Signature-256: sha256=badbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbaad' -d '{"ref": "refs/heads/main", "repository": {"full_name": "test/repo1"}, "sender": {"login": "eve"}}' -w '%{http_code}' -o /dev/null -s container-test-run-github-webhook> , in 0.02 seconds) container-test-run-github-webhook> [8.86s] machine: must fail: test -f /tmp/repo1-result container-test-run-github-webhook> [8.87s] machine: (finished: must fail: test -f /tmp/repo1-result, in 0.00 seconds) container-test-run-github-webhook> ✓ Test 6 passed: Rejected webhook with invalid signature container-test-run-github-webhook> Test 7: Accept ping event... container-test-run-github-webhook> [8.87s] machine: must succeed: container-test-run-github-webhook> curl -X POST http://localhost:8673/webhooks/github -H 'Content-Type: application/json' -H 'X-GitHub-Event: ping' -H 'X-Hub-Signature-256: sha256=e53e1ee61790d8aa29e96127e3603888d6f33217219cb5200987f99b1d7b5a3f' -d '{"zen": "Keep it simple.", "repository": {"full_name": "test/repo1"}}' -w '%{http_code}' -o /dev/null -s container-test-run-github-webhook> container-test-run-github-webhook> [8.88s] machine: (finished: must succeed: container-test-run-github-webhook> curl -X POST http://localhost:8673/webhooks/github -H 'Content-Type: application/json' -H 'X-GitHub-Event: ping' -H 'X-Hub-Signature-256: sha256=e53e1ee61790d8aa29e96127e3603888d6f33217219cb5200987f99b1d7b5a3f' -d '{"zen": "Keep it simple.", "repository": {"full_name": "test/repo1"}}' -w '%{http_code}' -o /dev/null -s container-test-run-github-webhook> , in 0.01 seconds) container-test-run-github-webhook> ✓ Test 7 passed: Ping event accepted container-test-run-github-webhook> ✅ All tests passed! container-test-run-github-webhook> [8.88s] (finished: run the VM test script, in 8.85 seconds) container-test-run-github-webhook> [8.96s] test script finished in 8.92s container-test-run-github-webhook> [8.96s] cleanup container-test-run-github-webhook> [8.96s] kill NspawnMachine (pid 50) container-test-run-github-webhook> Container machine terminated by signal KILL. container-test-run-github-webhook> [9.02s] (finished: cleanup, in 0.06 seconds) upload niks3: ok