Skip to content

Conversation

joshcooper
Copy link
Contributor

Commit 3a54851 detected cases where the "architecture was in the title of a package and moves it to the end of the version string" such as ".86_64" But the noarch regex matched any occurrence "noarch", including "-noarch". That bug was fixed in commit ca36fc6. This commit adds some missing tests and refactors the regex.

Commit 3a54851 detected cases where the "architecture was in the title of a
package and moves it to the end of the version string" such as ".86_64" But the
noarch regex matched any occurrence "noarch", including "-noarch". That bug was
fixed in commit ca36fc6. This commit adds some missing tests and refactors
the regex.
@joshcooper joshcooper requested a review from a team as a code owner April 11, 2024 00:58
@joshcooper
Copy link
Contributor Author

This relates to #9085

@mhashizume mhashizume added the maintenance Maintenance chores are excluded from changelogs label Apr 11, 2024
@mhashizume mhashizume merged commit 0fdd52b into puppetlabs:main Apr 11, 2024
@mhashizume mhashizume added the backport 7.x Generate a backport PR to 7.x label Apr 11, 2024
Copy link

Backport failed for 7.x, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally.

git fetch origin 7.x
git worktree add -d .worktree/backport-9318-to-7.x origin/7.x
cd .worktree/backport-9318-to-7.x
git checkout -b backport-9318-to-7.x
ancref=$(git merge-base 47f7f3b507ce82d94569c74f5050954bbaded16c dc2850527309d42c7574b9afde20f0bee6cf1430)
git cherry-pick -x $ancref..dc2850527309d42c7574b9afde20f0bee6cf1430

@mhashizume
Copy link
Contributor

Ah, I guess the changes in #9085 were never backported to 7.x so the changes in this PR can't be backported either.

Would it make sense to backport both #9085 and this? Or leave it in main/8.x for the time being.

@joshcooper joshcooper deleted the noarch_tests branch April 11, 2024 17:13
@joshcooper
Copy link
Contributor Author

Would it make sense to backport

I'm fairly confident this won't introduce a regression, but the "move it to the end of the string" behavior was a little surprising to me, so not sure...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 7.x Generate a backport PR to 7.x maintenance Maintenance chores are excluded from changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants