-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add Canary Test in workflow #7
base: main
Are you sure you want to change the base?
Conversation
@@ -284,3 +284,47 @@ jobs: | |||
run: | | |||
docker push binpash/hadoop-submit:${{ env.RELEASE }} | |||
docker push binpash/hadoop-submit:latest | |||
|
|||
run-containers-and-tests: |
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.
Great, this should probly be scheduled to run every night. If I understand correctly now it runs on release after the others.
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.
Why would it need to run every night? New images are pushed to the registry only after a release, so the canary test pulls the latest image, executes it, and checks if everything works correctly. If it passes, it means the image is valid, and there’s no need for daily tests. Am I missing something?
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 was thinking something similar to this (https://github.com/binpash/try/blob/main/.github/workflows/test.yaml). I think it can run after the rest, but also run every night to make sure that nothing breaks even between pushes. @mgree do you have thoughts on that? Do you think this is not relevant here even though it is for try?
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 have much context, but it makes sense to run things frequently if there are dependencies which could cause breakage. I tend to go for weekly canaries.
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.
@mohamadaminkarami could you modify the canary to run as it does now but also scheduled to run once a week?
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 created a new workflow file that schedules canary tests to run weekly.
Related to #1