-
Notifications
You must be signed in to change notification settings - Fork 124
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
Allow core/3.55+. #3621
Allow core/3.55+. #3621
Conversation
7ef6152
to
72eaf48
Compare
Will undraft after core/3.55 releases and re-run tests. |
Oh look, we have work to do... |
6e9c111
to
7e1e230
Compare
CHANGES/3620.bugfix
Outdated
@@ -0,0 +1 @@ | |||
Allow installation with pulpcore/3.55. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we somehow sync up this formulation across plugins?
Also: pulp_rpm seems to choose a new ad-hoc formulation each time, from the changelog:
- Features: Added pulpcore 3.40 compatibility.
- Features: Declares (and requires at least) pulpcore/3.25 compatibility.
Why is this suddenly a bugfix and can we become more consistent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment about this on the pulpcore 3.55 discourse channel as well: https://discourse.pulpproject.org/t/pulpcore-3-55-is-coming-soon/1259/3?u=quba42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this suddenly a bugfix and can we become more consistent?
Because my initial thought was that this would be backportable. Alas, no. Good catch, will fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussion from rpm-team-mtg: previous such releases have been features because they relied-on functionality in the breaking-release, and so needed their lowerboud raised. We generally try to allow the widest possible installation/use of pulp_rpm. If you look at the tests here, the current PR works cleanly back to the current LB ofrpm/3.44.1 (see https://github.com/pulp/pulp_rpm/actions/runs/9573762412/job/26468187737#step:21:53). Given that this change can be backported to previous releases, we mark it as bugfix.
That being said - the desire for there to be some similarity/compatibility for changelog entries across plugins is a good one. Will change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course, what we're really declaring is "compatibility with pulpcore<3.70". Which isn't what any of your example-changelogs say.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Communication wise, I think a changelog entry of "Declared compatibility against pulpcore<3.70" at a point in time when pulpcore 3.55 is latest, has a lot of potential to confuse anyone not intimately acquainted with the Plugin API deprecation policy (most users). So I think something like "Declared compatibility against pulpcore 3.55+" has the following virtues:
- While less technically accurate than pulpcore<3.70 it is still true.
- It identifies the actual existing breaking change release that now works.
- Via the "+" It still hints that there is a range beyond the "3.55" that we also declared compatibility against.
So I quite like this variant. That being said, I think future consistency is more important than the exact schema chosen.
fixes pulp#3620.
7e1e230
to
cfd4c95
Compare
): | ||
"""Test whether one can upload an RPM with non-ascii metadata.""" | ||
temp_file = tmp_path / str(uuid.uuid4()) | ||
temp_file.write_bytes(requests.get(RPM_WITH_NON_ASCII_URL).content) | ||
artifact = artifacts_api_client.create(temp_file) | ||
artifact = pulpcore_bindings.ArtifactsApi.create(temp_file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I appreciate this cleanup, thanks.
def _create_export( | ||
import_repos=None, export_repos=None, url=RPM_UNSIGNED_FIXTURE_URL, exporter=None | ||
): | ||
if not exporter: | ||
exporter = create_exporter(import_repos, export_repos, url=url) | ||
|
||
export_response = exporters_pulp_exports_api_client.create(exporter.pulp_href, {}) | ||
export_response = pulpcore_bindings.ExportersPulpExportsApi.create(exporter.pulp_href, {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
much much cleaner
Backport to 3.27: 💚 backport PR created✅ Backport PR branch: Backported as #3623 🤖 @patchback |
Backport to 3.26: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 1c36b39 on top of patchback/backports/3.26/1c36b39e2be24f87a97821370ee850cafefddbe6/pr-3621 Backporting merged PR #3621 into main
🤖 @patchback |
fixes #3630.