Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

profiler: implement profile_seq tag #1391

Merged
merged 3 commits into from
Jul 19, 2022

Conversation

felixge
Copy link
Member

@felixge felixge commented Jul 18, 2022

DO NOT MERGE; but please do review. See PROF-5612 for details.

Add a new profile_seq tag that starts at 0 and is incremented by 1 for every batch.

@felixge felixge requested a review from a team as a code owner July 18, 2022 17:23
@felixge felixge added this to the 1.41.0 milestone Jul 18, 2022
Copy link
Contributor

@nsrip-dd nsrip-dd left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Felix! Nothing to change, just a small comment on some future refactoring we could do.

profiler/profiler_test.go Show resolved Hide resolved
@@ -338,6 +338,11 @@ func unstartedProfiler(opts ...Option) (*profiler, error) {
}

func TestAllUploaded(t *testing.T) {
type profileMeta struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

Good call on this structure 👍

Idea for a future refactor (out of scope for this PR): Now TestAllUploaded and TestCorrectTags have basically the same structure, and in fact I've realized these tests are very similar to the ones in upload_test.go. I think we can pull out the server handler from this test and reuse it, and possibly get rid of most of the code in upload_test.go since a lot of what those tests cover is now covered by these integration-style tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea. I think I'll try this after merging.

@felixge felixge merged commit af36ef0 into main Jul 19, 2022
@felixge felixge deleted the felix.geisendoerfer/PROF-5612-profile-seq-tag branch July 19, 2022 09:33
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.

None yet

2 participants