-
Notifications
You must be signed in to change notification settings - Fork 56
ci: switch builds from docker compose to mise #702
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
Open
lox
wants to merge
12
commits into
main
Choose a base branch
from
codex/mise-buildkite-cache
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0127f00
ci: switch Buildkite builds to mise
lox c7c06df
ci: call lint tools directly in Buildkite
lox a697d80
ci: source mise environment in Buildkite steps
lox a145530
ci: use mise plugin v1.1.1
lox b376e2b
ci: use absolute cache paths in Buildkite
lox 3acff56
ci: isolate tests from hosted agent env
lox f71da3a
ci: move Buildkite cache setup into pre-command hook
lox 8ecd246
ci: document test env cleanup in hook
lox a634697
ci: unset hosted env in test step
lox 98ad59e
ci: manage go-cover-treemap with mise
lox 477bda3
ci: keep GOOS out of mise install
lox 01b6062
ci: avoid flaky mise API verification
lox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| checkout_path="${BUILDKITE_BUILD_CHECKOUT_PATH:-$(pwd)}" | ||
| cache_root="${checkout_path}/.buildkite/cache-volume" | ||
|
|
||
| mkdir -p \ | ||
| "${cache_root}/go/build" \ | ||
| "${cache_root}/go/pkg/mod" \ | ||
| "${cache_root}/golangci-lint" | ||
|
|
||
| export GOCACHE="${cache_root}/go/build" | ||
| export GOMODCACHE="${cache_root}/go/pkg/mod" | ||
| export GOLANGCI_LINT_CACHE="${cache_root}/golangci-lint" | ||
|
|
||
| # CI pins tool versions in mise.toml/mise.lock, but the go: backend used for | ||
| # go-cover-treemap does not support locked-mode URLs. Skip the GitHub API-backed | ||
| # attestation/SLSA checks instead so reruns do not fail on unauthenticated rate | ||
| # limits inside the mise plugin. | ||
| export MISE_AQUA_GITHUB_ATTESTATIONS=false | ||
| export MISE_AQUA_SLSA=false | ||
| export MISE_GITHUB_ATTESTATIONS=false | ||
| export MISE_GITHUB_GITHUB_ATTESTATIONS=false | ||
| export MISE_GITHUB_SLSA=false | ||
| export MISE_SLSA=false | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| [[tools."aqua:mvdan/gofumpt"]] | ||
| version = "0.9.2" | ||
| backend = "aqua:mvdan/gofumpt" | ||
| "platforms.linux-x64" = { checksum = "sha256:72cf61b12fef91eab6df6db4a4284f30616b5ead330112e28a1fa1cb15e57339", url = "https://github.com/mvdan/gofumpt/releases/download/v0.9.2/gofumpt_v0.9.2_linux_amd64"} | ||
| "platforms.macos-arm64" = { checksum = "sha256:c241fb742599a6cb0563d7377f59def65d451b23dd718dbc6ddf4ab5e695e8f1", url = "https://github.com/mvdan/gofumpt/releases/download/v0.9.2/gofumpt_v0.9.2_darwin_arm64"} | ||
|
|
||
| [[tools."github:goreleaser/goreleaser-pro"]] | ||
| version = "2.14.3" | ||
| backend = "github:goreleaser/goreleaser-pro" | ||
| "platforms.linux-x64" = { checksum = "sha256:a6a7ba86950db98b1e7d18ac189bf43237645f9ef5ca89a66a56308c45f29b73", url = "https://github.com/goreleaser/goreleaser-pro/releases/download/v2.14.3/goreleaser-pro_Linux_x86_64.tar.gz", url_api = "https://api.github.com/repos/goreleaser/goreleaser-pro/releases/assets/370146679"} | ||
| "platforms.macos-arm64" = { checksum = "sha256:c616cb4dd73c1d49f41dd23160a7b5a8092e45e40735f98fc02173611a8dfcbb", url = "https://github.com/goreleaser/goreleaser-pro/releases/download/v2.14.3/goreleaser-pro_Darwin_arm64.tar.gz", url_api = "https://api.github.com/repos/goreleaser/goreleaser-pro/releases/assets/370146635"} | ||
|
|
||
| [[tools.go]] | ||
| version = "1.26.1" | ||
| backend = "core:go" | ||
| "platforms.linux-x64" = { checksum = "sha256:031f088e5d955bab8657ede27ad4e3bc5b7c1ba281f05f245bcc304f327c987a", url = "https://dl.google.com/go/go1.26.1.linux-amd64.tar.gz"} | ||
| "platforms.macos-arm64" = { checksum = "sha256:353df43a7811ce284c8938b5f3c7df40b7bfb6f56cb165b150bc40b5e2dd541f", url = "https://dl.google.com/go/go1.26.1.darwin-arm64.tar.gz"} | ||
|
|
||
| [[tools."go:github.com/nikolaydubina/go-cover-treemap"]] | ||
| version = "1.5.1" | ||
| backend = "go:github.com/nikolaydubina/go-cover-treemap" | ||
|
|
||
| [[tools.golangci-lint]] | ||
| version = "2.11.3" | ||
| backend = "aqua:golangci/golangci-lint" | ||
| "platforms.linux-x64" = { checksum = "sha256:87bb8cddbcc825d5778b64e8a91b46c0526b247f4e2f2904dea74ec7450475d1", url = "https://github.com/golangci/golangci-lint/releases/download/v2.11.3/golangci-lint-2.11.3-linux-amd64.tar.gz"} | ||
| "platforms.macos-arm64" = { checksum = "sha256:30ee39979c516b9d1adca289a3f93429d130c4c0fda5e57d637850894221f6cc", url = "https://github.com/golangci/golangci-lint/releases/download/v2.11.3/golangci-lint-2.11.3-darwin-arm64.tar.gz"} | ||
|
|
||
| [[tools.ko]] | ||
| version = "0.18.1" | ||
| backend = "aqua:ko-build/ko" | ||
| "platforms.linux-x64" = { checksum = "sha256:048ab11818089a43b7b74bc554494a79a3fd0d9822c061142e5cd3cf8b30cb27", url = "https://github.com/ko-build/ko/releases/download/v0.18.1/ko_0.18.1_Linux_x86_64.tar.gz"} | ||
| "platforms.macos-arm64" = { checksum = "sha256:752a639e0fbc013a35a43974b5ed87e7008bc2aee4952dfd2cc19f0013205492", url = "https://github.com/ko-build/ko/releases/download/v0.18.1/ko_0.18.1_Darwin_arm64.tar.gz"} | ||
|
|
||
| [[tools.lefthook]] | ||
| version = "2.1.4" | ||
| backend = "aqua:evilmartians/lefthook" | ||
| "platforms.linux-x64" = { checksum = "sha256:991a11fb98c853dbecf7de3fe7f4b5648872f4279ac2b50ef3302f0a058c99bd", url = "https://github.com/evilmartians/lefthook/releases/download/v2.1.4/lefthook_2.1.4_Linux_x86_64.gz"} | ||
| "platforms.macos-arm64" = { checksum = "sha256:41fa330710344f66683edb2ee19dfd531e9469bebf7c89ef8e201263565c12ad", url = "https://github.com/evilmartians/lefthook/releases/download/v2.1.4/lefthook_2.1.4_MacOS_arm64.gz"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we provide a readonly MISE_GITHUB_TOKEN with only public repo access to bypass the rate limits?