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

go work sync fix #1980

Merged
merged 19 commits into from
Feb 6, 2024
Merged

go work sync fix #1980

merged 19 commits into from
Feb 6, 2024

Conversation

trajan0x
Copy link
Contributor

@trajan0x trajan0x commented Feb 5, 2024

Description

Fixes go work sync (golang/go#65363) by manually replacing references to the broken dependency

Summary by CodeRabbit

  • New Features

    • Introduced new "Visage" equipment fields for heroes in the game.
  • Tests

    • Added a new integration test for ETH to ETH transactions.
  • Chores

    • Updated workflow and linter configurations for improved code quality and maintenance.

Copy link
Contributor

coderabbitai bot commented Feb 5, 2024

Important

Auto Review Skipped

Review was skipped due to path filters

Files ignored due to path filters (2)
  • qodana.sarif.json is excluded by: !**/*.json
  • qodana.yaml is excluded by: !**/*.yaml

Walkthrough

The recent updates encompass a variety of enhancements across the project, including workflow optimization for Go, linting improvements, the introduction of new equipment fields in the game's data model, the addition of a conditional test for RFQ services, and a code quality directive in the quoter logic. These changes aim to refine development practices, expand game functionality, and ensure robust testing, all while maintaining code readability and performance.

Changes

Files Change Summary
.github/workflows/go.yml
.golangci.yml
Added a comment for a potential go work sync step in the Go workflow. Included testifylint in the linters list.
.github/workflows/scan.yml Updated workflow name, added permissions configuration, and integrated "Qodana Scan."
README.md Added a Codacy Badge to the project's README.
.../gql/dfk/models.gen.go Added Visage equipment fields to the Hero struct.
services/rfq/e2e/rfq_test.go Added TestETHtoETH() test function with a conditional skip.
services/rfq/relayer/quoter/quoter.go Added a //nolint: nestif comment for code readability.

🐇💻
In the realm of code, where logic intertwines,
A rabbit hopped through, making changes so fine.
With each leap and bound, enhancements were sown,
Crafting a digital garden, wonderfully grown.
🌱🚀

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 from git 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 Feb 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (master@cecf3f4). Click here to learn what that means.
Report is 3 commits behind head on master.

❗ Current head 19b36af differs from pull request most recent head 6687e09. Consider uploading reports for the commit 6687e09 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##             master       #1980   +/-   ##
============================================
  Coverage          ?   41.67902%           
============================================
  Files             ?         157           
  Lines             ?       12138           
  Branches          ?           0           
============================================
  Hits              ?        5059           
  Misses            ?        6475           
  Partials          ?         604           

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

@github-actions github-actions bot added go Pull requests that update Go code and removed needs-go-generate-contrib/promexporter labels Feb 5, 2024
Copy link

github-actions bot commented Feb 6, 2024

Qodana for Go

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

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: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between d6f67a0 and 5b45f3e.
Files ignored due to path filters (37)
  • agents/go.mod is excluded by: !**/*.mod
  • agents/go.sum is excluded by: !**/*.sum
  • contrib/promexporter/go.mod is excluded by: !**/*.mod
  • contrib/promexporter/go.sum is excluded by: !**/*.sum
  • contrib/release-copier-action/go.mod is excluded by: !**/*.mod
  • contrib/release-copier-action/go.sum is excluded by: !**/*.sum
  • contrib/screener-api/go.mod is excluded by: !**/*.mod
  • contrib/screener-api/go.sum is excluded by: !**/*.sum
  • contrib/terraform-provider-helmproxy/go.mod is excluded by: !**/*.mod
  • contrib/terraform-provider-helmproxy/go.sum is excluded by: !**/*.sum
  • contrib/terraform-provider-iap/go.mod is excluded by: !**/*.mod
  • contrib/terraform-provider-iap/go.sum is excluded by: !**/*.sum
  • contrib/terraform-provider-kubeproxy/go.mod is excluded by: !**/*.mod
  • contrib/terraform-provider-kubeproxy/go.sum is excluded by: !**/*.sum
  • contrib/tfcore/go.mod is excluded by: !**/*.mod
  • contrib/tfcore/go.sum is excluded by: !**/*.sum
  • core/go.mod is excluded by: !**/*.mod
  • core/go.sum is excluded by: !**/*.sum
  • ethergo/go.mod is excluded by: !**/*.mod
  • ethergo/go.sum is excluded by: !**/*.sum
  • go.work.sum is excluded by: !**/*.sum
  • services/cctp-relayer/go.mod is excluded by: !**/*.mod
  • services/cctp-relayer/go.sum is excluded by: !**/*.sum
  • services/explorer/go.mod is excluded by: !**/*.mod
  • services/explorer/go.sum is excluded by: !**/*.sum
  • services/omnirpc/go.mod is excluded by: !**/*.mod
  • services/omnirpc/go.sum is excluded by: !**/*.sum
  • services/rfq/go.mod is excluded by: !**/*.mod
  • services/rfq/go.sum is excluded by: !**/*.sum
  • services/scribe/go.mod is excluded by: !**/*.mod
  • services/scribe/go.sum is excluded by: !**/*.sum
  • services/sinner/go.mod is excluded by: !**/*.mod
  • services/sinner/go.sum is excluded by: !**/*.sum
  • services/stiprelayer/go.mod is excluded by: !**/*.mod
  • services/stiprelayer/go.sum is excluded by: !**/*.sum
  • tools/go.mod is excluded by: !**/*.mod
  • tools/go.sum is excluded by: !**/*.sum
Files selected for processing (7)
  • .github/workflows/go.yml (1 hunks)
  • .github/workflows/scan.yml (3 hunks)
  • .golangci.yml (1 hunks)
  • README.md (1 hunks)
  • contrib/promexporter/internal/gql/dfk/models.gen.go (1 hunks)
  • services/rfq/e2e/rfq_test.go (1 hunks)
  • services/rfq/relayer/quoter/quoter.go (1 hunks)
Files skipped from review as they are similar to previous changes (5)
  • .github/workflows/go.yml
  • .golangci.yml
  • contrib/promexporter/internal/gql/dfk/models.gen.go
  • services/rfq/e2e/rfq_test.go
  • services/rfq/relayer/quoter/quoter.go
Additional comments: 3
.github/workflows/scan.yml (2)
  • 1-1: Rename workflow from "SonarCloud" to "Code Scan" is clear and aligns with the added scanning capabilities.
  • 28-31: Adding "Qodana Scan" step is appropriate for enhancing code quality checks. Ensure QODANA_TOKEN is securely stored in GitHub Secrets.
README.md (1)
  • 14-14: Adding the Codacy Badge to the README.md file is a good practice for showcasing code quality metrics.

Comment on lines +15 to +18
# permissions:
# contents: write
# pull-requests: write
# checks: write
Copy link
Contributor

Choose a reason for hiding this comment

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

Permissions are commented out. If these permissions are necessary for the workflow, they should be uncommented and properly configured.

-#    permissions:
-#      contents: write
-#      pull-requests: write
-#      checks: write
+    permissions:
+      contents: write
+      pull-requests: write
+      checks: write

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
# permissions:
# contents: write
# pull-requests: write
# checks: write
permissions:
contents: write
pull-requests: write
checks: write

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 UI

Commits Files that changed from the base of the PR and between 5b45f3e and 02e9c85.
Files ignored due to path filters (1)
  • qodana.yaml is excluded by: !**/*.yaml
Files selected for processing (2)
  • .codeclimate.yml (1 hunks)
  • .github/workflows/scan.yml (3 hunks)
Files skipped from review due to trivial changes (1)
  • .codeclimate.yml
Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/scan.yml

@github-actions github-actions bot added size/l and removed size/m labels Feb 6, 2024
@trajan0x trajan0x merged commit 4e7529e into master Feb 6, 2024
77 of 79 checks passed
@trajan0x trajan0x deleted the fix/go-work-sync branch February 6, 2024 18:35
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