Skip to content

Add more Pulp Exceptions.#1440

Open
aKlimau wants to merge 1 commit into
pulp:mainfrom
aKlimau:add-pulp-exceptions
Open

Add more Pulp Exceptions.#1440
aKlimau wants to merge 1 commit into
pulp:mainfrom
aKlimau:add-pulp-exceptions

Conversation

@aKlimau

@aKlimau aKlimau commented Apr 21, 2026

Copy link
Copy Markdown

Assisted-by: Claude Sonnet 4.6 noreply@anthropic.com

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

@aKlimau aKlimau marked this pull request as draft April 21, 2026 13:14
@aKlimau aKlimau force-pushed the add-pulp-exceptions branch 6 times, most recently from 61abafd to 26799ca Compare April 23, 2026 10:11
@aKlimau aKlimau marked this pull request as ready for review April 23, 2026 10:21
@aKlimau aKlimau force-pushed the add-pulp-exceptions branch 8 times, most recently from de94a5e to b1b54b6 Compare April 29, 2026 13:17
@aKlimau aKlimau force-pushed the add-pulp-exceptions branch from b1b54b6 to e3388cb Compare May 4, 2026 13:29
Comment on lines -145 to -147
Exception Signifying that the Release file contains the 'No-Support-for-Architecture-all' field,
but with a value other than 'Packages'. We interpret this as an error since this would likely
signify some unknown repo format, that pulp_deb is more likely to get wrong than right!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not a strong opinion, but I would keep the original class descriptions to ensure that no information was lost.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@aKlimau I meant everywhere in this PR, not just in this one case. But it is up to you.

Comment thread pulp_deb/app/tasks/synchronizing.py Outdated
Comment thread pulp_deb/app/exceptions.py Outdated
Comment thread pulp_deb/app/exceptions.py Outdated
@aKlimau aKlimau force-pushed the add-pulp-exceptions branch from e3388cb to 4c58f8d Compare May 29, 2026 09:27
"""
Copy content from one repo to another.

Args:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wow, these look plain wrong...

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

They do look wrong. Don't look like they were copied from pulp_rpm either. Perhaps from some early development state and then we forgot to read them during review? 😰 I may dig through the history at some point to try and understand what happened here. Probably my fault. Certainly out of scope for this PR...

Comment thread pulp_deb/app/tasks/copy.py
@aKlimau aKlimau force-pushed the add-pulp-exceptions branch from 4c58f8d to d0790a5 Compare May 29, 2026 12:25
@quba42

quba42 commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

I will try to review this next/soon. It fixes our deprecation warnings, so thanks for that! Just need to find some time to do it...

Comment thread CHANGES/+add-pulp-exceptions.feature Outdated
Comment thread pyproject.toml Outdated
# All things django and asyncio are deliberately left to pulpcore
# Example transitive requirements: asgiref, asyncio, aiohttp
"pulpcore>=3.85.0,<3.115",
"pulpcore>=3.105.0,<3.115",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This will disappear with rebase to latest main branch. I need to remember it is part of this change, so I don't get any ideas about trying to backport this. 😅

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

In my latest changes to this pr I bumped pulpcore lowerbounds to 3.113 to use FeatureNotImplementedError from pulpcore. Is that ok or too big of a jump for you?

@quba42 quba42 Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

My first thought was: Feel free to bump it to what ever version is needed. However, my second thought is:

Do we want to backport all or some of these changes to already released release branches? If yes, then bumping the pulpcore version a bunch suddenly becomes a factor. Right now we have:

  • pulp_deb main requires pulpcore>=3.107.0
  • pulp_deb 3.9 requires pulpcore>=3.85.0
  • pulp_deb 3.8 requires pulpcore>=3.85.0

Looking at that, we probably just don't want to backport these changes to 3.8 or 3.9. So the question becomes: Is 3.113 as opposed to 3.107 for main branch an issue? My intuition is: not really.

=> I am back to "feel free to require 3.113".

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What would be the reason for backporting features? It does not make sense in most cases :)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What would be the reason for backporting features? It does not make sense in most cases :)

In the case of this refactor of all our existing exceptions the reason to backport would be to avoid merge conflicts with bugfixes we need to backport. This might be less work overall if (a) it wasn't for the pulpcore dependency issues and (b) such merge conflicts are likely. But given (a) is not the case, and (b) seems unlikely, I don't think it makes sense here.

@aKlimau aKlimau force-pushed the add-pulp-exceptions branch from d0790a5 to 0ddecd2 Compare June 9, 2026 11:24
  Assisted-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@aKlimau aKlimau force-pushed the add-pulp-exceptions branch from 0ddecd2 to 1433538 Compare June 9, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants