-
Notifications
You must be signed in to change notification settings - Fork 106
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
Enable zebrad sync tests by default #1179
Conversation
If your test environment does not have DNS or network access, set the ZEBRA_SKIP_NETWORK_TESTS environmental variable to disable these tests.
They don't seem to have DNS or network configured during the tests. Also make capitalisation of step names consistent.
5dc0d46
to
c8b3163
Compare
@dconnolly how can I test if this PR makes Google Cloud CD tests fail? This PR is from my GitHub repository, and #1180 is from a branch in the ZcashFoundation repository. |
When the loop exits, either the process has stopped running, or the deadline has passed. If the process is still running, we want to kill it.
And add documentation
The Windows sync test fails intermittently, so I'm going to disable it. |
All tests in the Google Cloud Build are passing: Can you load this url? This is the raw console out . |
I added #1189 to follow up, because we really should be testing sync on every platform. (Particularly Linux, if we want it to be our distribution platform.) |
Yeah, that works for me. I guess I don't know exactly how Zebra CI works:
|
Oh, yes:
|
But cd and ci both build the same Dockerfile in gcloud, which has the same commands, just one is via a gcloud action and one is via the Google Cloud Build App integration to allow it to work on PRs from external forks. |
Ok, so here's our current test matrix for the sync tests:
(The other CI runners have unreliable networks.) I think that's enough for now. |
Motivation
In the past, we have accidentally merged PRs that break
zebrad
's sync functionality. So we want to add a basic genesis sync test to thezebrad
acceptance tests.Solution
ZEBRA_SKIP_NETWORK_TESTS
env var on any CI jobs that failCI / Test on ubuntu-latest
, because it failsGoogle Cloud Build
failscd.yml
failRelated Issues
Closes #1141.
Follow-up work
CI Reliability
Make sure CI is reliable, even if the seeder sends us slow peers
This work doesn't need a ticket - we only need to do it if we see CI failures.
Extended Sync Tests
Once we are sure that the genesis sync is reliable, we can add longer sync tests.
See #1004 (RFC) and #745 (tracking issue) for details.