Packaging refactor + Rpm parameters fix#1191
Conversation
|
augment review |
🤖 Augment PR SummarySummary: Refactors the zopen build workflow to separate installation, packaging, OCI publishing, and activation into clearer phases. Changes:
🤖 Was this summary useful? React with 👍 or 👎 |
| pax_finalize() | ||
| { | ||
| #TODO: Hack so that we can use coreutils md5sum without impacting builds | ||
| ZOPEN_DEPS="coreutils jq" |
There was a problem hiding this comment.
pax_finalize() resets ZOPEN_DEPS to just coreutils jq, which changes what setDepsEnv will (re)install/re-source for the rest of the run and may unintentionally drop other dependency environments that were previously active. This also mutates the global ZOPEN_DEPS value after install, which could surprise later steps (e.g., OCI publish / activate).
Severity: medium
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
|
augment review |
|
augment review |
|
augment review |
55911b9 to
06a9c5e
Compare
|
augment review |
06a9c5e to
33617c1
Compare
|
augment review |
33617c1 to
03fd43b
Compare
Extract inline packaging code into separate functions for better maintainability and code organization.
Add timestamp-based RPM release numbering to prevent CI build overwrites. Add --build-binary flag to zopen-pax2rpm for faster binary-only builds. Update zopen-build to use binary-only builds by default.
Filter out 'meta' from ZOPEN_RUNTIME_DEPS when generating RPM requires list.
…e_version() The set_active_version() function was using an undefined variable 'name' when creating the profiled directory path and dotenv file. This was introduced during the refactoring in commit 345ac3f. Fixed by using PROJECT_NAME which is already defined at the beginning of the function.
Previously, rpmbuild output was captured but never displayed, making it difficult to diagnose failures when the error message said 'review the spec file and build output above'. Changes: - Capture and display rpmbuild output for both -bb and -ba modes - Store exit code separately for proper error checking - Only show Source RPMs section when not using --build-binary flag
Changed set_active_version() to use getProjectName() instead of cut -d'-' -f1 to properly handle hyphenated port names and maintain consistency with other parts of the codebase (RPM naming, metadata generation, zopen-install). This ensures mergeIntoSystem updates the correct project key/directory for ports with hyphens in their names. Also fixed setup.sh to run in a subshell to avoid changing the working directory for later steps like ZOPEN_PRE_TERMINATE_CODE.
03fd43b to
1a6d2f1
Compare
|
/run tests |
What type of PR is this? (check all applicable)
Category
Description
Related Issues
[optional] Are there any post-deployment tasks or follow-up actions required?