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: add task status reporting load generator runner#20538

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

Open
spikecurtis wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromspike/internal-913-taskstatus-runner

Conversation

@spikecurtis
Copy link
Contributor

@spikecurtisspikecurtis commentedOct 29, 2025
edited
Loading

Adds the Runner, Config, and Metrics for the scaletest load generator for task status.

Part ofcoder/internal#913

@spikecurtisGraphite App
Copy link
ContributorAuthor

spikecurtis commentedOct 29, 2025
edited
Loading

@spikecurtisspikecurtis marked this pull request as ready for reviewOctober 29, 2025 12:06
@spikecurtisspikecurtisforce-pushed thespike/internal-913-taskstatus-runner branch from6301335 to6d573a2CompareOctober 29, 2025 12:19
Copy link
Member

@ethanndicksonethanndickson left a comment

Choose a reason for hiding this comment

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

LGTM, only nitpicks from me


type Config struct {
// AgentID is the workspace agent ID to which to connect.
AgentID uuid.UUID `json:"agent_id"`

Choose a reason for hiding this comment

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

Looks unused since task statuses are reported per-workspace

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Good catch.

It's actually worse than this though. The API route to report status only works with an Agent Token; a regular API token won't work. So, we need some way to either run this in the workspace or otherwise get ahold of the key.

Choose a reason for hiding this comment

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

I don't recall the details of how external workspaces work - could we just register ourselves as an external workspace?

Choose a reason for hiding this comment

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

}

func (c *Config) Validate() error {
if c.AgentID == uuid.Nil {

Choose a reason for hiding this comment

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

Suggested change
ifc.AgentID== uuid.Nil {
ifc.WorkspaceID== uuid.Nil {

MetricLabelValues []string `json:"metric_label_values"`
}

func (c *Config) Validate() error {

Choose a reason for hiding this comment

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

Looks unused

Comment on lines +133 to +136
case <-ctx.Done():
return ctx.Err()
case <-r.cfg.StartReporting:
r.logger.Info(ctx, "starting to report task status")

Choose a reason for hiding this comment

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

IfwatchWorkspaceUpdates always callsDone on the waitgroup, even if it fails, we wouldn't need this timeout right? Then you could get rid of theStartReporting channel, and just have this function wait on the waitgroup.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

TheRun Sequence calls for waiting to establish a baseline after all updates websockets are connected before we start sending status reports. That's the purpose of thisStartReporting channel: it allows the calling code to wait for the baseline, then start all the status reports.

@spikecurtisspikecurtis changed the base branch fromspike/scaletest-refactor-workspace-target-flags tographite-base/20538October 30, 2025 07:10
@spikecurtisspikecurtisforce-pushed thespike/internal-913-taskstatus-runner branch from6d573a2 to8bafc4fCompareOctober 30, 2025 07:10
@graphite-appgraphite-appbot changed the base branch fromgraphite-base/20538 tomainOctober 30, 2025 07:11
@spikecurtisspikecurtisforce-pushed thespike/internal-913-taskstatus-runner branch from8bafc4f tobd4b0c6CompareOctober 30, 2025 07:11
@github-actionsgithub-actionsbot added the staleThis issue is like stale bread. labelNov 7, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ethanndicksonethanndicksonethanndickson approved these changes

Assignees

@spikecurtisspikecurtis

Labels

staleThis issue is like stale bread.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@spikecurtis@ethanndickson

[8]ページ先頭

©2009-2025 Movatter.jp