Skip to content

ci: cache buf modules and install buf and golangci-lint from release binaries - #364

Open
baktun14 wants to merge 1 commit into
mainfrom
ci/buf-cache-release-binaries
Open

baktun14 wants to merge 1 commit into
mainfrom
ci/buf-cache-release-binaries

Conversation

@baktun14

Copy link
Copy Markdown
Contributor

📝 Description

Caches buf modules in the jobs that run buf, and installs buf and golangci-lint from checksum-verified release binaries instead of compiling them in every job. Split out of #363, which now only moves the jobs to GitHub-hosted runners.

🔧 Purpose of the Change

  • Other: CI reliability

📌 Related Issues

✅ Checklist

  • I've updated relevant documentation
  • Code follows Akash Network's style guide
  • I've added/updated relevant unit tests
  • Dependencies have been properly updated
  • I agree and adhered to the Contribution Guidelines

📎 Notes for Reviewers

…binaries

Every job that runs buf starts with a cold module cache and pulls the
buf.lock deps from buf.build, which sometimes rejects anonymous requests
from shared runner IPs with 403. On top of that, buf and golangci-lint
were compiled with go install in every job.

- cache the buf module cache, keyed on buf.lock, in the proto lint,
  breakage and coverage jobs
- install buf and golangci-lint from their release binaries, checked
  against the sha256 list each release publishes
@baktun14
baktun14 requested a review from a team as a code owner September 28, 2026 12:48
@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

  • Run on-demand review

This review includes 4 billable files and costs up to $1.00.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 59 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 77 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: akash-network/chain-sdk/.coderabbit.yaml

Review profile: CHILL

Plan: Essentials

Run ID: cddde4db-76ae-489b-989b-1fcc0fc04e3a

📥 Commits

Reviewing files that changed from the base of the PR and between ace99a2 and 9b2e703.

📒 Files selected for processing (4)
  • .github/workflows/breakage.yaml
  • .github/workflows/lint.yaml
  • .github/workflows/tests.yaml
  • make/setup-cache.mk

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

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