Skip to content

Conversation

@esolitos
Copy link
Contributor

@esolitos esolitos commented Sep 8, 2025

What

  • Added support for multiple AlmaLinux OS versions (8 and 9) in the RPM publishing workflow.
  • Improved robustness of workflow scripts by updating shell options, adding variable quotes, replacing for-loop with while-read, and simplifying error checks.

Why

  • Support AL9 in mirrors

Changes:
- Update shell options for better error handling and tracing.  
- Add quotes around variables to prevent word splitting and globbing 
issues.
- Replace for-loop with while-read for safer line-by-line 
processing. 
- Simplify upload error check by combining command and 
condition.
Update the workflow and publish script to handle multiple
AlmaLinux OS versions (8 and 9).
Enhance trap commands with proper quoting to avoid potential word 
splitting issues. Add consistent quoting to variable expansions, 
preventing word splitting and globbing errors.
Copy link
Member

@arnej27959 arnej27959 left a comment

Choose a reason for hiding this comment

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

as far as i can see this should be OK

COPR_PACKAGES=$(mktemp)
readonly COPR_PACKAGES
# shellcheck disable=SC2064
trap "rm -f \"${COPR_PACKAGES}\"" EXIT
Copy link
Member

Choose a reason for hiding this comment

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

do we even need to do this type of cleanup given that it's running inside a github action container which will be deleted when the script is done anyway? something to consider for later, maybe...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed, I did not question the process when I fixed the shellcheck warning.

@esolitos
Copy link
Contributor Author

Do not merge was set because this would bring us over the limit of the OSS storage offered by Cliudsmith.
Need to have a quick chat with @frodelu

@esolitos esolitos marked this pull request as draft September 12, 2025 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants