warren830 opened a new pull request, #8816: URL: https://github.com/apache/incubator-devlake/pull/8816
## Summary - **golangci-lint alignment**: CI version `v1.53.3` → `v1.63.4` to match Makefile, eliminating local/CI lint discrepancies - **Go version upgrade**: `1.20` (EOL since Aug 2023) → `1.22` in go.mod, backend Dockerfile, and lake-builder Dockerfile - **GitHub Actions upgrades**: All actions bumped to latest major (checkout v4, cache v4, build-push-action v6, setup-qemu/buildx v3, login-action v3, setup-node v4, stale v9, super-linter v7, github-script v7) - **Docker optimizations**: Fixed config-ui layer cache (COPY package.json before yarn install), consolidated backend apt-get layers with cache cleanup, added Go module cache mount, created backend/.dockerignore - **CI waste reduction**: Added concurrency control to 11 workflows (auto-cancels superseded PR runs), extracted free-disk-space composite action (deduplicated 5 copies in build.yml) ## Details ### Files changed (21 files: 19 modified, 2 new) | Category | Files | |----------|-------| | Workflows | All 15 `.github/workflows/*.yml` | | Composite action | `.github/actions/free-disk-space/action.yml` (NEW) | | Dockerfiles | `backend/Dockerfile`, `config-ui/Dockerfile`, `devops/docker/lake-builder/Dockerfile` | | Go | `backend/go.mod` | | Docker ignore | `backend/.dockerignore` (NEW) | ### Note The `mericodev/lake-builder:latest` CI image needs to be rebuilt with Go 1.22 (trigger `build-builder.yml` with a `builder-*` tag) for the golangci-lint v1.63.4 upgrade to take effect in CI. ## Test plan - [x] YAML syntax validation — all 17 YAML files parse cleanly - [x] Go compilation — `go build ./server/...` and `go build ./core/...` pass - [x] Dockerfile pattern verification — layer order, cache mounts, apt cleanup all correct - [x] Action version audit — no stale v2/v3 actions remaining - [x] Concurrency block audit — 11/11 target workflows covered - [x] Composite action ordering — checkout always precedes local action reference - [ ] Full CI run on this branch - [ ] Rebuild lake-builder image with Go 1.22 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
