Skip to content

Fix/ci pipeline issues#115

Open
anujmindfire wants to merge 2 commits into
developmentfrom
fix/ci-pipeline-issues
Open

Fix/ci pipeline issues#115
anujmindfire wants to merge 2 commits into
developmentfrom
fix/ci-pipeline-issues

Conversation

@anujmindfire

@anujmindfire anujmindfire commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Pull Request Title

Provide a brief title that describes your changes (e.g., "Add feature X" or "Fix issue #123").


Description

What does this PR do?

Provide a concise summary of your changes and what issue or feature they address.

Related Issues

Link any related issue(s) with references to help reviewers understand the context.

  • Closes #ISSUE_NUMBER (if applicable)

Type of Change

  • 🐛 Bug fix
  • 🚀 New feature
  • 📄 Documentation update
  • ⚙️ Code refactoring
  • 🔧 Configuration or CI/CD change
  • 🧹 Maintenance or dependency update

Checklist

Please ensure the following have been completed before submitting:

  • I have formatted my code using gofumpt.
  • I have managed imports using goimports or gci.
  • I have run linter using golangci-lint.
  • I have run tests using go test ./....
  • I have updated the documentation as needed.
  • I have added or updated tests for the changes in this PR.

Screenshots (if applicable)

Provide screenshots or GIFs if this PR changes the UI or has visible results.

Additional Context

Include any other context, references, or information that may be useful for the reviewers.


Thank you for your contribution!

We appreciate your efforts in making this project better.

  • Package structure or API changes: None.
  • Bug fixes: Resolved CI/release pipeline compatibility issues.
  • Tooling / config changes:
    • Updated GoReleaser to use --snapshot with --clean.
    • Removed the output.formats override from golangci.yml for compatibility with golangci-lint v1 and v2.
  • Documentation updates: None.

Breaking changes

None.

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

The release workflow now runs GoReleaser in snapshot mode, and the linter configuration removes its colored line-number output override.

Changes

Tooling updates

Layer / File(s) Summary
Release snapshot execution
.github/workflows/release.yml
The GoReleaser command now includes --snapshot while retaining --clean.
Lint output configuration
.golangci.yml
The colored-line-number output formatting override was removed; other linter settings remain unchanged.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested labels: tooling, bug

Suggested reviewers: anandmindfire, invalid-email-address

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is related to the CI changes, but it is too generic and does not identify the main fixes. Use a more specific title like "Fix golangci-lint v2 compatibility and GoReleaser snapshot CI".
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ci-pipeline-issues

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

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/release.yml:
- Line 84: Update the release workflow’s GoReleaser invocation to remove the
--snapshot flag, leaving goreleaser release --clean so the release job publishes
binaries and checksums.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 67918644-d0f1-406f-8196-b451f1c23811

📥 Commits

Reviewing files that changed from the base of the PR and between fefae4e and 277a08d.

📒 Files selected for processing (2)
  • .github/workflows/release.yml
  • .golangci.yml
💤 Files with no reviewable changes (1)
  • .golangci.yml
📜 Review details
🧰 Additional context used
📓 Path-based instructions (2)
.github/workflows/*.yml

📄 CodeRabbit inference engine (README.md)

CI must build Go code, run race-detected tests and golangci-lint, check formatting, verify GoReleaser configuration, perform cross-platform build checks, and validate the npm package.

Files:

  • .github/workflows/release.yml
.github/workflows/release.yml

📄 CodeRabbit inference engine (README.md)

Trigger releases when pushing Git tags matching v*; build binaries with GoReleaser, generate SHA256 checksums, verify binaries, publish to npm, and upload release artifacts.

Files:

  • .github/workflows/release.yml


- name: Run GoReleaser
run: goreleaser release --clean
run: goreleaser release --clean --snapshot

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== release workflow ==\n'
wc -l .github/workflows/release.yml
sed -n '1,180p' .github/workflows/release.yml

printf '\n== ci workflow ==\n'
wc -l .github/workflows/ci.yml
sed -n '1,220p' .github/workflows/ci.yml

Repository: mindfiredigital/DeepScanBot

Length of output: 7238


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== goreleaser references ==\n'
rg -n --hidden --glob '.github/workflows/*.yml' 'goreleaser|snapshot|release --clean' .github/workflows

printf '\n== release workflow around the release step ==\n'
nl -ba .github/workflows/release.yml | sed -n '70,100p'

Repository: mindfiredigital/DeepScanBot

Length of output: 812


🌐 Web query:

GoReleaser snapshot mode release --snapshot does not publish artifacts documentation

💡 Result:

GoReleaser's snapshot mode (triggered by the --snapshot flag) is specifically designed for local builds or CI validation and does not publish artifacts [1]. By design, when you run GoReleaser with --snapshot, it skips the publishing step and only generates artifacts locally within the dist directory [1][2]. This behavior is intentional; the tool maintains a strict separation between snapshot builds (for validation) and full release builds (which include publishing) [1][3]. If you require the ability to publish builds that are not full releases, GoReleaser offers alternative solutions: 1. Nightly Builds (GoReleaser Pro): For use cases requiring automated publishing of development builds (such as pushing Docker images or binaries on every commit), GoReleaser Pro provides a --nightly flag designed to handle these scenarios [3][4][5]. 2. Manual Workflows: Because snapshot mode skips publishing, some users implement manual CI steps (e.g., custom shell scripts or secondary GitHub Actions) to manually upload or push artifacts generated in the dist folder to their desired destinations (such as S3 buckets or Docker registries) [5]. For more information on the intended use of snapshots, you can refer to the official GoReleaser documentation [1].

Citations:


Remove --snapshot from the release job. Snapshot mode is fine in .github/workflows/ci.yml for validation, but here it only writes to dist/ and skips publishing, so the GitHub release can go out without binaries/checksums. Use goreleaser release --clean in this workflow.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/release.yml at line 84, Update the release workflow’s
GoReleaser invocation to remove the --snapshot flag, leaving goreleaser release
--clean so the release job publishes binaries and checksums.

Source: Coding guidelines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant