Skip to content
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

Fix integration test failures on non-x86 #806

Merged
merged 1 commit into from
Aug 30, 2023
Merged

Conversation

turan18
Copy link
Contributor

@turan18 turan18 commented Aug 28, 2023

There were several issues that caused integration tests to fail on non-x86. The first one was our dependency GHCR registry image which is only supported on amd64. The GHCR registry was needed when we supported artifact manifests, but those have been seemingly removed from the OCI 1.1 spec proposal, so we no longer need it. We also had 2 tests that relied on a pinned amd64 variant of rabbitmq. Those have been replaced with a pinned multi-arch index.

Issue #, if available:

Fixes: #696

Description of changes:

  1. Removed our dependency on the GHCR registry.
  2. Use pinned index instead of a pinned manifest

Testing performed:

Spin up an ARM64 instance and run integration tests.

$ uname -p
aarch64
$ make integration 
....
     --- PASS: TestSociZtocGetFile/Ztoc_and_each_file_exists,_file_contents_redirected_to_output_file#03 (0.09s)
PASS
ok  	github.com/awslabs/soci-snapshotter/integration	1032.225s

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@turan18 turan18 force-pushed the integ_non_x86 branch 3 times, most recently from 566c8ff to 3ab2158 Compare August 28, 2023 22:35
There were several issues that caused integration tests to fail
on non-x86. The first one was our dependency GHCR registry image which
is only supported on amd64. The GHCR registry was needed when we supported artifact
manifests, but those have been seemingly removed from the OCI 1.1 spec proposal,
so we no longer need it. We also had 2 tests that relied on a pinned amd64
variant of rabbitmq. Those have been replaced with a pinned multi-arch index.

Signed-off-by: Yasin Turan <[email protected]>
@turan18 turan18 marked this pull request as ready for review August 28, 2023 23:09
@turan18 turan18 requested a review from a team as a code owner August 28, 2023 23:09
Copy link
Contributor

@Kern-- Kern-- left a comment

Choose a reason for hiding this comment

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

We should add a follow up issue to add a new integration test against the referrers API.

@turan18
Copy link
Contributor Author

turan18 commented Aug 29, 2023

We should add a follow up issue to add a new integration test against the referrers API.

Created #808

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Integration tests don't work on non-x86
3 participants