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

tests: add test cronjob manifests for errors and delays #70

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

Jiahui-Zhang-20
Copy link
Contributor

Previously: We did not have cronjob manifests that tested tasks of variable durations that either succeeded or failed.

Now:

We created new manifests to test the following cases:

cronjob-late-success: similar to cronjob-basic-success but the task first sleeps for an interval between 0 seconds to 60 seconds. This tests how Crons registers the late checkin during exit.

cronjob-maybe-error: this task either errors or succeeds with equal chance

cronjob-late-maybe-error: this task also has variable duration but may either succeed or error with equal chance

Copy link
Contributor

@tonyo tonyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A minor suggestion, ok to merge when it's resolved 👍

k8s/errors/cronjob-late-maybe-error.yaml Outdated Show resolved Hide resolved
@Jiahui-Zhang-20 Jiahui-Zhang-20 merged commit dd38bdf into master Dec 5, 2023
3 checks passed
@Jiahui-Zhang-20 Jiahui-Zhang-20 deleted the add-test-cronjobs branch December 5, 2023 19:38
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.

2 participants