nixbot

builds

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

1[0.00s] Machine state will be reset. To keep it, pass --keep-machine-state2[0.00s] start all VLans3[0.00s] (finished: start all VLans, in 0.00 seconds)4Initializing machine ID from random generator.5[0.02s] Test will time out and terminate in 120.0 seconds6[0.02s] 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.02s] machine: systemd-nspawn running (pid 50)12[0.02s] machine: Waiting for journal at /build/vm-state-machine/var/log/journal...13[0.02s] 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 # [643537.751424] machine systemd-journald[69]: Journal started19machine # [643537.751499] machine systemd-journald[69]: Runtime Journal (/run/log/journal/f433fff4bd0a437597481f21f0ef458d) is 8M, max 1.2G, 1.2G free.20machine # [643537.778439] machine systemd[1]: Finished Apply Kernel Variables.21machine # [643537.802723] machine systemd[1]: Finished Create Static Device Nodes in /dev gracefully.22machine # [643537.826842] machine systemd[1]: Starting Flush Journal to Persistent Storage...23machine # [643537.827665] machine systemd[1]: Starting Create Static Device Nodes in /dev...24machine # [643537.844954] machine systemd-journald[69]: Time spent on flushing to /var/log/journal/f433fff4bd0a437597481f21f0ef458d is 1.494ms for 6 entries.25machine # [643537.844954] machine systemd-journald[69]: System Journal (/var/log/journal/f433fff4bd0a437597481f21f0ef458d) is 8M, max 4G, 3.9G free.26machine # [643537.857080] machine systemd[1]: Finished Flush Journal to Persistent Storage.27machine # [643537.857421] machine systemd[1]: Finished Create Static Device Nodes in /dev.28machine # [643537.858400] machine systemd[1]: Reached target Preparation for Local File Systems.29machine # [643537.858534] machine systemd[1]: Rule-based Manager for Device Events and Files skipped, unmet condition check ConditionPathIsReadWrite=/sys30machine # [643537.869990] machine systemd[1]: Finished Firewall.31machine # [643538.746193] machine systemd[1]: Mounting /run/wrappers...32machine # [643538.776656] machine systemd[1]: Mounted /run/wrappers.33machine # [643538.777293] machine systemd[1]: Reached target Local File Systems.34machine # [643538.778206] machine systemd[1]: Listening on Boot Loader Control Service Socket.35machine # [643538.778998] machine systemd[1]: Starting Create SUID/SGID Wrappers...36machine # [643538.779043] machine systemd[1]: Update Boot Loader Random Seed skipped, unmet condition check ConditionVirtualization=!container37machine # [643538.779711] machine systemd[1]: Starting Save Transient machine-id to Disk...38machine # [643538.780315] machine systemd[1]: Starting Create System Files and Directories...39machine # [643538.806136] machine suid-sgid-wrappers-start[182]: chmod: changing permissions of '/run/wrappers/wrappers.xVTpvhBai3/chsh': Operation not permitted40machine # [643538.809551] machine systemd[1]: suid-sgid-wrappers.service: Main process exited, code=exited, status=1/FAILURE41machine # [643538.809611] machine systemd[1]: suid-sgid-wrappers.service: Failed to read pids.max for control group /system.slice/suid-sgid-wrappers.service, ignoring: No data available42machine # [643538.809676] machine systemd[1]: suid-sgid-wrappers.service: Failed to read pids.max for control group /system.slice/suid-sgid-wrappers.service, ignoring: No data available43machine # [643538.809710] machine systemd[1]: suid-sgid-wrappers.service: Failed with result 'exit-code'.44machine # [643538.809884] machine systemd[1]: Failed to start Create SUID/SGID Wrappers.45machine # [643538.810137] machine systemd-tmpfiles[175]: Cannot set file attributes for '/var/empty', value=0x00000010, mask=0x00000010, ignoring: Operation not permitted46machine # [643538.810395] machine systemd-tmpfiles[175]: fchmod() of /var/log/journal failed: Operation not permitted47machine # [643538.810574] machine systemd-tmpfiles[175]: fchmod() of /var/log/journal/f433fff4bd0a437597481f21f0ef458d failed: Operation not permitted48machine # [643538.810821] machine systemd-tmpfiles[175]: fchmod() of /run/log/journal failed: Operation not permitted49machine # [643538.812197] machine systemd[1]: Finished Create System Files and Directories.50machine # [643538.833331] machine systemd[1]: Starting Rebuild Journal Catalog...51machine # [643538.833954] machine systemd[1]: Starting Record System Boot/Shutdown in UTMP...52machine # [643538.850082] machine systemd[1]: etc-machine\x2did.mount: Deactivated successfully.53machine # [643538.850898] machine systemd[1]: Finished Save Transient machine-id to Disk.54machine # [643538.853805] machine systemd[1]: Finished Record System Boot/Shutdown in UTMP.55machine # [643538.864270] machine systemd[1]: Finished Rebuild Journal Catalog.56machine # [643538.865227] machine systemd[1]: Starting Update is Completed...57machine # [643538.880568] machine systemd[1]: Finished Update is Completed.58machine # [643538.881040] machine systemd[1]: Reached target System Initialization.59machine # [643538.881145] machine systemd[1]: Discard unused filesystem blocks once a week skipped, unmet condition check ConditionVirtualization=!container60machine # [643538.881180] machine systemd[1]: Started Daily Cleanup of Temporary Directories.61machine # [643538.881208] machine systemd[1]: Reached target Timer Units.62machine # [643538.881316] machine systemd[1]: Listening on D-Bus System Message Bus Socket.63machine # [643538.881421] machine systemd[1]: Listening on Nix Daemon Socket.64machine # [643538.882108] machine systemd[1]: Listening on OpenSSH Server Socket (systemd-ssh-generator, AF_UNIX Export).65machine # [643538.882631] machine systemd[1]: Listening on OpenSSH Server Socket (systemd-ssh-generator, AF_UNIX Local).66machine # [643538.882974] machine systemd[1]: Listening on SSH Socket.67machine # [643538.883063] machine systemd[1]: Listening on Virtual Machine and Container Registration Service Socket.68machine # [643538.883081] machine systemd[1]: Reached target Socket Units.69machine # [643538.883111] machine systemd[1]: Reached target Basic System.70machine # [643538.883812] machine systemd[1]: Starting Import lastlog data into lastlog2 database...71machine # [643538.884663] machine systemd[1]: Starting Name Service Cache Daemon (nsncd)...72machine # [643538.885279] machine systemd[1]: Starting resolvconf update...73machine # [643538.885305] machine systemd[1]: SSH Host Keys Generation skipped, no trigger condition checks were met.74machine # [643538.904982] machine systemd[1]: Finished Import lastlog data into lastlog2 database.75machine # [643538.930720] machine systemd[1]: nscd.service: Failed to read pids.max for control group /system.slice/nscd.service, ignoring: No data available76machine # [643538.930765] machine systemd[1]: nscd.service: Deactivated successfully.77machine # [643538.930925] machine systemd[1]: Stopped Name Service Cache Daemon (nsncd).78machine # [643538.932710] machine systemd[1]: Starting Name Service Cache Daemon (nsncd)...79machine # [643538.939821] machine resolvconf-start[249]: setfacl: /run/resolvconf: Operation not supported80machine # [643538.940883] machine systemd[1]: resolvconf.service: Main process exited, code=exited, status=1/FAILURE81machine # [643538.940965] machine systemd[1]: resolvconf.service: Failed to read pids.max for control group /system.slice/resolvconf.service, ignoring: No data available82machine # [643538.941032] machine systemd[1]: resolvconf.service: Failed to read pids.max for control group /system.slice/resolvconf.service, ignoring: No data available83machine # [643538.941068] machine systemd[1]: resolvconf.service: Failed with result 'exit-code'.84machine # [643538.942159] machine systemd[1]: Failed to start resolvconf update.85machine # [643538.942416] machine systemd[1]: Reached target Preparation for Network.86machine # [643538.943263] machine systemd[1]: Starting Address configuration of eth1...87machine # [643538.944087] machine systemd[1]: Starting Extra networking commands....88machine # [643538.957946] machine network-addresses-eth1-start[252]: adding address 192.168.1.1/24... done89machine # [643538.959896] machine network-addresses-eth1-start[252]: adding address 2001:db8:1::1/64... done90machine # [643538.963100] machine systemd[1]: Finished Address configuration of eth1.91machine # [643538.988912] machine systemd[1]: Finished Extra networking commands..92machine # [643538.989053] machine systemd[1]: Reached target Network.93machine # [643538.989098] machine systemd[1]: Reached target Network is Online.94machine # [643538.989755] machine systemd[1]: Starting GitHub webhook listener...95machine # [643539.072240] machine nsncd[241]: Nov 22 18:59:49.902 INFO started, config: Config { ignored_request_types: {}, worker_count: 8, handoff_timeout: 10s }, path: "/var/run/nscd/socket"96machine # [643539.072306] machine systemd[1]: Started Name Service Cache Daemon (nsncd).97machine # [643539.072373] machine systemd[1]: Reached target Host and Network Name Lookups.98machine # [643539.072436] machine systemd[1]: Reached target User and Group Name Lookups.99machine # [643539.073504] machine systemd[1]: Starting User Login Management...100machine # [643539.074201] machine systemd[1]: Starting Permit User Sessions...101machine # [643539.087154] machine systemd[1]: Finished Permit User Sessions.102machine # [643539.088208] machine systemd[1]: Started Console Getty.103machine # [643539.088245] machine systemd[1]: Getty on tty1 skipped, unmet condition check ConditionPathExists=/dev/tty0104machine # [643539.088278] machine systemd[1]: Reached target Login Prompts.105machine # [643540.076844] machine systemd-logind[322]: New seat seat0.106machine # [643540.077909] machine systemd[1]: Starting D-Bus System Message Bus...107machine # [643540.078210] machine systemd[1]: Started User Login Management.108machine # [643540.078837] machine systemd[1]: Starting linger-users.service...109machine # [643540.093946] machine systemd[1]: linger-users.service: Failed to read pids.max for control group /system.slice/linger-users.service, ignoring: No data available110machine # [643540.094016] machine systemd[1]: linger-users.service: Failed to read pids.max for control group /system.slice/linger-users.service, ignoring: No data available111machine # [643540.094054] machine systemd[1]: linger-users.service: Deactivated successfully.112machine # [643540.094228] machine systemd[1]: Finished linger-users.service.113machine # [643540.155911] machine systemd[1]: Started GitHub webhook listener.114machine # [643540.155982] machine systemd[1]: Reached target Multi-User System.115machine # [643540.160113] machine github-webhook[310]: [test/repo1] running startup command116machine # [643540.167546] machine github-webhook[310]: [test/repo1] cmd: /nix/store/lfm00fnq66xfgbn099vqckabyl5jllz6-bash-interactive-5.3p20/bin/bash -c echo 'repo1 triggered' > /tmp/repo1-result117machine # [643540.167546] machine github-webhook[310]: listening on :8673118machine # [643540.360789] machine dbus-broker-launch[332]: Looking up NSS user entry for 'systemd-timesync'...119machine # [643540.361344] machine dbus-broker-launch[332]: NSS returned no entry for 'systemd-timesync'120machine # [643540.361344] machine dbus-broker-launch[332]: Invalid user-name in /nix/store/gb6p7aysjaj7i3wrjq22fqq1xgsy6iyz-system-path/share/dbus-1/system.d/org.freedesktop.timesync1.conf +16: user="systemd-timesync"121machine # [643540.362087] machine systemd[1]: Started D-Bus System Message Bus.122machine # [643540.362329] machine systemd[1]: Startup finished in 3.015s.123machine # [643540.371553] machine dbus-broker-launch[332]: Ready124[3.67s] machine: (finished: waiting for unit multi-user.target, in 3.65 seconds)125[3.67s] machine: waiting for unit github-webhook.service126[3.69s] machine: (finished: waiting for unit github-webhook.service, in 0.01 seconds)127[3.69s] machine: waiting for TCP port 8673 on localhost128Connection to localhost (::1) 8673 port [tcp/*] succeeded!129[3.70s] machine: (finished: waiting for TCP port 8673 on localhost, in 0.01 seconds)130Test 1: Health check...131[3.70s] machine: must succeed: curl -f http://localhost:8673/healthz132 % Total % Received % Xferd Average Speed Time Time Time Current133 Dload Upload Total Spent Left Speed134100 3 100 3 0 0 6276 0 0135[3.71s] machine: (finished: must succeed: curl -f http://localhost:8673/healthz, in 0.01 seconds)136✓ Test 1 passed: Health check OK137Test 2: Check runOnStartup...138[3.71s] machine: waiting for file '/tmp/repo1-result'139[3.72s] machine: (finished: waiting for file '/tmp/repo1-result', in 0.00 seconds)140[3.72s] machine: must succeed: cat /tmp/repo1-result141[3.72s] machine: (finished: must succeed: cat /tmp/repo1-result, in 0.01 seconds)142✓ Test 2 passed: runOnStartup executed143Test 3: Send push webhook for repo1...144[3.72s] machine: must succeed: rm -f /tmp/repo1-result145[3.73s] machine: (finished: must succeed: rm -f /tmp/repo1-result, in 0.01 seconds)146[3.73s] machine: must succeed: 147 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 -s148149[3.75s] machine: (finished: must succeed: 150 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 -s151, in 0.01 seconds)152machine # [643540.767845] machine github-webhook[310]: [test/repo1] cmd: /nix/store/lfm00fnq66xfgbn099vqckabyl5jllz6-bash-interactive-5.3p20/bin/bash -c echo 'repo1 triggered' > /tmp/repo1-result153[4.75s] machine: waiting for file '/tmp/repo1-result'154[4.76s] machine: (finished: waiting for file '/tmp/repo1-result', in 0.02 seconds)155[4.76s] machine: must succeed: cat /tmp/repo1-result156[4.77s] machine: (finished: must succeed: cat /tmp/repo1-result, in 0.01 seconds)157✓ Test 3 passed: Push webhook triggered repo1158Test 4: Send push webhook for repo2 with env context...159[4.77s] machine: must succeed: 160 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 -s161162[4.79s] machine: (finished: must succeed: 163 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 -s164, in 0.02 seconds)165machine # [643541.818203] 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-result166[5.79s] machine: waiting for file '/tmp/repo2-result'167[5.80s] machine: (finished: waiting for file '/tmp/repo2-result', in 0.01 seconds)168[5.80s] machine: must succeed: cat /tmp/repo2-result169[5.81s] machine: (finished: must succeed: cat /tmp/repo2-result, in 0.01 seconds)170✓ Test 4 passed: Push webhook triggered repo2 with environment context171Test 5: Reject webhook for untracked branch...172[5.81s] machine: must succeed: rm -f /tmp/repo2-result173[5.82s] machine: (finished: must succeed: rm -f /tmp/repo2-result, in 0.01 seconds)174[5.82s] machine: must succeed: 175 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 -s176177[5.84s] machine: (finished: must succeed: 178 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 -s179, in 0.01 seconds)180[6.84s] machine: must fail: test -f /tmp/repo2-result181[6.84s] machine: (finished: must fail: test -f /tmp/repo2-result, in 0.01 seconds)182✓ Test 5 passed: Rejected webhook for untracked branch183Test 6: Reject webhook with invalid signature...184[6.84s] machine: must succeed: rm -f /tmp/repo1-result185[6.85s] machine: (finished: must succeed: rm -f /tmp/repo1-result, in 0.01 seconds)186[6.85s] machine: must succeed: 187 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 -s188189[6.87s] machine: (finished: must succeed: 190 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 -s191, in 0.02 seconds)192[7.87s] machine: must fail: test -f /tmp/repo1-result193[7.87s] machine: (finished: must fail: test -f /tmp/repo1-result, in 0.01 seconds)194✓ Test 6 passed: Rejected webhook with invalid signature195Test 7: Accept ping event...196[7.87s] machine: must succeed: 197 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 -s198199[7.88s] machine: (finished: must succeed: 200 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 -s201, in 0.01 seconds)202✓ Test 7 passed: Ping event accepted203✅ All tests passed!204[7.88s] (finished: run the VM test script, in 7.86 seconds)205[7.89s] test script finished in 7.87s206[7.89s] cleanup207[7.89s] kill NspawnMachine (pid 50)208Container machine terminated by signal KILL.209[7.96s] (finished: cleanup, in 0.06 seconds)