Our basic set of tests includes:
- Code linting
- UI tests
- Backend unit tests
They are run on every PR by default.
- none
-
I am not part of the
coreos
orcoreos-inc
GitHub organization. Why are the tests not being executed on my changes?Pull requests by external contributors need to be checked before they are tested by our Jenkins setup. Please ask a maintainer to mark your PR via commenting
ok to test
. -
How do I retrigger the tests?
Comment with
ok to test
on the PR.
In addition to our basic set of tests we have smoke tests. These test the Tectonic installer on our supported platforms:
- AWS
- Azure
- Bare metal
- Add the
run-smoke-tests
GitHub label - Add the
platform/<xxx>
GitHub label for each platform you want to run tests against
-
I am not able to add labels, what should I do?
Please ask one of the repository maintainers to add the labels.
-
How do I retrigger the tests?
Comment with
ok to test
on the PR. -
I forgot to add the GitHub labels. Can I add them after creating the PR?
Yes, just add the GitHub labels and comment
ok to test
on the PR. -
What if I only add the
run-smoke-tests
GitHub label, but noplatform/<xxx>
label?No smoke tests will be executed.
-
What if I trigger the tests twice in a small time frame?
Triggering the tests twice in a small time frame results in two test executions. The result of the most recent execution will be reported as a PR status in GitHub.
-
What can I do in case I run into test flakes continually?
- Make sure the test failure is in no way related to your PR changes. Test your changes locally thoroughly.
- Document the flake in Jira in the
INST
project as issue type "bug" with theflake
label. - Get the approval of another person.
- Merge the PR.
To run a smoke test locally you need to set the following environment variables:
CLUSTER
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
TF_VAR_tectonic_aws_region
TF_VAR_tectonic_license_path
TF_VAR_tectonic_pull_secret_path
TF_VAR_tectonic_base_domain
Once the environment variables are set, run make tests/smoke TEST=aws_spec.rb
.