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

chore(go.mod): bump grafana/pyroscope-go deps #3849

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

cristaloleg
Copy link
Contributor

On Go 1.23 I got such failures:

% make build
--> Updating go.mod
--> Updating go.mod in ./test/interchain
# github.com/grafana/pyroscope-go/godeltaprof/internal/pprof
../../../go/pkg/mod/github.com/grafana/pyroscope-go/[email protected]/internal/pprof/delta_mutex.go:30:20: undefined: runtime_cyclesPerSecond
../../../go/pkg/mod/github.com/grafana/pyroscope-go/[email protected]/internal/pprof/proto.go:320:8: undefined: runtime_expandFinalInlineFrame
make: *** [build] Error 1

Due to recent change in Go 1.23 where Go team removed some internal things. Simple bump works fine.

@cristaloleg cristaloleg requested a review from a team as a code owner September 9, 2024 11:06
@cristaloleg cristaloleg requested review from staheri14 and evan-forbes and removed request for a team September 9, 2024 11:06
@celestia-bot celestia-bot requested a review from a team September 9, 2024 11:06
Copy link
Contributor

coderabbitai bot commented Sep 9, 2024

Walkthrough

Walkthrough

This pull request updates the go.mod file to increment the versions of several indirect dependencies. The versions of github.com/grafana/pyroscope-go, github.com/grafana/pyroscope-go/godeltaprof, and github.com/klauspost/compress have been updated to their latest releases. These changes reflect maintenance updates aimed at incorporating improvements and bug fixes from the respective libraries without altering the overall functionality of the codebase.

Changes

Files Change Summary
go.mod Updated versions: github.com/grafana/pyroscope-go from v1.1.1 to v1.1.2, godeltaprof from v0.1.6 to v0.1.8, and github.com/klauspost/compress from v1.17.6 to v1.17.8.

Possibly related PRs

Suggested labels

WS: Maintenance 🔧

Tip

New features

Walkthrough comment now includes:

  • Possibly related PRs: A list of potentially related PRs to help you recall past context.
  • Suggested labels: CodeRabbit can now suggest labels by learning from your past PRs. You can also provide custom labeling instructions in the UI or configuration file.

Notes:

  • Please share any feedback in the discussion post on our Discord.
  • Possibly related PRs, automatic label suggestions based on past PRs, learnings, and possibly related issues require data opt-in (enabled by default).

Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 4b34f8b and cf56766.

Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
Files selected for processing (1)
  • go.mod (2 hunks)
Files skipped from review due to trivial changes (1)
  • go.mod

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Collaborator

@rootulp rootulp left a comment

Choose a reason for hiding this comment

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

Thanks! IMO we can backport to v1.x and 2.x branches

github.com/grafana/pyroscope-go v1.1.1 // indirect
github.com/grafana/pyroscope-go/godeltaprof v0.1.6 // indirect
github.com/grafana/pyroscope-go v1.1.2 // indirect
github.com/grafana/pyroscope-go/godeltaprof v0.1.8 // indirect
Copy link
Collaborator

@rootulp rootulp Sep 9, 2024

Choose a reason for hiding this comment

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

Out of curiosity, how did you bump this indirect deps? I also noticed this issue with godeltaprof v0.1.6 and Go 1.23 but I fixed it via a replace directive.

Ref: https://github.com/celestiaorg/celestia-app/pull/3848/files#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6R256

[no change needed] I think we could also fix by bumping the appropriate dep in celestia-core

$ go mod why github.com/grafana/pyroscope-go/godeltaprof
# github.com/grafana/pyroscope-go/godeltaprof
github.com/celestiaorg/celestia-app/v3/cmd/celestia-appd/cmd
github.com/tendermint/tendermint/node
github.com/grafana/pyroscope-go
github.com/grafana/pyroscope-go/godeltaprof

Copy link
Contributor Author

Choose a reason for hiding this comment

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

how did you bump this indirect deps?

Manually! 😂 No, really. Bumping non-major releases is cool due to backward-compatibility assumption in Go modules.

Yeah, this can be also achieved via replace but I don't see a huge reason for that here, more noise than the help.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I can also send the same patch to celestia-core 🫡

Copy link
Contributor Author

@cristaloleg cristaloleg Sep 9, 2024

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds good, manual bump works for me.

@rootulp rootulp added backport:v1.x PR will be backported automatically to the v1.x branch upon merging backport:v2.x PR will be backported automatically to the v2.x branch upon merging labels Sep 9, 2024
@rootulp rootulp enabled auto-merge (squash) September 9, 2024 13:13
rootulp pushed a commit to celestiaorg/celestia-core that referenced this pull request Sep 9, 2024
Based on suggestion here
celestiaorg/celestia-app#3849 (comment)

On Go 1.23 I got such failures:

```
% make build
--> Updating go.mod
--> Updating go.mod in ./test/interchain
# github.com/grafana/pyroscope-go/godeltaprof/internal/pprof
../../../go/pkg/mod/github.com/grafana/pyroscope-go/[email protected]/internal/pprof/delta_mutex.go:30:20: undefined: runtime_cyclesPerSecond
../../../go/pkg/mod/github.com/grafana/pyroscope-go/[email protected]/internal/pprof/proto.go:320:8: undefined: runtime_expandFinalInlineFrame
make: *** [build] Error 1
```

Due to recent change in Go 1.23 where Go team removed some internal
things. Simple bump works fine.
@rootulp rootulp merged commit 2c74ea5 into celestiaorg:main Sep 10, 2024
33 checks passed
mergify bot pushed a commit that referenced this pull request Sep 10, 2024
On Go 1.23 I got such failures:

```
% make build
--> Updating go.mod
--> Updating go.mod in ./test/interchain
# github.com/grafana/pyroscope-go/godeltaprof/internal/pprof
../../../go/pkg/mod/github.com/grafana/pyroscope-go/[email protected]/internal/pprof/delta_mutex.go:30:20: undefined: runtime_cyclesPerSecond
../../../go/pkg/mod/github.com/grafana/pyroscope-go/[email protected]/internal/pprof/proto.go:320:8: undefined: runtime_expandFinalInlineFrame
make: *** [build] Error 1
```

Due to recent change in Go 1.23 where Go team removed some internal
things. Simple bump works fine.

(cherry picked from commit 2c74ea5)

# Conflicts:
#	go.mod
#	go.sum
mergify bot pushed a commit that referenced this pull request Sep 10, 2024
On Go 1.23 I got such failures:

```
% make build
--> Updating go.mod
--> Updating go.mod in ./test/interchain
# github.com/grafana/pyroscope-go/godeltaprof/internal/pprof
../../../go/pkg/mod/github.com/grafana/pyroscope-go/[email protected]/internal/pprof/delta_mutex.go:30:20: undefined: runtime_cyclesPerSecond
../../../go/pkg/mod/github.com/grafana/pyroscope-go/[email protected]/internal/pprof/proto.go:320:8: undefined: runtime_expandFinalInlineFrame
make: *** [build] Error 1
```

Due to recent change in Go 1.23 where Go team removed some internal
things. Simple bump works fine.

(cherry picked from commit 2c74ea5)
@cristaloleg cristaloleg deleted the gomod/bump-pyro-deps branch September 10, 2024 18:03
rootulp pushed a commit that referenced this pull request Sep 11, 2024
On Go 1.23 I got such failures:

```
% make build
--> Updating go.mod
--> Updating go.mod in ./test/interchain
# github.com/grafana/pyroscope-go/godeltaprof/internal/pprof
../../../go/pkg/mod/github.com/grafana/pyroscope-go/[email protected]/internal/pprof/delta_mutex.go:30:20: undefined: runtime_cyclesPerSecond
../../../go/pkg/mod/github.com/grafana/pyroscope-go/[email protected]/internal/pprof/proto.go:320:8: undefined: runtime_expandFinalInlineFrame
make: *** [build] Error 1
```

Due to recent change in Go 1.23 where Go team removed some internal
things. Simple bump works fine.<hr>This is an automatic backport of pull
request #3849 done by [Mergify](https://mergify.com).

Co-authored-by: Oleg Kovalov <[email protected]>
rootulp pushed a commit that referenced this pull request Sep 11, 2024
rach-id pushed a commit to celestiaorg/celestia-core that referenced this pull request Nov 18, 2024
Based on suggestion here
celestiaorg/celestia-app#3849 (comment)

On Go 1.23 I got such failures:

```
% make build
--> Updating go.mod
--> Updating go.mod in ./test/interchain
# github.com/grafana/pyroscope-go/godeltaprof/internal/pprof
../../../go/pkg/mod/github.com/grafana/pyroscope-go/[email protected]/internal/pprof/delta_mutex.go:30:20: undefined: runtime_cyclesPerSecond
../../../go/pkg/mod/github.com/grafana/pyroscope-go/[email protected]/internal/pprof/proto.go:320:8: undefined: runtime_expandFinalInlineFrame
make: *** [build] Error 1
```

Due to recent change in Go 1.23 where Go team removed some internal
things. Simple bump works fine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:v1.x PR will be backported automatically to the v1.x branch upon merging backport:v2.x PR will be backported automatically to the v2.x branch upon merging external
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants