Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildomat: build tests in AWS and run them in the lab #116

Merged
merged 1 commit into from
Apr 20, 2022
Merged

Conversation

jclulow
Copy link
Contributor

@jclulow jclulow commented Apr 15, 2022

No description provided.

@jclulow
Copy link
Contributor Author

jclulow commented Apr 15, 2022

This adds two new buildomat jobs, using a new feature: job dependencies. The first job, tests-build, will build test binaries with cargo and compress them and emit them as job artefacts:

tests-build

The second job, tests-run, depends on the first using a dependencies directive:

 $ awk '!/^#/ { exit(0); } { print; }' .github/buildomat/jobs/tests-run.sh
#!/bin/bash
#:
#: name = "tests-run"
#: variety = "basic"
#: target = "lab"
#: output_rules = [
#:      "/tmp/*.log",
#: ]
#: skip_clone = true
#:
#: [dependencies.build]
#: job = "tests-build"
#:

The directive creates a dependency, named build, which resolves to the first job by its name. The name of the dependency appears in the path within the work environment when output artefacts are coped as inputs to the second job; i.e., they appear under /input/build/ in this case.

If the first job succeeds, the second job will run:

testsrun

Things like cancelling one or the other, or job failure, should all end up cascading through the chain. Any log files emitted as /tmp/*.log within the test work environment will be saved and available to view, whether or not the tests succeed.

@jclulow
Copy link
Contributor Author

jclulow commented Apr 20, 2022

OK I rebased this and there is a new failure, so: it seems time to put it back so that we can avoid repeated new failures!

@jclulow jclulow merged commit fc09089 into master Apr 20, 2022
@pfmooney pfmooney deleted the buildomat branch July 1, 2022 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant