Skip to content

perf(ci): Remove golangci-lint warmup pass#19900

Open
AlexVulaj wants to merge 1 commit intomasterfrom
AlexVulaj/remove-golangci-lint-warmup
Open

perf(ci): Remove golangci-lint warmup pass#19900
AlexVulaj wants to merge 1 commit intomasterfrom
AlexVulaj/remove-golangci-lint-warmup

Conversation

@AlexVulaj
Copy link
Copy Markdown
Contributor

Description

This PR removes the golangci-lint warmup pass that was previously run in CI before the main linting passes. The warmup pass (golangci-lint run --tests=false) was originally added in ROX-17014 to warm up the cache and reduce the runtime of subsequent linting passes to about 5 minutes each.

With recent CI infrastructure improvements (particularly the removal of containers from the go jobs in commit f0fa0ff), the warmup pass may no longer provide meaningful performance benefits and adds unnecessary complexity to the linting workflow. Removing it simplifies the CI linting process while maintaining the same code quality checks.

The change removes 4 lines from the Makefile that executed the warmup pass with limited scope (no tests). All other linting passes remain unchanged, including the standard pass with no tags (which now includes the unused linter) and the release tags pass.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

CI will validate that golangci-lint still runs successfully without the warmup pass - will monitor CI execution times to ensure no significant performance regression. The linting checks themselves remain identical, just without the initial warmup run.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.58%. Comparing base (3618d21) to head (14014f0).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #19900   +/-   ##
=======================================
  Coverage   49.58%   49.58%           
=======================================
  Files        2766     2766           
  Lines      208535   208535           
=======================================
  Hits       103409   103409           
  Misses      97448    97448           
  Partials     7678     7678           
Flag Coverage Δ
go-unit-tests 49.58% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

🚀 Build Images Ready

Images are ready for commit 14014f0. To use with deploy scripts:

export MAIN_IMAGE_TAG=4.11.x-598-g14014f0902

@davdhacs
Copy link
Copy Markdown
Contributor

davdhacs commented Apr 8, 2026

Example runs from earlier today to compare with:

a PR took 27m18s:
warmup ~12m (15:17:38 -> 15:29:36)
https://github.com/stackrox/stackrox/actions/runs/24143123636/job/70449752637#step:10:57

on master took 24m2s:
warmup ~11m (15:17:49 -> 15:28:54)
https://github.com/stackrox/stackrox/actions/runs/24143123636/job/70449752637#step:10:57

Copy link
Copy Markdown
Contributor

@davdhacs davdhacs left a comment

Choose a reason for hiding this comment

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

22m 44s
proves saving ~5 minutes 🚀

@AlexVulaj AlexVulaj changed the title Remove golangci-lint warmup pass perf(ci): Remove golangci-lint warmup pass Apr 8, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 8, 2026

@AlexVulaj: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ocp-4-12-operator-e2e-tests 14014f0 link false /test ocp-4-12-operator-e2e-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@AlexVulaj AlexVulaj enabled auto-merge (squash) April 8, 2026 17:11
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.

2 participants