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

Prevent reposync tracebacks on packages with empty release #7594

Closed

Conversation

vzhestkov
Copy link
Contributor

What does this PR change?

In case if repo contains the package with empty release specified in the header it could lead to the traceback while running spacewalk-repo-sync for such repo.

The only example found was microsoft-identity-diagnostics-1.0.0-.x86_64.rpm in https://packages.microsoft.com/rhel/8/prod/ but it was fixed after.

GUI diff

No difference.

Documentation

  • No documentation needed: only internal and user invisible changes

Test coverage

  • No tests: no tests for the modified packages and the fix is for very specific corner case.

Links

Fixes https://github.com/SUSE/spacewalk/issues/22135

Changelogs

Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository

If you don't need a changelog check, please mark this checkbox:

  • No changelog needed

If you uncheck the checkbox after the PR is created, you will need to re-run changelog_test (see below)

Re-run a test

If you need to re-run a test, please mark the related checkbox, it will be unchecked automatically once it has re-run:

  • Re-run test "changelog_test"
  • Re-run test "backend_unittests_pgsql"
  • Re-run test "java_pgsql_tests"
  • Re-run test "schema_migration_test_pgsql"
  • Re-run test "susemanager_unittests"
  • Re-run test "javascript_lint"
  • Re-run test "spacecmd_unittests"

@vzhestkov vzhestkov requested a review from a team as a code owner September 27, 2023 13:15
@vzhestkov vzhestkov requested review from meaksh and removed request for a team September 27, 2023 13:15
Copy link
Member

@agraul agraul left a comment

Choose a reason for hiding this comment

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

Can these packages be installed? If not, it does not make sense to mirror them.

In general I wonder if skipping these packages (and logging that they are skipped because the release is unset) is a better approach. Are packages with an empty release tag valid?

@agraul
Copy link
Member

agraul commented Sep 29, 2023

BTW, this was also reported in #7356

@vzhestkov
Copy link
Contributor Author

The fix was made exactly because of microsoft-identity-diagnostics also reported #7356 as @agraul mentioned. Yes, the package can be installed, but I didn't find the notes if this strictly violates any rules, but from my point of view the package should be treated as invalid in such case. And as I know the package was fixed already and not present in the repo anymore.

@agraul
Copy link
Member

agraul commented Oct 6, 2023

The fix was made exactly because of microsoft-identity-diagnostics also reported #7356 as @agraul mentioned. Yes, the package can be installed, but I didn't find the notes if this strictly violates any rules, but from my point of view the package should be treated as invalid in such case. And as I know the package was fixed already and not present in the repo anymore.

I have the same feeling, all packaging guides I have found say that a release is required - but I don't know if it's strictly required. I'd prefer not to have this "we set the release if unset" hack if we can avoid it.

@m-czernek
Copy link
Contributor

ping @vzhestkov - just an FYI, I am closing this PR in favor of #7820

@m-czernek m-czernek closed this Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants