Skip to content

Conversation

@randy-cro
Copy link
Contributor

@randy-cro randy-cro commented Aug 19, 2025

Description

  • fix lint-fix command outputting error to random --issues-exit-code file
  • add issue_labeler config

👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻

PR Checklist:

  • Have you read the CONTRIBUTING.md?
  • Does your PR follow the C4 patch requirements?
  • Have you rebased your work on top of the latest master?
  • Have you checked your code compiles? (make)
  • Have you included tests for any non-trivial functionality?
  • Have you checked your code passes the unit tests? (make test)
  • Have you checked your code formatting is correct? (go fmt)
  • Have you checked your basic code style is fine? (golangci-lint run)
  • If you added any dependencies, have you checked they do not contain any known vulnerabilities? (go list -json -m all | nancy sleuth)
  • If your changes affect the client infrastructure, have you run the integration test?
  • If your changes affect public APIs, does your PR follow the C4 evolution of public contracts?
  • If your code changes public APIs, have you incremented the crate version numbers and documented your changes in the CHANGELOG.md?
  • If you are contributing for the first time, please read the agreement in CONTRIBUTING.md now and add a comment to this pull request stating that your PR is in accordance with the Developer's Certificate of Origin.

Thank you for your code, it's appreciated! :)

Summary by CodeRabbit

  • Chores
    • Added automated labeling for issues and pull requests to improve triage (bug, enhancement, docs, cli, build, CI, dependencies, e2ee, cronos, etc.).
    • Normalized PR labeler configuration for more consistent labeling.
    • Updated lint task to apply auto-fixes and streamline output.
    • Updated a dependency resolution entry and its build metadata mapping.
    • Repository hygiene updates; no runtime behavior changes.

@randy-cro randy-cro requested a review from a team as a code owner August 19, 2025 04:39
@randy-cro randy-cro requested review from JayT106 and XinyuCRO and removed request for a team August 19, 2025 04:39
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 19, 2025

Walkthrough

Adds new GitHub issue labeler config, normalizes/reorders PR labeler YAML, tweaks Makefile lint-fix flags, and updates an Ethermint dependency pin in both go.mod and gomod2nix.toml. No runtime code or public API changes.

Changes

Cohort / File(s) Summary of Changes
Issue Labeler Config
.github/issue_labeler.yml
New file introducing mappings from label categories (bug, enhancement, documentation, cli, cronos, e2ee, dependencies, build, ci, etc.) to alias keywords for automatic issue labeling.
PR Labeler Normalization
.github/pr_labeler.yml
YAML normalization: removed unnecessary quotes from several top-level keys and reorganized/duplicated cronos/e2ee sections near a “# modules” comment; no semantic changes to label patterns.
Makefile Lint Target
Makefile
Updated lint-fix target: removed --output.text.path stdout and added/adjusted flags to run golangci-lint with --fix and --path-prefix=./ (issues exit code set to 0).
Dependency pin (go.mod)
go.mod
Updated replace directive for github.com/evmos/ethermint to a new commit/version reference.
Dependency mapping (gomod2nix)
gomod2nix.toml
Updated Ethermint entry to match new version and updated sha256 hash; replaced field unchanged.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • calvinaco
  • thomas-nguy

Poem

