Skip to content

ci(cd): support Frontier release packaging and E2E version checks - #5189

Merged
kislaykishore merged 4 commits into
masterfrom
frontier-cd-support
Oct 30, 2026
Merged

kislaykishore merged 4 commits into
masterfrom
frontier-cd-support

Conversation

@kislaykishore

@kislaykishore kislaykishore commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

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 branch v<BasePatch>-frontier-<id>) in the GCSFuse CD packaging and E2E qualification scripts:

  • tools/package_gcsfuse_docker/Dockerfile: Sanitize - to _ in -v passed to fpm -t rpm (since rpmbuild rejects hyphens in RPM Version: headers) while explicitly passing -a and -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-version regex 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-out release_version_test.go predates -frontier- support (verifying gcsfuse --version directly post-run).
  • tools/cd_scripts/e2e_test.sh: Add the corresponding legacy < 3.9.0 Frontier fallback to verify gcsfuse --version directly against -frontier-[a-z0-9]+\.[0-9]+ and skip the legacy release_version test package when the checked-out commit predates -frontier- support, and define gather_test_logs / log_based_on_exit_status before trap cleanup EXIT.
  • tools/integration_tests/release_version/release_version_test.go: Allow optional (?:-frontier-[a-z0-9]+\.[0-9]+)? suffixes in TestReleaseVersion.

Link to the issue in case of a bug fix.

b/578341686

Testing details

  1. Manual - Verified docker build of tools/package_gcsfuse_docker/Dockerfile for 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, filename gcsfuse-3.8.4-frontier-a.0-1.x86_64.rpm) headers and filenames; verified bash -n and regex checks on improved_e2e_test.sh and e2e_test.sh.
  2. Unit tests - go build ./..., go vet ./..., and go test ./tools/build_gcsfuse/... passed.
  3. Integration tests - Executed go test -v ./tools/integration_tests/release_version (--integrationTest --testInstalledPackage=true) against 3.11.0, 3.8.4-frontier-a.0, and 3.8.4-frontier-a.1 outputs.

Any backward incompatible change? If so, please explain.

N/A

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@kislaykishore
kislaykishore marked this pull request as ready for review October 28, 2026 03:49
@kislaykishore
kislaykishore requested review from a team, anushka567 and meet2mky as code owners October 28, 2026 03:49
@github-actions github-actions Bot added the remind-reviewers Auto remind reviewers in attention set for review post 24hrs of inactivity on PR. label Oct 28, 2026
@codecov

codecov Bot commented Oct 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (57e2043) to head (6840c17).
⚠️ Report is 1 commits behind head on master.

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     
Flag Coverage Δ
unittests ?

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
@github-actions

Copy link
Copy Markdown

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
@github-actions

Copy link
Copy Markdown

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 anushka567 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Relying on @PranjalC100 's review

@kislaykishore
kislaykishore merged commit db4baeb into master Oct 30, 2026
18 checks passed
@kislaykishore
kislaykishore deleted the frontier-cd-support branch October 30, 2026 07:14
kislaykishore added a commit that referenced this pull request Oct 30, 2026
anushka567 added a commit that referenced this pull request Nov 4, 2026
…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).
anushka567 added a commit that referenced this pull request Nov 4, 2026
…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).
anushka567 added a commit that referenced this pull request Nov 9, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

remind-reviewers Auto remind reviewers in attention set for review post 24hrs of inactivity on PR.

3 participants