Title: chore: add VERSION file with base version tag by davdhacs · Pull Request #19421 · stackrox/stackrox · GitHub
Open Graph Title: chore: add VERSION file with base version tag by davdhacs · Pull Request #19421 · stackrox/stackrox
X Title: chore: add VERSION file with base version tag by davdhacs · Pull Request #19421 · stackrox/stackrox
Description: Description Add a VERSION file containing the base version tag (4.11.x), following the same pattern as COLLECTOR_VERSION, SCANNER_VERSION, and FACT_VERSION. Changes VERSION — new file containing 4.11.x make/env.mk — make tag falls back to VERSION when git describe fails (enables shallow clones, .git-less builds) start-release.yml — verifies VERSION matches the release being created, updates VERSION on master to the next minor release Release automation The start-release workflow: Verifies the VERSION file matches the release (e.g. releasing 4.11.0 requires VERSION to contain 4.11.x). Fails early if they don't match. Updates VERSION on master to the next minor release (e.g. 4.12.x) after tagging. The release branch inherits the correct VERSION naturally from the branching point. Why This file is the foundation for enabling Go build and test caches across commits. Go's cache keys include -X ldflags; the per-commit MainVersion from git describe invalidates both the link cache (re-links all binaries) and test cache (re-runs all tests) on every commit. With a VERSION file, companion changes to go-tool.sh can use the stable base tag for test builds and linking, while release binaries still get the full git describe version. Measured impact (with companion go-tool.sh changes) Job Today With cache enabled Speedup go unit tests 45m 14m 3.3x go-postgres 35m 4m 8.7x sensor-integration 21m 5m 4x Build step (link cache) 41s ~21s 2x Test cache hit rate: 92% (1942/2108 packages). Data from PR #19404 which tested all changes together. Also enables Shallow clones (make tag falls back to VERSION when git describe fails) Faster status.sh (read file vs make tag overhead) Partially generated by AI.
Open Graph Description: Description Add a VERSION file containing the base version tag (4.11.x), following the same pattern as COLLECTOR_VERSION, SCANNER_VERSION, and FACT_VERSION. Changes VERSION — new file containing 4...
X Description: Description Add a VERSION file containing the base version tag (4.11.x), following the same pattern as COLLECTOR_VERSION, SCANNER_VERSION, and FACT_VERSION. Changes VERSION — new file containing 4...
Opengraph URL: https://github.com/stackrox/stackrox/pull/19421
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:511fb883-2780-ab17-918d-c6b1692afc59 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C088:352AFE:C22618:1046801:6A4D46C9 |
| html-safe-nonce | 0eb3b737fa232c7eb0a8f73186da5fb0844d199aeb5f339a042587daa4a4e976 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDg4OjM1MkFGRTpDMjI2MTg6MTA0NjgwMTo2QTRENDZDOSIsInZpc2l0b3JfaWQiOiI3NjczNjY0OTg4MzIyMjg1MjU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 94a2dc88e1b51ce62c08a0a513e9955ad90ac5c216c998b310e6c1bd346a9ca4 |
| hovercard-subject-tag | pull_request:3396063190 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/stackrox/stackrox/pull/19421/files |
| twitter:image | https://avatars.githubusercontent.com/u/105243888?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/105243888?s=400&v=4 |
| og:image:alt | Description Add a VERSION file containing the base version tag (4.11.x), following the same pattern as COLLECTOR_VERSION, SCANNER_VERSION, and FACT_VERSION. Changes VERSION — new file containing 4... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/stackrox/stackrox git https://github.com/stackrox/stackrox.git |
| octolytics-dimension-user_id | 40638982 |
| octolytics-dimension-user_login | stackrox |
| octolytics-dimension-repository_id | 434017296 |
| octolytics-dimension-repository_nwo | stackrox/stackrox |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 434017296 |
| octolytics-dimension-repository_network_root_nwo | stackrox/stackrox |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width