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

Add Canary Test in workflow #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mohamadaminkarami
Copy link
Contributor

Related to #1

@@ -284,3 +284,47 @@ jobs:
run: |
docker push binpash/hadoop-submit:${{ env.RELEASE }}
docker push binpash/hadoop-submit:latest

run-containers-and-tests:
Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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?

Copy link

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.

Copy link
Member

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?

Copy link
Contributor Author

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.

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.

3 participants