Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

chore(ci): pass --profile to bazel-do jobs#64148

Merged
jhchabran merged 1 commit into
mainfrom
jh/bazel-do-profile
Jul 30, 2024
Merged

chore(ci): pass --profile to bazel-do jobs#64148
jhchabran merged 1 commit into
mainfrom
jh/bazel-do-profile

Conversation

@jhchabran

Copy link
Copy Markdown
Contributor

Follow-up to this comment where the need was raised for having profiles for further inspection of problematic targets when run in isolation.

Basically, every bazel-do will now collect the profile, and it'll be uploaded as a job artifact.

Test plan

See https://buildkite.com/sourcegraph/sourcegraph/builds/284913 for a test run.

Changelog

@cla-bot cla-bot Bot added the cla-signed label Jul 30, 2024
@jhchabran jhchabran requested a review from a team July 30, 2024 12:31
@jhchabran jhchabran added the no-changelog Exclude this PR from the next changelog. label Jul 30, 2024
@jhchabran jhchabran enabled auto-merge (squash) July 30, 2024 12:32
bk.Agent("queue", AspectWorkflows.QueueDefault),
bk.Cmd(bazelCmd(bzlCmd)),
bk.Cmd(bazelCmd(bzlCmd+" --profile=/tmp/bazel-do-profile.gz")),
bk.ArtifactPaths("/tmp/bazel-do-profile.gz"),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cool. This is how stuff end up in the artifacts section.

@jhchabran jhchabran merged commit 7b0f478 into main Jul 30, 2024
@jhchabran jhchabran deleted the jh/bazel-do-profile branch July 30, 2024 13:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed no-changelog Exclude this PR from the next changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants