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

fix(controller): Fixed broken pprof links #4037 #4038

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

DerekTBrown
Copy link
Contributor

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional with a list of types and scopes found here, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed my commits with DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

@DerekTBrown DerekTBrown changed the title [fix] broken pprof links fix(controller): Fixed broken pprof links #4037 Jan 9, 2025
Signed-off-by: Derek Brown <6845676+DerekTBrown@users.noreply.github.com>
Copy link

sonarqubecloud bot commented Jan 9, 2025

mux.HandleFunc(fmt.Sprintf("%s/trace", ProfilingPath), pprof.Trace)
// TODO: Remove enumerating all pprof endpoints if/when a more ergonomic
// attachment solution is introduced. See: https://github.com/golang/go/issues/71213.
mux.HandleFunc("/debug/pprof/", pprof.Index)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: I believe this is the source of the bug. mux needs the trailing slash to match requests properly:

https://github.com/golang/go/blob/46b576be724b6e64359fd872b9bd5109aba93cc0/src/net/http/pprof/pprof.go#L95-L105

Copy link
Contributor

Published E2E Test Results

  4 files    4 suites   3h 7m 4s ⏱️
113 tests 106 ✅  7 💤 0 ❌
452 runs  424 ✅ 28 💤 0 ❌

Results for commit e026be3.

Copy link
Contributor

Published Unit Test Results

2 293 tests   2 293 ✅  2m 59s ⏱️
  128 suites      0 💤
    1 files        0 ❌

Results for commit e026be3.

@zachaller zachaller merged commit efd3008 into argoproj:master Jan 10, 2025
24 checks passed
zachaller pushed a commit that referenced this pull request Jan 16, 2025
Signed-off-by: Derek Brown <6845676+DerekTBrown@users.noreply.github.com>
@zachaller zachaller added the cherry-pick-completed Used once we have cherry picked the PR to all requested releases label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick/release-1.8 cherry-pick-completed Used once we have cherry picked the PR to all requested releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants