Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accommodate increased robustness in RPM 4.20 #182

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

nphilipp
Copy link
Member

RPM prior to version 4.20 failed to parse some abridged spec files. Newer versions are more robust, so the fall back path won’t be used.

RPM prior to version 4.20 failed to parse some abridged spec files.
Newer versions are more robust, so the fall back path won’t be used.

Signed-off-by: Nils Philippsen <[email protected]>
@nphilipp nphilipp added the testing & CI This affects local testing or CI automation label Sep 24, 2024
@nphilipp nphilipp merged commit a5a2653 into fedora-infra:main Sep 24, 2024
7 checks passed
@nphilipp nphilipp deleted the main--rpm4.20-coverage branch September 24, 2024 15:14
@sgallagher
Copy link
Contributor

Should we be dropping this? Fedora 39 and 40 both have older versions of RPM and are still actively maintained. Same for several other RPM-based distributions...

@nphilipp
Copy link
Member Author

nphilipp commented Oct 7, 2024

@sgallagher Sorry for the late reply, didn’t notice your comment before I went on PTO…

Should we be dropping this? Fedora 39 and 40 both have older versions of RPM and are still actively maintained. Same for several other RPM-based distributions...

Ahh I realize how this change can be confusing – the original conditional break out of the loop was in place to work around coverage issues which seem to be solved since. All of these changes are only relevant for testing.

nphilipp added a commit to nphilipp/rpmautospec that referenced this pull request Oct 10, 2024
The way it was done previously was too cute by half, looping over the
abridged and unabridged spec file paths + conditionals galore, which
confused coverage statistics.

Also to the same end, make parsing the abridged spec file fail in
relevant tests and don’t rely on rpm (>= 4.20) to do it (see fedora-infra#182).

Signed-off-by: Nils Philippsen <[email protected]>
nphilipp added a commit to nphilipp/rpmautospec that referenced this pull request Oct 10, 2024
The way it was done previously was too cute by half, looping over the
abridged and unabridged spec file paths + conditionals galore, which
confused coverage statistics.

Also to the same end, make parsing the abridged spec file fail in
relevant tests and don’t rely on rpm (>= 4.20) to do it (see fedora-infra#182).

Signed-off-by: Nils Philippsen <[email protected]>
nphilipp added a commit to nphilipp/rpmautospec that referenced this pull request Oct 10, 2024
The way it was done previously was too cute by half, looping over the
abridged and unabridged spec file paths + conditionals galore, which
confused coverage statistics.

Also to the same end, make parsing the abridged spec file fail in
relevant tests and don’t rely on rpm (>= 4.20) to do it (see fedora-infra#182).

Signed-off-by: Nils Philippsen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing & CI This affects local testing or CI automation
Projects
Development

Successfully merging this pull request may close these issues.

2 participants