Darren Tucker
131fcbcaff
Adjust test jobs for new log directory.
2023-03-01 23:23:02 +11:00
Darren Tucker
abb9a8aadd
Use sudo when resetting perms on directories.
2022-12-18 21:36:25 +11:00
Darren Tucker
2f5664c590
Set group perms on regress dir.
...
This ensures that the tests don't fail due to StrictMode checks.
2022-12-18 21:19:33 +11:00
Darren Tucker
137196300f
Fetch regress logs from obj dir.
2022-12-18 21:13:42 +11:00
Darren Tucker
5f93c48365
obsdsnap test VMs runs-on libvirt too.
2022-12-13 20:59:54 +11:00
Darren Tucker
8386886fb1
Run upstream obsdsnap tests on ephemeral runners.
2022-12-13 20:55:37 +11:00
Darren Tucker
9f2747e0be
Rework how selfhosted tests interact with runners.
...
Previously there was one runner per test target (mostly VMs). This had
a few limitations:
- multiple tests that ran on the same target (eg multiple build
configs) were serialized on availability or that runner.
- it needed manual balancing of VMs over host machines.
To address this, make VMs that use ephemeral disks (ie most of them)
all use a pool of runners with the "libvirt" label. This requires that
we distinguish between "host" and "target" for those. Native runners
and VMs with persistent disks (eg the constantly-updated snapshot ones)
specify the same host and target.
This should improve test throughput.
2022-11-28 22:39:08 +11:00
Darren Tucker
d664ddaec8
Run vmstartup from temp dir.
...
This will allow us to create ephemeral disk images per-runner.
2022-11-27 12:19:37 +11:00
Darren Tucker
0fa16e952b
Make "config" in matrix singular and pass in env.
...
This will allow the startup scripts to adapt their behaviour based on
the type and config.
2022-11-27 12:14:00 +11:00
Darren Tucker
9775473d84
Rename "os" in matrix to "target".
...
This is in preparation to distinguish this from the host that the runner
runs on in case where they are separate (eg VMs).
2022-11-27 11:20:35 +11:00
Darren Tucker
419aa8a312
Shutdown any VM before trying to check out repo.
...
In the case where the previous run did not clean up, the checkout will
fail as it'll leave a stale mount.
2022-11-08 12:42:52 +11:00
Darren Tucker
a32c07cbb7
Run vm startup and shutdown from runner temp dir.
...
Should work even if the github workspace dir is on a stale sshfs mount.
2022-11-08 12:01:33 +11:00
Darren Tucker
2ea03d1f6d
Update checkout and upload actions.
...
Update actions/checkout and actions/upload-artifact to main branch for
compatibility with node.js v16.
2022-11-08 10:29:32 +11:00
Darren Tucker
ef211eee63
Test commits to all branches of portable.
...
Only test OpenBSD upstream on commits to master since that's what it
tracks.
2022-10-05 06:31:48 +11:00
Darren Tucker
d0c4fa5859
Rerun tests if any .github config file changes.
2022-08-11 14:23:58 +10:00
Darren Tucker
f38cf74f20
Also retest OpenBSD upstream on .yml changes.
2022-05-06 14:50:18 +10:00
Darren Tucker
217b518e0f
Add ubsan minimal testcase on OpenBSD.
...
As suggested by djm@.
2022-05-06 14:39:34 +10:00
Darren Tucker
97a6a8b8c1
Only run tests when source files change.
...
Also run tests on changes to V_9_0 branch.
2022-04-29 18:34:38 +10:00
Darren Tucker
ea13fc830f
Stop testing OpenBSD HEAD on 6.9 and 7.0.
...
HEAD is not guaranteed to work on previous stable branches, and at the
moment is broken due to libfido API changes.
2022-02-11 13:42:36 +11:00
Darren Tucker
03bd4ed0db
Add OpenBSD 7.0 target. Retire 6.8.
2022-01-05 11:48:58 +11:00
Darren Tucker
3dafd3fe22
Increase timeout for test step.
2021-12-11 08:43:41 +11:00
Darren Tucker
e50635640f
Test OpenSSH from OpenBSD head on 6.8 and 6.9.
2021-08-13 13:21:00 +10:00
Darren Tucker
a1f78e08bd
Move SUDO to "make test" command line.
...
Environment variables don't get passed by vmrun, so move to command
line.
2021-07-26 12:45:30 +10:00
Darren Tucker
02e624273b
Set SUDO for tests and cleanup.
2021-07-25 23:26:36 +10:00
Darren Tucker
460ae5d930
Pass OPENSSL=no to make tests too.
2021-07-25 22:37:55 +10:00
Darren Tucker
b6673b1d2e
Test OpenBSD upstream with and without OpenSSL.
2021-07-24 14:20:12 +10:00
Darren Tucker
da9f9acaac
Save logs on failure for upstream test
2021-06-07 19:19:23 +10:00
Darren Tucker
76883c6016
Add obsdsnap-i386 upstream test target.
2021-06-07 14:38:17 +10:00
Darren Tucker
e627067ec8
Add test building upstream OpenBSD source.
2021-04-28 11:43:54 +10:00