ci: optimize CI/CD infrastructure and upgrade dependencies#8816
Open
ci: optimize CI/CD infrastructure and upgrade dependencies#8816
Conversation
- Align golangci-lint version to v1.63.4 across CI and Makefile - Upgrade Go from 1.20 (EOL) to 1.22 in go.mod, backend Dockerfile, and lake-builder Dockerfile - Upgrade GitHub Actions to latest major versions: checkout v4, cache v4, docker/build-push-action v6, setup-qemu v3, setup-buildx v3, login-action v3, setup-node v4, stale v9, super-linter v7, github-script v7 - Fix config-ui Dockerfile layer cache by copying package.json before yarn install - Consolidate backend Dockerfile apt-get layers and add Go module cache mount - Add backend/.dockerignore for smaller build context - Add concurrency control to 11 PR-triggered workflows - Extract free-disk-space composite action to reduce duplication in build.yml
- Fix non-constant format string warnings in migration linter and logruslog (govet stricter in golangci-lint v1.63.4) - Add GITHUB_TOKEN to yaml-lint workflow (required by super-linter v7)
super-linter v7 requires full git history to diff changed files.
super-linter v7 enables more linters by default (CHECKOV, JSCPD, etc.). Explicitly set VALIDATE_YAML: true so only YAML linting runs, matching the original v4 behavior.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
v1.53.3→v1.63.4to match Makefile, eliminating local/CI lint discrepancies1.20(EOL since Aug 2023) →1.22in go.mod, backend Dockerfile, and lake-builder DockerfileDetails
Files changed (21 files: 19 modified, 2 new)
.github/workflows/*.yml.github/actions/free-disk-space/action.yml(NEW)backend/Dockerfile,config-ui/Dockerfile,devops/docker/lake-builder/Dockerfilebackend/go.modbackend/.dockerignore(NEW)Note
The
mericodev/lake-builder:latestCI image needs to be rebuilt with Go 1.22 (triggerbuild-builder.ymlwith abuilder-*tag) for the golangci-lint v1.63.4 upgrade to take effect in CI.Test plan
go build ./server/...andgo build ./core/...pass🤖 Generated with Claude Code