Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(scaletest): add grafana annotations and slack reporting #9852

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 7 commits into from
Sep 27, 2023

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Sep 25, 2023

  • feat(scaletest): add grafana annotations
  • feat(scaletest): add slack reporting

Fixes #9575
Fixes #9576

@mafredri mafredri requested review from johnstcn and mtojek September 26, 2023 12:39
@mafredri mafredri marked this pull request as ready for review September 26, 2023 12:39
--count "${SCALETEST_PARAM_NUM_WORKSPACES}" \
--template "${SCALETEST_PARAM_TEMPLATE}" \
--concurrency "${SCALETEST_PARAM_CREATE_CONCURRENCY}" \
--job-timeout 2h \
--no-cleanup \
--output json:"${SCALETEST_RESULTS_DIR}/create-workspaces.json"
Copy link
Member

Choose a reason for hiding this comment

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

nit: Since you're prefixing everything else with SCALETEST_PARAM_, perhaps also this one?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was thinking about them separately, one is params that a user can change (via template) and the other is plain variables used by the suite. Since all SCALETEST_PARAM_ prefixed vars are attached to reports in sorted order, this also gives us more control what to report/where.

# shellcheck disable=SC2153 source=scaletest/templates/scaletest-runner/scripts/lib.sh
. "${SCRIPTS_DIR}/lib.sh"

# NOTE(mafredri): API returns HTML if we accidentally use `...//api` vs `.../api`.
Copy link
Member

@johnstcn johnstcn Sep 26, 2023

Choose a reason for hiding this comment

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

👀 that sounds like a bug? (Edit: in coderd, I mean)

Copy link
Member Author

Choose a reason for hiding this comment

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

We could consider it one. Funnily enough, Grafana has the same issue (you get page not found). 😄

Copy link
Member

Choose a reason for hiding this comment

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

Not a blocker for this though

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

LGTM, but I will defer the final approval to Cian.

order = 25
name = "Dashboard Traffic Duration"
type = "number"
description = "The duration of the dashboard traffic load scenario in minutes."
Copy link
Member

Choose a reason for hiding this comment

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

nit: alternatively, we could use a select box with predefined periods

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a good idea, perhaps once we have a better idea of what those predefined periods should be. 👍🏻

@mafredri mafredri enabled auto-merge (squash) September 27, 2023 10:19
@mafredri mafredri merged commit d8515f0 into main Sep 27, 2023
@mafredri mafredri deleted the mafredri/feat-scaletest-add-grafana-annotations branch September 27, 2023 11:44
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants