Repository navigation
ci(cd): support Frontier release packaging and E2E version checks - #5189
Conversation
There was a problem hiding this comment.
Code Review
This pull request adds support for Frontier release versions across the end-to-end testing scripts and the Docker packaging configuration. It updates version regex patterns to allow optional Frontier suffixes, implements fallback version verification for older branches that lack native Frontier test support, and sanitizes the RPM version string in the Dockerfile to avoid build errors. There are no review comments, and I have no feedback to provide.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5189 +/- ##
==========================================
- Coverage 85.09% 0 -85.10%
==========================================
Files 179 0 -179
Lines 19776 0 -19776
==========================================
- Hits 16828 0 -16828
+ Misses 2947 0 -2947
+ Partials 1 0 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Hi @anushka567, @meet2mky, your feedback is needed to move this pull request forward. This automated reminder was triggered because there has been no activity for over 24 hours. Please provide your input when you have a moment. Thank you! |
1 similar comment
|
Hi @anushka567, @meet2mky, your feedback is needed to move this pull request forward. This automated reminder was triggered because there has been no activity for over 24 hours. Please provide your input when you have a moment. Thank you! |
anushka567
left a comment
There was a problem hiding this comment.
Relying on @PranjalC100 's review
…ulti-project Louhi pipelines Squashed and rebased onto master (includes the Frontier packaging changes from #5009/#5189). - e2e_test.sh / install_test.sh: read RELEASE_VERSION and COMMIT_HASH from VM metadata (set by the Louhi stages), falling back to version-detail/details.txt in the bucket when metadata is absent. - package_gcsfuse.sh: keep master's Dockerfile-from-master build; upload to v<version>/ (versions already prefixed with 'v' are kept as-is) and prefix package versions that don't start with a digit with 0.0.0- so dpkg-deb accepts them. - improved_e2e_test.sh: accept X.Y.Z, X.Y.Z-frontier-<id>.<rev>, and the CD pipelines' X.Y.Z-dev / X.Y.Z-nightly versions (YYYY.MM.DD).
…ulti-project Louhi pipelines Squashed and rebased onto master (includes the Frontier packaging changes from #5009/#5189). - e2e_test.sh / install_test.sh: read RELEASE_VERSION and COMMIT_HASH from VM metadata (set by the Louhi stages), falling back to version-detail/details.txt in the bucket when metadata is absent. - package_gcsfuse.sh: keep master's Dockerfile-from-master build; upload to v<version>/ (versions already prefixed with 'v' are kept as-is) and prefix package versions that don't start with a digit with 0.0.0- so dpkg-deb accepts them. - improved_e2e_test.sh: accept X.Y.Z, X.Y.Z-frontier-<id>.<rev>, and the CD pipelines' X.Y.Z-dev / X.Y.Z-nightly versions (YYYY.MM.DD).
…ulti-project Louhi pipelines Squashed and rebased onto master (includes the Frontier packaging changes from #5009/#5189). - e2e_test.sh / install_test.sh: read RELEASE_VERSION and COMMIT_HASH from VM metadata (set by the Louhi stages), falling back to version-detail/details.txt in the bucket when metadata is absent. - package_gcsfuse.sh: keep master's Dockerfile-from-master build; upload to v<version>/ (versions already prefixed with 'v' are kept as-is) and prefix package versions that don't start with a digit with 0.0.0- so dpkg-deb accepts them. - improved_e2e_test.sh: accept X.Y.Z, X.Y.Z-frontier-<id>.<rev>, and the CD pipelines' X.Y.Z-dev / X.Y.Z-nightly versions (YYYY.MM.DD). - install_test.sh: enhance OS detection using /etc/os-release and eliminate deprecated apt-key syntax errors.
Description
Support customer-isolated Frontier release versions (
X.Y.Z-frontier-<id>.<revision>, e.g.,3.8.4-frontier-a.0,3.8.4-frontier-a.1, built from Frontier branchv<BasePatch>-frontier-<id>) in the GCSFuse CD packaging and E2E qualification scripts:tools/package_gcsfuse_docker/Dockerfile: Sanitize-to_in-vpassed tofpm -t rpm(sincerpmbuildrejects hyphens in RPMVersion:headers) while explicitly passing-aand-p "gcsfuse-${GCSFUSE_VERSION}-1.${RPM_ARCH}.rpm"so output filenames in/packages/remain unchanged for downstream signing and E2E stages.tools/cd_scripts/improved_e2e_test.sh: Update--release-versionregex validation to accept-frontier-[a-z0-9]+\.[0-9]+suffixes (requiring the mandatory.<revision>suffix), and add a fallback when testing older Frontier fork bases whose checked-outrelease_version_test.gopredates-frontier-support (verifyinggcsfuse --versiondirectly post-run).tools/cd_scripts/e2e_test.sh: Add the corresponding legacy< 3.9.0Frontier fallback to verifygcsfuse --versiondirectly against-frontier-[a-z0-9]+\.[0-9]+and skip the legacyrelease_versiontest package when the checked-out commit predates-frontier-support, and definegather_test_logs/log_based_on_exit_statusbeforetrap cleanup EXIT.tools/integration_tests/release_version/release_version_test.go: Allow optional(?:-frontier-[a-z0-9]+\.[0-9]+)?suffixes inTestReleaseVersion.Link to the issue in case of a bug fix.
b/578341686
Testing details
docker buildoftools/package_gcsfuse_docker/Dockerfilefor both mainstream (3.11.0) and Frontier (3.8.4-frontier-a.0) versions, confirming.deb(Version: 3.8.4-frontier-a.0) and.rpm(Version: 3.8.4_frontier_a.0, filenamegcsfuse-3.8.4-frontier-a.0-1.x86_64.rpm) headers and filenames; verifiedbash -nand regex checks onimproved_e2e_test.shande2e_test.sh.go build ./...,go vet ./..., andgo test ./tools/build_gcsfuse/...passed.go test -v ./tools/integration_tests/release_version(--integrationTest --testInstalledPackage=true) against3.11.0,3.8.4-frontier-a.0, and3.8.4-frontier-a.1outputs.Any backward incompatible change? If so, please explain.
N/A