-
Notifications
You must be signed in to change notification settings - Fork 108
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
ci: add a test to check that the Docker image config works #5968
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, let's see how it goes!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the test commands are quite right yet.
We also need to add the new test to the branch protection rules, did you want to do that after this PR merges?
In the This is different from the How should we run |
I'm not sure I fully understand the question, but I'll try to say some helpful things:
This builds the
The test stage should create a Line 132 in 7e5253e
(It won't be in the debug directory, because we build tests with I think one of the goals of the ticket is automating this manual check from the Zebra release process:
Is it possible to run this test on the release Docker image instead? |
Since this PR changes the entry point script, I'm not sure if running the main branch image will help us here. Here is the output from Run tests using the $ZEBRA_CONF_PATH:
It looks like the config file isn't at the expected path - where is the Zebra git checkout in the Docker image? Also, tee isn't echoing the output before it exits - since tee works with longer "docker logs" output and with other tools, it could be a bug in "docker logs" where it doesn't send an end of file or flush its internal buffers before finishing. But printing all the logs at the end seems like enough for now. I don't think we need any further fixes for the log output. |
Co-authored-by: teor <teor@riseup.net>
The
Right here https://github.com/ZcashFoundation/zebra/blob/feat-conf-test/docker/Dockerfile#L105 |
If the container is logging to stderr, piping works only for stdout, so we're adding `2>&1`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it should work.
Did you want to add the new jobs to the branch protection rules after it merges?
We'll also need to update the patch workflows with the new jobs 🙂 |
Manual deployment to test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for adding that extra test!
We'll have to manually check the test status in the CD workflow, but that's ok, that's what we're doing for everything else in that workflow anyway.
I added these new jobs to the
|
Motivation
We want to test that our Docker build scripts configure Zebra correctly:
Fixes #5168
Solution
Review
Anyone can review this, validating the test is using the right configuration
Reviewer Checklist
Follow Up Work
Use a custom file instead of the existing one living inside
common/configs