A rabbit nudges labels bright,
YAML neat and lint in sight,
Dependency pins hop to new ground,
Configs rearranged without a sound.
Hop, merge, and let the queues take flight 🐇✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between a67e0e3 and 6832cb6.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (5)
  • .github/issue_labeler.yml (1 hunks)
  • .github/pr_labeler.yml (1 hunks)
  • Makefile (1 hunks)
  • go.mod (1 hunks)
  • gomod2nix.toml (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • .github/pr_labeler.yml
🚧 Files skipped from review as they are similar to previous changes (2)
  • Makefile
  • .github/issue_labeler.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (21)
  • GitHub Check: build
  • GitHub Check: Run golangci-lint
  • GitHub Check: gomod2nix
  • GitHub Check: build (ubuntu-latest)
  • GitHub Check: build (macos-latest)
  • GitHub Check: unittest
  • GitHub Check: build (macos-14)
  • GitHub Check: integration_tests (upgrade)
  • GitHub Check: integration_tests (gas)
  • GitHub Check: integration_tests (ibc_update_client)
  • GitHub Check: integration_tests (slow)
  • GitHub Check: integration_tests (ibc_rly_gas)
  • GitHub Check: integration_tests (ibc_rly_evm)
  • GitHub Check: integration_tests (unmarked)
  • GitHub Check: integration_tests (ica)
  • GitHub Check: integration_tests (gov)
  • GitHub Check: integration_tests (ibc)
  • GitHub Check: integration_tests (ibc_timeout)
  • GitHub Check: Socket Security: Pull Request Alerts
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: semgrep-cloud-platform/scan
🔇 Additional comments (2)
go.mod (1)

308-308: Verify Ethermint pseudo-version alignment, upstream commit, and go.sum

  • go.mod and gomod2nix.toml are both set to v0.6.1-0.20250819081101-9a03795ec96b (confirmed).
  • Please ensure the upstream repo crypto-org-chain/ethermint actually contains commit 9a03795ec96b.
  • Verify that go.sum includes entries for this pseudo-version (e.g.
    grep -E "github\.com/crypto-org-chain/ethermint v0.6.1-0.20250819081101-9a03795ec96b" go.sum
    ) and run go mod tidy to keep it clean.
  • Optionally, if there’s a matching tagged release, prefer using that instead of a pseudo-version for clearer provenance.
gomod2nix.toml (1)

317-318: LGTM: Ethermint version and sha256 updated in lockfile

The gomod2nix entry matches the go.mod replace bump and includes the updated sha256. This keeps Nix builds reproducible alongside the new pseudo-version.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • 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.
  • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • 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/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

@randy-cro randy-cro changed the title fix:lint and github workflow fix: lint and github workflow Aug 19, 2025
@codecov
Copy link

codecov bot commented Aug 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 35.79%. Comparing base (a3c2f70) to head (6832cb6).
⚠️ Report is 99 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #1849       +/-   ##
===========================================
+ Coverage   16.87%   35.79%   +18.91%     
===========================================
  Files          72      127       +55     
  Lines        6163    11812     +5649     
===========================================
+ Hits         1040     4228     +3188     
- Misses       5000     7161     +2161     
- Partials      123      423      +300     

see 73 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

Actionable comments posted: 2

🧹 Nitpick comments (5)
Makefile (1)

142-142: Optional: keep lint-fix output consistent with lint target.

Consider adding --path-prefix=./ (used in lint) so paths in diagnostics are consistent across both targets.

-	golangci-lint run --fix --issues-exit-code=0
+	golangci-lint run --fix --issues-exit-code=0 --path-prefix=./
.github/issue_labeler.yml (4)

68-75: Replace chain-maind with cronosd for CLI references.

This repo’s binary/CLI is cronosd, not chain-maind. Update the alias to avoid mislabeling issues.

 cli:
   - 'cli'
   - 'command'
-  - 'chain-maind'
+  - 'cronosd'
   - 'flag'
   - 'argument'
   - 'terminal'

98-105: Add CometBFT as a dependency keyword.

Cronos (Cosmos SDK v0.47+) typically uses CometBFT instead of Tendermint. Adding this term improves label accuracy for dependency-related issues.

 dependencies:
   - 'dependency'
   - 'dependencies'
   - 'go.mod'
   - 'update'
   - 'cosmos-sdk'
   - 'tendermint'
+  - 'cometbft'

106-113: Nit: add a trailing newline at EOF.

Many tools expect a newline at end of file; adding it avoids diffs and editor warnings.

   - 'ci'
   - 'github actions'
   - 'workflow'
+ 

1-113: Optional: reduce false positives with word boundaries/case-insensitive matching (if supported).

Several aliases (e.g., “client”, “chain”, “update”) are generic and may over-label issues. If your chosen action supports regex and flags like ignoreCase, prefer patterns with word boundaries and case-insensitive matching per label.

Example schema (adjust to your action’s format):

  • bug:
    • pattern: '(?i)\b(bug|error|crash|panic|exception|broken|fail|doesn''t work|not work)\b'
  • dependencies:
    • pattern: '(?i)\b(go.mod|dependency|dependencies|cosmos-sdk|cometbft|tendermint|update)\b'
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 3a4550c and a67e0e3.

📒 Files selected for processing (2)
  • .github/issue_labeler.yml (1 hunks)
  • Makefile (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/issue_labeler.yml

[error] 10-10: syntax error: expected , but found ''

(syntax)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (12)
  • GitHub Check: integration_tests (upgrade)
  • GitHub Check: integration_tests (ica)
  • GitHub Check: integration_tests (slow)
  • GitHub Check: integration_tests (gas)
  • GitHub Check: integration_tests (gov)
  • GitHub Check: integration_tests (ibc_update_client)
  • GitHub Check: integration_tests (ibc_rly_evm)
  • GitHub Check: integration_tests (unmarked)
  • GitHub Check: integration_tests (ibc_timeout)
  • GitHub Check: integration_tests (ibc_rly_gas)
  • GitHub Check: integration_tests (ibc)
  • GitHub Check: semgrep-cloud-platform/scan
🔇 Additional comments (2)
Makefile (1)

142-142: Fix removes the stray file creation from lint-fix.

Dropping --output.text.path resolves the prior misinterpretation where --issues-exit-code=0 was treated as a path and a random file was created. This aligns with the PR objective.

.github/issue_labeler.yml (1)

1-113: Issue labeler workflow and config path verified

The .github/workflows/issue_labeler.yml workflow uses github/[email protected] and correctly specifies
configuration-path: .github/issue_labeler.yml. No further changes are required.

@thomas-nguy thomas-nguy changed the title fix: lint and github workflow ci: lint and github workflow Aug 19, 2025
@randy-cro randy-cro enabled auto-merge August 19, 2025 08:14
@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgolang/​github.com/​crypto-org-chain/​ethermint@​v0.6.1-0.20250818090852-991f14f190f1 ⏵ v0.6.1-0.20250819081101-9a03795ec96b75 +110010010070

View full report

@randy-cro randy-cro added this pull request to the merge queue Aug 19, 2025
Merged via the queue into crypto-org-chain:main with commit cde48ef Aug 19, 2025
50 checks passed
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.

2 participants