-
Notifications
You must be signed in to change notification settings - Fork 887
feat(scaletest): add scaletest-runner template #9662
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
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.
First review round. It looks awesome, and I do like that it will be hosted publicly!
option { | ||
name = "Large" | ||
value = "kubernetes-large" | ||
icon = "/emojis/1f434.png" # Horse. |
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.
nit: could be an elephant :)
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.
Haha, true. I just matched the icons set on the current template on big.
order = 2 | ||
type = "bool" | ||
name = "Dry-run" | ||
default = false |
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.
In general, it is safer to enable dry-run by default.
BUT there is something to consider:
Ephemeral parameters are reset on every build, which means that if we intend to setup any workspace schedule/autobuild, default values will be picked up.
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.
Ok, I made it default true. I don't think we need to have these perfectly figured out right now, we'll be iterating on this as we detect new needs 👍🏻
scaletest/setup/scaletest-sa.yaml
Outdated
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 should probably be incorporated into scaletest/terraform instead
EDIT: If you prefer, I can incorporate this when I'm going through and updating the tf config instead.
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.
Thanks, I'd appreciate that! Should I remove it from this PR?
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.
Nah you can leave it.
@@ -0,0 +1,34 @@ | |||
# This image is used to run scaletest jobs and, although it is inside | |||
# the template directory, it is built separately and pushed to | |||
# gcr.io/coder-dev-1/scaletest-runner:latest. |
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.
Self-review: I ended up keeping this file close to where it's used, however, it may be confusing if someone tries to edit it in the template editor and there are no changes.
Perhaps I should move it elsewhere?
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.
Well, in theory we could use our CI to build and push it...
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.
Agreed, that was the idea behind the "Future improvements" below. 👍🏻 IMO not the highest priority right now, though.
126bc44
to
047c784
Compare
@mtojek @johnstcn I believe I've amended all feedback, and added some small tweaks:
There will probably be a lot of tweaks to this template as we start adding features and improvements. ![]() ![]() |
87fb6f5
to
5f5d3b1
Compare
bb045c7
to
c9205ce
Compare
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.
Nice work!
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.
Awesome 👍
This template is used on
big.cdr.dev
to run an automated scaletest.https://big.cdr.dev/templates/scaletest-runner
Closes #9571
Some samples: