-
Notifications
You must be signed in to change notification settings - Fork 50
Fix flatpak cache serialization #2329
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fixed a cache key collision in the flatpak static index that could serve incorrect results across domains. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fixed flatpak index response to include the domain prefix in image names when domains are enabled. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fixed a serialization issue with the FlatpakIndex cache. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fixed OS and architecture filters being silently ignored when filtering manifest lists in the flatpak index. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fixed the registry host in the flatpak index response when `CONTENT_ORIGIN=None`. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,8 +6,6 @@ | |
|
|
||
| from pulp_container.tests.functional.constants import REGISTRY_V2 | ||
|
|
||
| pytestmark = pytest.mark.skip(reason="TLS is broken currently. TODO: Fix") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This probably belongs in a different commit.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, I'm just trying to get the tests to pass, then I'll reorder/squash the commits to make more sense. Also add the issue number
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cool - if there's more than one distinct commit that we need to backport, would it make sense to use separate PRs?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are four fixes to the flatpak endpoint in this PR right now. Either I squish them all into one commit attached to the issue satellite found, or we make separate PRs for all of them. |
||
|
|
||
|
|
||
| def run_flatpak_commands(host): | ||
| # Install flatpak: | ||
|
|
@@ -16,6 +14,7 @@ def run_flatpak_commands(host): | |
| "flatpak", | ||
| "--user", | ||
| "remote-add", | ||
| "--if-not-exists", | ||
| "pulptest", | ||
| "oci+" + host, | ||
| ] | ||
|
|
@@ -67,16 +66,21 @@ def test_flatpak_install( | |
| container_manifest_api, | ||
| pulp_settings, | ||
| bindings_cfg, | ||
| full_path, | ||
| ): | ||
| if not pulp_settings.FLATPAK_INDEX: | ||
| pytest.skip("This test requires FLATPAK_INDEX to be enabled") | ||
|
|
||
| image_path1 = f"{REGISTRY_V2}/pulp/oci-net.fishsoup.busyboxplatform:latest" | ||
| registry_client.pull(image_path1) | ||
| local_registry.tag_and_push(image_path1, "pulptest/oci-net.fishsoup.busyboxplatform:latest") | ||
| local_registry.tag_and_push( | ||
| image_path1, full_path("pulptest/oci-net.fishsoup.busyboxplatform") + ":latest" | ||
| ) | ||
| image_path2 = f"{REGISTRY_V2}/pulp/oci-net.fishsoup.hello:latest" | ||
| registry_client.pull(image_path2) | ||
| local_registry.tag_and_push(image_path2, "pulptest/oci-net.fishsoup.hello:latest") | ||
| local_registry.tag_and_push( | ||
| image_path2, full_path("pulptest/oci-net.fishsoup.hello") + ":latest" | ||
| ) | ||
| namespace = container_namespace_api.list(name="pulptest").results[0] | ||
| add_to_cleanup(container_namespace_api, namespace.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.
In the image names themselves, or is this more like "paths"?