Skip to content

Add benchmarking e2e test#365

Open
Max Smythe (maxsmythe) wants to merge 1 commit into
agent-substrate:mainfrom
maxsmythe:e2e-test-benchmarking
Open

Add benchmarking e2e test#365
Max Smythe (maxsmythe) wants to merge 1 commit into
agent-substrate:mainfrom
maxsmythe:e2e-test-benchmarking

Conversation

@maxsmythe

Copy link
Copy Markdown
Collaborator

Add a short e2e test to exercise the benchmarking workloads/logic to help ensure changes to Substrate don't quietly break benchmarking.

u.hostHeader = u.actorID + "." + cfg.Atespace + "." + actorDomain

if err := u.ensureAtespace(ctx); err != nil {
return fmt.Errorf("EnsureAtespace: %w", err)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[minor] When I return an error like this, I usually just do a cut-and-paste "u.ensureAtespace: %w" so that you can just cut and paste the error and do a exact string search.

Also Golang error strings are not supposed to be capitalized in any case

}
for _, phase := range []string{"cold", "warm"} {
if err := u.runIteration(ctx); err != nil {
return fmt.Errorf("%s iteration: %w", phase, err)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

runIteration

}
}
if err := u.delete(ctx); err != nil {
return fmt.Errorf("DeleteActor: %w", err)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

delete:

return fmt.Errorf("EnsureAtespace: %w", err)
}
if err := u.create(ctx); err != nil {
return fmt.Errorf("CreateActor: %w", err)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

createActor

@bowei

Copy link
Copy Markdown
Collaborator

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants