Skip to content

profiler: implement profile_seq tag#1391

Merged
felixge merged 3 commits into
mainfrom
felix.geisendoerfer/PROF-5612-profile-seq-tag
Jul 19, 2022
Merged

profiler: implement profile_seq tag#1391
felixge merged 3 commits into
mainfrom
felix.geisendoerfer/PROF-5612-profile-seq-tag

Conversation

@felixge

@felixge felixge commented Jul 18, 2022

Copy link
Copy Markdown
Member

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

@nsrip-dd nsrip-dd left a comment

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.

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

Comment thread profiler/profiler_test.go
Comment thread profiler/profiler_test.go
}

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

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.

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
Copy Markdown
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.

2 participants