Skip to content

perf(ci): Skip generated/mock packages in roxvet#19926

Open
AlexVulaj wants to merge 3 commits intomasterfrom
AlexVulaj/roxvet-skip-generated
Open

perf(ci): Skip generated/mock packages in roxvet#19926
AlexVulaj wants to merge 3 commits intomasterfrom
AlexVulaj/roxvet-skip-generated

Conversation

@AlexVulaj
Copy link
Copy Markdown
Contributor

@AlexVulaj AlexVulaj commented Apr 9, 2026

Description

Updated roxvet to skip analyzing code in generated/ directories and mocks/ packages. These directories contain auto-generated code from protobuf definitions and GoMock mocks. The check-generated-files job in the Style workflow already ensures generated code stays up to date by running make proto-generated-srcs and make go-generated-srcs, so skipping roxvet analysis on these files doesn't reduce coverage.

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

Verified that generated/mock packages are excluded from roxvet analysis while maintaining test coverage. The check-generated-files job in the Style workflow continues to validate these files by regenerating them and checking for diffs. CI run showed roxvet execution time reduced from ~12.5 minutes to ~5.5 minutes, saving ~7 minutes per workflow run.

@AlexVulaj AlexVulaj changed the title Skip generated/mock packages in roxvet perf(ci): Skip generated/mock packages in roxvet Apr 9, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.55%. Comparing base (386b510) to head (53ffa80).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #19926   +/-   ##
=======================================
  Coverage   49.55%   49.55%           
=======================================
  Files        2760     2760           
  Lines      208065   208065           
=======================================
  Hits       103113   103113           
  Misses      97311    97311           
  Partials     7641     7641           
Flag Coverage Δ
go-unit-tests 49.55% <ø> (ø)

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 9, 2026

🚀 Build Images Ready

Images are ready for commit 53ffa80. To use with deploy scripts:

export MAIN_IMAGE_TAG=4.11.x-612-g53ffa8021c

@AlexVulaj
Copy link
Copy Markdown
Contributor Author

/retest

@AlexVulaj AlexVulaj enabled auto-merge (squash) April 9, 2026 20:10
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.

Nice!

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 9, 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/gke-nongroovy-e2e-tests 53ffa80 link true /test gke-nongroovy-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.

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