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

Run integration tests on arm64 #464

Merged
merged 16 commits into from
May 29, 2024
Merged

Conversation

carlcsaposs-canonical
Copy link
Contributor

No description provided.

@carlcsaposs-canonical carlcsaposs-canonical marked this pull request as ready for review May 14, 2024 10:20
Comment on lines +5 to +7
architecture = subprocess.run(
["dpkg", "--print-architecture"], capture_output=True, check=True, encoding="utf-8"
).stdout.strip()
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should rather use platform.machine() and a mapping to the correct architecture. Otherwise the tests will only run on Debian derivatives without tweaking.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is the mapping always 1:1?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes and it is what we use for installing the correct snap revision.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

are you sure mapping is always 1:1 for every architecture?

I'm wondering if there are multiple platform.machine()s that would both be amd64, for example

Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't be the case unless we start supporting *bsd, but then we also wouldn't have dpkg on the host either way. platform.machine() should respond with the same value as uname -m

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dragomirp is there documentation somewhere about the possible values of uname -m/platform.machine()?

@carlcsaposs-canonical
Copy link
Contributor Author

@dragomirp @marceloneppel should I merge with some integration tests failing? if not, could one of you pick up this PR? I believe the remaining test failures are postgresql-specific/require knowledge of postgres and are not related to the reusable workflows

@carlcsaposs-canonical
Copy link
Contributor Author

merging since test failures are identical on amd64 and arm64

@carlcsaposs-canonical carlcsaposs-canonical merged commit 1d35a66 into main May 29, 2024
82 of 90 checks passed
@carlcsaposs-canonical carlcsaposs-canonical deleted the integration-test-arm branch May 29, 2024 06:50
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.

4 participants