Skip to content

feat(scaletest): annotate scaletest pod when scaletest is in progress #10235

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

Merged
merged 8 commits into from
Oct 12, 2023

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Oct 12, 2023

Part of #7777

This PR modifies the scaletest-runner template to add a pod annotation to the scaletest runner pod.

The annotation key is set to com.coder.scaletest.phase and the annotation value is one of preparing, running, or completed.

This will allow checking if a scaletest is in progress, and preventing any operations that would interrupt a running scaletest.

@johnstcn johnstcn requested a review from mafredri October 12, 2023 09:31
@johnstcn johnstcn self-assigned this Oct 12, 2023
@@ -40,7 +40,7 @@ show_json() {
set_status() {
dry_run=
if [[ ${DRY_RUN} == 1 ]]; then
dry_run=" (dry-ryn)"
dry_run=" (dry-run)"
Copy link
Member Author

Choose a reason for hiding this comment

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

drive-by 😁

@johnstcn
Copy link
Member Author

I gave this a tyre-kicking and nothing exploded, so I think this is good to go!

Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
@johnstcn johnstcn merged commit e5198a2 into main Oct 12, 2023
@johnstcn johnstcn deleted the cj/scaletest-lock branch October 12, 2023 13:36
@github-actions github-actions bot locked and limited conversation to collaborators Oct 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants