nixbot

builds

succeeded container-test-run-github-webhook checks.x86_64-linux.nixosTests.github-webhook.x86_64-linux · build #156 · raw

1[0.00s] Machine state will be reset. To keep it, pass --keep-machine-state2[0.00s] start all VLans3[0.01s] (finished: start all VLans, in 0.01 seconds)4Initializing machine ID from random generator.5[0.07s] Test will time out and terminate in 120.0 seconds6[0.07s] run the VM test script7additionally exposed symbols:8 machine,9 vlan1,10 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_ssh11[0.08s] machine: systemd-nspawn running (pid 50)12[0.08s] machine: Waiting for journal at /build/vm-state-machine/var/log/journal...13[0.08s] machine: waiting for unit multi-user.target14nixos-nspawn(machine): TAP vde-tap1 not found; container will be isolated from VDE15nixos-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.16Note: 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.17░ Spawning container machine on /build/vm-state-machine.18machine # No journal files were found.19machine # No journal boot entry found for the specified boot (+0).20machine # No journal files were found.21machine # No journal boot entry found for the specified boot (+0).22machine # [774978.850639] machine systemd-journald[70]: Journal started23machine # [774978.850714] machine systemd-journald[70]: Runtime Journal (/run/log/journal/9585b75966364f268ae7c87920cd5f98) is 8M, max 1.2G, 1.2G free.24machine # [774978.914684] machine systemd[1]: Listening on Journal Log Access Socket.25machine # [774978.918306] machine systemd[1]: Finished Apply Kernel Variables.26machine # [774978.963044] machine systemd[1]: Finished Create Static Device Nodes in /dev gracefully.27machine # [774979.024121] machine systemd[1]: Starting Flush Journal to Persistent Storage...28machine # [774979.027127] machine systemd[1]: Starting Create Static Device Nodes in /dev...29machine # [774979.060905] machine systemd-journald[70]: Time spent on flushing to /var/log/journal/9585b75966364f268ae7c87920cd5f98 is 6.365ms for 7 entries.30machine # [774979.060905] machine systemd-journald[70]: System Journal (/var/log/journal/9585b75966364f268ae7c87920cd5f98) is 8M, max 4G, 3.9G free.31machine # [774979.080827] machine systemd[1]: Finished Create Static Device Nodes in /dev.32machine # [774979.081633] machine systemd[1]: Reached target Preparation for Local File Systems.33machine # [774979.081845] machine systemd[1]: Rule-based Manager for Device Events and Files skipped, unmet condition check ConditionPathIsReadWrite=/sys34machine # [774979.096714] machine systemd[1]: Finished Flush Journal to Persistent Storage.35machine # [774979.383012] machine systemd[1]: Finished Firewall.36machine # [774979.842792] machine systemd[1]: Mounting /run/wrappers...37machine # [774979.900784] machine systemd[1]: Mounted /run/wrappers.38machine # [774979.901961] machine systemd[1]: Reached target Local File Systems.39machine # [774979.906197] machine systemd[1]: Listening on Boot Loader Control Service Socket.40machine # [774979.908447] machine systemd[1]: Starting Create SUID/SGID Wrappers...41machine # [774979.908631] machine systemd[1]: Update Boot Loader Random Seed skipped, unmet condition check ConditionVirtualization=!container42machine # [774979.912776] machine systemd[1]: Starting Save Transient machine-id to Disk...43machine # [774979.916677] machine systemd[1]: Starting Create System Files and Directories...44machine # [774979.980770] machine systemd-tmpfiles[176]: Cannot set file attributes for '/var/empty', value=0x00000010, mask=0x00000010, ignoring: Operation not permitted45machine # [774979.984427] machine systemd-tmpfiles[176]: fchmod() of /var/log/journal failed: Operation not permitted46machine # [774979.984641] machine systemd-tmpfiles[176]: fchmod() of /var/log/journal/9585b75966364f268ae7c87920cd5f98 failed: Operation not permitted47machine # [774979.988321] machine systemd-tmpfiles[176]: fchmod() of /run/log/journal failed: Operation not permitted48machine # [774979.990232] machine systemd[1]: Finished Create System Files and Directories.49machine # [774979.996165] machine suid-sgid-wrappers-start[183]: chmod: changing permissions of '/run/wrappers/wrappers.T2HvBUbA44/chsh': Operation not permitted50machine # [774980.061859] machine systemd[1]: suid-sgid-wrappers.service: Main process exited, code=exited, status=1/FAILURE51machine # [774980.061927] machine systemd[1]: suid-sgid-wrappers.service: Failed to read pids.max for control group /system.slice/suid-sgid-wrappers.service, ignoring: No data available52machine # [774980.061987] machine systemd[1]: suid-sgid-wrappers.service: Failed to read pids.max for control group /system.slice/suid-sgid-wrappers.service, ignoring: No data available53machine # [774980.067089] machine systemd[1]: suid-sgid-wrappers.service: Failed with result 'exit-code'.54machine # [774980.068246] machine systemd[1]: Failed to start Create SUID/SGID Wrappers.55machine # [774980.078285] machine systemd[1]: Starting Rebuild Journal Catalog...56machine # [774980.082623] machine systemd[1]: Starting Record System Boot/Shutdown in UTMP...57machine # [774980.115945] machine systemd[1]: Finished Rebuild Journal Catalog.58machine # [774980.122351] machine systemd[1]: Starting Update is Completed...59machine # [774980.124065] machine systemd[1]: Finished Record System Boot/Shutdown in UTMP.60machine # [774980.165441] machine systemd[1]: Finished Update is Completed.61machine # [774980.165767] machine systemd[1]: Reached target System Initialization.62machine # [774980.166082] machine systemd[1]: Discard unused filesystem blocks once a week skipped, unmet condition check ConditionVirtualization=!container63machine # [774980.166320] machine systemd[1]: Started Daily Cleanup of Temporary Directories.64machine # [774980.166424] machine systemd[1]: Reached target Timer Units.65machine # [774980.166683] machine systemd[1]: Listening on D-Bus System Message Bus Socket.66machine # [774980.170147] machine systemd[1]: Listening on Nix Daemon Socket.67machine # [774980.173526] machine systemd[1]: Listening on OpenSSH Server Socket (systemd-ssh-generator, AF_UNIX Export).68machine # [774980.177952] machine systemd[1]: Listening on OpenSSH Server Socket (systemd-ssh-generator, AF_UNIX Local).69machine # [774980.181915] machine systemd[1]: Listening on SSH Socket.70machine # [774980.182333] machine systemd[1]: Listening on Virtual Machine and Container Registration Service Socket.71machine # [774980.185901] machine systemd[1]: Reached target Socket Units.72machine # [774980.186121] machine systemd[1]: Reached target Basic System.73machine # [774980.196456] machine systemd[1]: Starting Import lastlog data into lastlog2 database...74machine # [774980.218012] machine systemd[1]: Starting Name Service Cache Daemon (nsncd)...75machine # [774980.222124] machine systemd[1]: Starting resolvconf update...76machine # [774980.222250] machine systemd[1]: SSH Host Keys Generation skipped, no trigger condition checks were met.77machine # [774980.256529] machine systemd[1]: Finished Import lastlog data into lastlog2 database.78machine # [774980.440666] machine systemd[1]: nscd.service: Failed to read pids.max for control group /system.slice/nscd.service, ignoring: No data available79machine # [774980.441913] machine systemd[1]: nscd.service: Deactivated successfully.80machine # [774980.442039] machine resolvconf-start[246]: setfacl: /run/resolvconf: Operation not supported81machine # [774980.442629] machine systemd[1]: Stopped Name Service Cache Daemon (nsncd).82machine # [774980.453912] machine systemd[1]: Starting Name Service Cache Daemon (nsncd)...83machine # [774980.454120] machine systemd[1]: resolvconf.service: Main process exited, code=exited, status=1/FAILURE84machine # [774980.454186] machine systemd[1]: resolvconf.service: Failed to read pids.max for control group /system.slice/resolvconf.service, ignoring: No data available85machine # [774980.454249] machine systemd[1]: resolvconf.service: Failed to read pids.max for control group /system.slice/resolvconf.service, ignoring: No data available86machine # [774980.454287] machine systemd[1]: resolvconf.service: Failed with result 'exit-code'.87machine # [774980.454464] machine systemd[1]: Failed to start resolvconf update.88machine # [774980.454781] machine systemd[1]: Reached target Preparation for Network.89machine # [774980.459893] machine systemd[1]: Starting Address configuration of eth1...90machine # [774980.465125] machine systemd[1]: Starting Extra networking commands....91machine # [774980.504838] machine network-addresses-eth1-start[251]: adding address 192.168.1.1/24... done92machine # [774980.512125] machine network-addresses-eth1-start[251]: adding address 2001:db8:1::1/64... done93machine # [774980.532182] machine systemd[1]: Finished Address configuration of eth1.94machine # [774980.668425] machine systemd[1]: Finished Extra networking commands..95machine # [774980.668700] machine systemd[1]: Reached target Network.96machine # [774980.668937] machine systemd[1]: Reached target Network is Online.97machine # [774980.675908] machine systemd[1]: Starting GitHub webhook listener...98machine # [774981.093951] machine systemd[1]: Started Name Service Cache Daemon (nsncd).99machine # [774981.095697] machine nsncd[250]: Nov 09 05:06:52.905 INFO started, config: Config { ignored_request_types: {}, worker_count: 8, handoff_timeout: 10s }, path: "/var/run/nscd/socket"100machine # [774981.094038] machine systemd[1]: Reached target Host and Network Name Lookups.101machine # [774981.094103] machine systemd[1]: Reached target User and Group Name Lookups.102machine # [774981.100330] machine systemd[1]: Starting User Login Management...103machine # [774981.101895] machine systemd[1]: Starting Permit User Sessions...104machine # [774981.144533] machine systemd[1]: Finished Permit User Sessions.105machine # [774981.147167] machine systemd[1]: Started Console Getty.106machine # [774981.147364] machine systemd[1]: Getty on tty1 skipped, unmet condition check ConditionPathExists=/dev/tty0107machine # [774981.151570] machine systemd[1]: Reached target Login Prompts.108machine # [774981.345419] machine systemd[1]: etc-machine\x2did.mount: Deactivated successfully.109machine # [774981.352180] machine systemd[1]: Finished Save Transient machine-id to Disk.110[10.22s] machine: still waiting for container 'machine' to reach ready state...111machine # [774989.009685] machine systemd[1]: Starting D-Bus System Message Bus...112machine # [774989.012984] machine systemd-logind[322]: New seat seat0.113machine # [774989.013886] machine systemd[1]: Started User Login Management.114machine # [774989.020573] machine systemd[1]: Starting linger-users.service...115machine # [774989.081903] machine systemd[1]: linger-users.service: Failed to read pids.max for control group /system.slice/linger-users.service, ignoring: No data available116machine # [774989.081968] machine systemd[1]: linger-users.service: Failed to read pids.max for control group /system.slice/linger-users.service, ignoring: No data available117machine # [774989.082012] machine systemd[1]: linger-users.service: Deactivated successfully.118machine # [774989.082200] machine systemd[1]: Finished linger-users.service.119machine # [774989.293445] machine systemd[1]: Started GitHub webhook listener.120machine # [774989.293541] machine systemd[1]: Reached target Multi-User System.121machine # [774989.298813] machine github-webhook[310]: [test/repo1] running startup command122machine # [774989.323810] machine github-webhook[310]: [test/repo1] cmd: /nix/store/lfm00fnq66xfgbn099vqckabyl5jllz6-bash-interactive-5.3p20/bin/bash -c echo 'repo1 triggered' > /tmp/repo1-result123machine # [774989.323810] machine github-webhook[310]: listening on :8673124[15.27s] machine: (finished: waiting for unit multi-user.target, in 15.19 seconds)125[15.27s] machine: waiting for unit github-webhook.service126[15.31s] machine: (finished: waiting for unit github-webhook.service, in 0.04 seconds)127[15.31s] machine: waiting for TCP port 8673 on localhost128machine # [774991.450818] machine dbus-broker-launch[333]: Looking up NSS user entry for 'systemd-timesync'...129machine # [774991.466464] machine dbus-broker-launch[333]: NSS returned no entry for 'systemd-timesync'130machine # [774991.466464] machine dbus-broker-launch[333]: Invalid user-name in /nix/store/lhjxk0k05r4ww1jng5kdimjrn6axm5zh-system-path/share/dbus-1/system.d/org.freedesktop.timesync1.conf +16: user="systemd-timesync"131machine # [774991.476347] machine systemd[1]: Started D-Bus System Message Bus.132machine # [774991.481074] machine systemd[1]: Startup finished in 13.716s.133machine # [774991.515510] machine dbus-broker-launch[333]: Ready134Connection to localhost (::1) 8673 port [tcp/*] succeeded!135[15.34s] machine: (finished: waiting for TCP port 8673 on localhost, in 0.03 seconds)136Test 1: Health check...137[15.34s] machine: must succeed: curl -f http://localhost:8673/healthz138 % Total % Received % Xferd Average Speed Time Time Time Current139 Dload Upload Total Spent Left Speed140100 3 100 3 0 0 4431 0 0141[15.39s] machine: (finished: must succeed: curl -f http://localhost:8673/healthz, in 0.05 seconds)142✓ Test 1 passed: Health check OK143Test 2: Check runOnStartup...144[15.39s] machine: waiting for file '/tmp/repo1-result'145[15.42s] machine: (finished: waiting for file '/tmp/repo1-result', in 0.02 seconds)146[15.42s] machine: must succeed: cat /tmp/repo1-result147[15.44s] machine: (finished: must succeed: cat /tmp/repo1-result, in 0.03 seconds)148✓ Test 2 passed: runOnStartup executed149Test 3: Send push webhook for repo1...150[15.44s] machine: must succeed: rm -f /tmp/repo1-result151[15.48s] machine: (finished: must succeed: rm -f /tmp/repo1-result, in 0.03 seconds)152[15.48s] machine: must succeed: 153 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 -s154155[15.53s] machine: (finished: must succeed: 156 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 -s157, in 0.05 seconds)158machine # [774992.030811] machine github-webhook[310]: [test/repo1] cmd: /nix/store/lfm00fnq66xfgbn099vqckabyl5jllz6-bash-interactive-5.3p20/bin/bash -c echo 'repo1 triggered' > /tmp/repo1-result159[16.53s] machine: waiting for file '/tmp/repo1-result'160[16.55s] machine: (finished: waiting for file '/tmp/repo1-result', in 0.02 seconds)161[16.55s] machine: must succeed: cat /tmp/repo1-result162[16.57s] machine: (finished: must succeed: cat /tmp/repo1-result, in 0.02 seconds)163✓ Test 3 passed: Push webhook triggered repo1164Test 4: Send push webhook for repo2 with env context...165[16.57s] machine: must succeed: 166 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 -s167168[16.62s] machine: (finished: must succeed: 169 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 -s170, in 0.05 seconds)171machine # [774993.121492] machine github-webhook[310]: [test/repo2] cmd: /nix/store/lfm00fnq66xfgbn099vqckabyl5jllz6-bash-interactive-5.3p20/bin/bash -c echo "repo2 triggered on $GH_BRANCH" > /tmp/repo2-result172[17.62s] machine: waiting for file '/tmp/repo2-result'173[17.65s] machine: (finished: waiting for file '/tmp/repo2-result', in 0.03 seconds)174[17.65s] machine: must succeed: cat /tmp/repo2-result175[17.68s] machine: (finished: must succeed: cat /tmp/repo2-result, in 0.03 seconds)176✓ Test 4 passed: Push webhook triggered repo2 with environment context177Test 5: Reject webhook for untracked branch...178[17.68s] machine: must succeed: rm -f /tmp/repo2-result179[17.70s] machine: (finished: must succeed: rm -f /tmp/repo2-result, in 0.02 seconds)180[17.70s] machine: must succeed: 181 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 -s182183[17.75s] machine: (finished: must succeed: 184 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 -s185, in 0.05 seconds)186[18.75s] machine: must fail: test -f /tmp/repo2-result187[18.77s] machine: (finished: must fail: test -f /tmp/repo2-result, in 0.03 seconds)188✓ Test 5 passed: Rejected webhook for untracked branch189Test 6: Reject webhook with invalid signature...190[18.78s] machine: must succeed: rm -f /tmp/repo1-result191[18.82s] machine: (finished: must succeed: rm -f /tmp/repo1-result, in 0.04 seconds)192[18.82s] machine: must succeed: 193 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 -s194195[18.87s] machine: (finished: must succeed: 196 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 -s197, in 0.05 seconds)198[19.87s] machine: must fail: test -f /tmp/repo1-result199[19.90s] machine: (finished: must fail: test -f /tmp/repo1-result, in 0.03 seconds)200✓ Test 6 passed: Rejected webhook with invalid signature201Test 7: Accept ping event...202[19.90s] machine: must succeed: 203 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 -s204205[19.95s] machine: (finished: must succeed: 206 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 -s207, in 0.05 seconds)208✓ Test 7 passed: Ping event accepted209✅ All tests passed!210[19.95s] (finished: run the VM test script, in 19.88 seconds)211[20.51s] test script finished in 20.44s212[20.51s] cleanup213[20.51s] kill NspawnMachine (pid 50)214Container machine terminated by signal KILL.215[20.74s] (finished: cleanup, in 0.22 seconds)