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
Copy link
Copy Markdown

@aKlimau aKlimau commented Apr 21, 2026

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.

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...

@@ -105,7 +106,7 @@
)

if dependency_solving:
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.

Is this something that the api allows in the first place?

I would not change this Exception at all.
If the user can trigger an Unimplemented codepath, that's a server error. And should be prevented/fixed/implemented.

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.

but does it hurt to let the user know what's caused the error?

Is this something that the api allows in the first place?

I would not change this Exception at all. If the user can trigger an Unimplemented codepath, that's a server error. And should be prevented/fixed/implemented.

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.

Is there any way the user can trigger this?

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.

I think the API parameter already exists, and then you will quickly learn not to use it, because it is not implemented and can never work...

Copy link
Copy Markdown
Author

@aKlimau aKlimau Jun 1, 2026

Choose a reason for hiding this comment

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

yes, if request for copying for some reason has "dependency_solving" set to true:

    dependency_solving = serializers.BooleanField(
        help_text=_(
            "Also copy dependencies of any packages being copied. NOT YET"
            'IMPLEMENTED! You must keep this at "False"!'
        ),
        default=False,
    )

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.

I'm sad now. Anyway, can we handle NotImplementedError generically in core? It looks like there would be a pattern.

  Assisted-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@aKlimau aKlimau force-pushed the add-pulp-exceptions branch from 4c58f8d to d0790a5 Compare May 29, 2026 12:25
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