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

upgrade goreleaser to support go 1.22 #2200

Merged
merged 2 commits into from
Mar 4, 2024
Merged

upgrade goreleaser to support go 1.22 #2200

merged 2 commits into from
Mar 4, 2024

Conversation

trajan0x
Copy link
Contributor

@trajan0x trajan0x commented Mar 4, 2024

Description

Upgrades goreleaser, required by quic-go

Summary by CodeRabbit

  • Documentation
    • Marked the observer module as deprecated in the README.
  • Chores
    • Updated versions for goreleaser and Golang in the Dockerfile for improved build process and compatibility.

Copy link
Contributor

coderabbitai bot commented Mar 4, 2024

Walkthrough

The recent updates involve deprecating the observer module in the core documentation, indicating a shift away from its recommended use for listener management. Additionally, the Dockerfile for goreleaser within the docker directory has been revised to enhance compatibility and performance by updating versions for goreleaser and Golang.

Changes

File Path Change Summary
core/README.md Marked observer module link as deprecated.
docker/.../Dockerfile Updated goreleaser to 1.24.0-pro and Golang to 1.22.0.

🐰✨
In the code garden, changes bloom,
Where once was old, now room for new.
From docks to core, updates loom,
With versions fresh, and deprecated few.
Hop along, dear code, in your digital room!
🌟🐇

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:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
  • 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 tests 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 tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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 as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

Copy link

codecov bot commented Mar 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.21625%. Comparing base (9fefc05) to head (7d33c55).

Additional details and impacted files
@@                 Coverage Diff                 @@
##              master       #2200         +/-   ##
===================================================
+ Coverage   48.36171%   49.21625%   +0.85454%     
===================================================
  Files            362         370          +8     
  Lines          26430       27241        +811     
  Branches          83          83                 
===================================================
+ Hits           12782       13407        +625     
- Misses         12322       12446        +124     
- Partials        1326        1388         +62     
Flag Coverage Δ
cctp-relayer 63.00863% <ø> (?)
core 64.62585% <ø> (ø)
ethergo 60.61840% <ø> (+2.16626%) ⬆️
explorer 24.80122% <ø> (ø)
git-changes-action 53.94265% <ø> (ø)
omnirpc 53.23194% <ø> (ø)
promexporter 74.80916% <ø> (ø)
release-copier-action 19.33333% <ø> (ø)
rfq 37.97776% <ø> (ø)
screener-api 62.80488% <ø> (ø)
scribe 52.02703% <ø> (-0.18427%) ⬇️
stiprelayer 3.33333% <ø> (ø)
tools 21.98661% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 2

Configuration used: .coderabbit.yaml

Commits Files that changed from the base of the PR and between 9fefc05 and b0ca24d.
Files selected for processing (2)
  • core/README.md (1 hunks)
  • docker/goreleaser/Dockerfile (2 hunks)
Additional comments: 2
docker/goreleaser/Dockerfile (2)
  • 1-7: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [3-9]

The update to goreleaser version 1.24.0-pro and its associated SHA checksum are correctly implemented. This ensures the integrity of the downloaded binary, aligning with security best practices.

  • 15-16: The update to Golang version 1.22.0 and its associated SHA checksum are correctly implemented, ensuring the integrity of the downloaded binary. This is a crucial step for maintaining a secure build environment.

@@ -20,7 +20,7 @@ root
├── <a href="./merkle">merkle</a>: Provides a go based merkle tree implementation.
├── <a href="./metrics">metrics</a>: Provides a set of utilities for working with metrics/otel tracing.
├── <a href="./mocktesting">mocktesting</a>: Provides a mocked tester for use with `testing.TB`
├── <a href="./observer">observer</a>: Provides an interface for adding/removing listeners.
├── <a href="./observer"><s>observer</s></a>(deprecated): Provides an interface for adding/removing listeners.
Copy link
Contributor

Choose a reason for hiding this comment

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

The deprecation of the observer module is clearly marked. However, it would be beneficial for users if additional information were provided regarding the reason for deprecation and any recommended alternatives or migration paths.

Comment on lines 1 to 7
FROM --platform=linux/amd64 debian:11

ARG VERSION_ARG=1.20.0-pro
ARG SHA_ARG=d2d76cf4b212f67cb9995c8539167a1c6d771859aad20ed242bfab640b6d396f
ARG VERSION_ARG=1.24.0-pro
ARG SHA_ARG=4723a3063febbbdafd345e9c877f095dfc9c8a467b0eefe1987354aa1860970f
ARG FILE_ARG=goreleaser-pro_Linux_x86_64.tar.gz
ARG DOWNLOAD_ARG=https://github.com/goreleaser/goreleaser-pro/releases/download/v${VERSION_ARG}/${FILE_ARG}

Copy link
Contributor

Choose a reason for hiding this comment

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

📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [33-33]

The TODO comment indicates that SHA checksum verification for the yq binary download is missing. Implementing this verification is crucial for ensuring the security of the build process by preventing tampering or compromise.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: .coderabbit.yaml

Commits Files that changed from the base of the PR and between b0ca24d and 7d33c55.
Files selected for processing (1)
  • docker/goreleaser/Dockerfile (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • docker/goreleaser/Dockerfile

@trajan0x trajan0x merged commit b283bdf into master Mar 4, 2024
67 checks passed
@trajan0x trajan0x deleted the feat/goreleaser1-22 branch March 4, 2024 15:21
trajan0x added a commit that referenced this pull request Mar 4, 2024
upgrade [goreleaser] to support go 1.22 (#2200)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant