Skip to content

Fix ArtifactResponse crash on unloaded pulp_domain - #8387

Merged
jobselko merged 1 commit into
pulp:mainfrom
jobselko:artifact-response-deferred-domain
Nov 26, 2026
Merged

jobselko merged 1 commit into
pulp:mainfrom
jobselko:artifact-response-deferred-domain

Conversation

@jobselko

Copy link
Copy Markdown
Member

📜 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

@jobselko jobselko self-assigned this Nov 26, 2026
@jobselko

Copy link
Copy Markdown
Member Author

Tested locally and confirmed that it fixes the SynchronousOnlyOperation error in pulp python caused by #8234.

Comment thread pulpcore/tests/unit/test_responses.py Resolved
@jobselko
jobselko force-pushed the artifact-response-deferred-domain branch from 280dffc to 31d0154 Compare November 26, 2026 13:58
@jobselko
jobselko marked this pull request as ready for review November 26, 2026 13:58
3.125.0 introduced a regression where ArtifactResponse failed with
SynchronousOnlyOperation when pulp_domain was not preloaded.
Load it with sync_to_async and log a deprecation warning instead.

Assisted By: Claude Opus 5.5
@jobselko
jobselko force-pushed the artifact-response-deferred-domain branch from 31d0154 to e8c4154 Compare November 26, 2026 14:07
@jobselko
jobselko merged commit 8b4dd9c into pulp:main Nov 26, 2026
14 checks passed
@patchback

patchback Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Backport to 3.125: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.125/8b4dd9c3932ddf384b617f43aa8ef33fda657fc5/pr-8387

Backported as #8388

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants