Skip to content

Add benchmarking e2e test#365

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

Add benchmarking e2e test#365
Max Smythe (maxsmythe) wants to merge 3 commits 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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good thoughts. Fixed. Left the camel case in, but starting on lower 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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

fixed

}
}
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:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

fixed

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

fixed.

@bowei

Copy link
Copy Markdown
Collaborator

lgtm

@maxsmythe

Copy link
Copy Markdown
Collaborator Author

Thanks for the review! Addressed comments and rebased.

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