Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(scaletest): add runner for thundering herd autostart#19998

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethanndickson merged 2 commits intomainfromethan/autostart-scaletest-runner
Oct 2, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedSep 29, 2025
edited
Loading

Relates tocoder/internal#911

This PR adds a scaletest runner that simulates a user with a workspace configured to autostart at a specific time.

An instance of this autostart runner does the following:

  1. Creates a user.
  2. Creates a workspace.
  3. Listens on/api/v2/workspaces/<ws-id>/watch to wait for build completions throughout the run.
  4. Stops the workspace, waits for the build to finish.
  5. Waits for all other concurrently executing runners (per theSetupBarrierWaitGroup) to also have a stopped workspace.
  6. Sets the workspace autostart time totime.Now().Add(cfg.AutoStartDelay)
  7. Waits for the autostart workspace build to begin, enter thepending status, and thenrunning.
  8. Waits for the autostart workspace build to end.

Exposes four prometheus metrics:

  • autostart_job_creation_latency_seconds - HistogramVec. Labels = {username, workspace_name}
  • autostart_job_acquired_latency_seconds - HistogramVec. Labels = {username, workspace_name}
  • autostart_total_latency_seconds -HistogramVec. Labels ={username, workspace_name}.
  • autostart_errors_total -CounterVec. Labels ={username, action}.

@ethanndicksonethanndicksonforce-pushed theethan/autostart-scaletest-runner branch 2 times, most recently fromc50b755 to3a82249CompareSeptember 29, 2025 06:05
@ethanndicksonethanndickson marked this pull request as ready for reviewSeptember 29, 2025 06:08
@ethanndicksonethanndicksonforce-pushed theethan/autostart-scaletest-runner branch from3a82249 tob3d9c42CompareSeptember 29, 2025 06:18
@ethanndicksonethanndicksonforce-pushed theethan/scaletest-wsbuild-return-ws branch fromc50e86c to4aca852CompareSeptember 29, 2025 07:01
@ethanndicksonethanndicksonforce-pushed theethan/autostart-scaletest-runner branch fromb3d9c42 toe78cebdCompareSeptember 29, 2025 07:01
@ethanndicksonethanndicksonforce-pushed theethan/scaletest-wsbuild-return-ws branch from4aca852 to604e76fCompareSeptember 30, 2025 00:58
@ethanndicksonethanndicksonforce-pushed theethan/autostart-scaletest-runner branch frome78cebd to69328a0CompareSeptember 30, 2025 07:09
@ethanndicksonethanndickson changed the base branch fromethan/scaletest-wsbuild-return-ws tographite-base/19998September 30, 2025 08:08
@ethanndicksonethanndicksonforce-pushed theethan/autostart-scaletest-runner branch from69328a0 to1cbdb31CompareSeptember 30, 2025 08:20
@graphite-appgraphite-appbot changed the base branch fromgraphite-base/19998 tomainSeptember 30, 2025 08:21
@ethanndicksonethanndicksonforce-pushed theethan/autostart-scaletest-runner branch 2 times, most recently fromb63a2e0 to46531e8CompareSeptember 30, 2025 09:18

client := coderdtest.New(t, &coderdtest.Options{
IncludeProvisionerDaemon: true,
AutobuildTicker: time.NewTicker(time.Second * 1).C,
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This is what we do incoder server, but with a default of 1m.

Copilot

This comment was marked as resolved.

@ethanndicksonethanndicksonforce-pushed theethan/autostart-scaletest-runner branch from46531e8 to3a57c5fCompareOctober 1, 2025 01:40
@ethanndicksonethanndicksonforce-pushed theethan/autostart-scaletest-runner branch fromd784291 to02eb455CompareOctober 1, 2025 11:20
@ethanndicksonethanndickson merged commitf84a789 intomainOct 2, 2025
32 checks passed
@ethanndicksonethanndickson deleted the ethan/autostart-scaletest-runner branchOctober 2, 2025 00:45
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 2, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

Copilot code reviewCopilotCopilot left review comments

@spikecurtisspikecurtisspikecurtis approved these changes

@kacpersawkacpersawAwaiting requested review from kacpersaw

Assignees

@ethanndicksonethanndickson

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ethanndickson@spikecurtis

[8]ページ先頭

©2009-2025 Movatter.jp