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

chore: add testing on arm64 architecture using qemu #95

Merged
merged 18 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/tag-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
strategy:
matrix:
flavor: [upstream, registry1]
architecture: [amd64]
architecture: [amd64, arm64]
name: Publish ${{ matrix.flavor }} ${{ matrix.architecture }}

permissions:
Expand All @@ -46,6 +46,10 @@ jobs:
registry1Password: ${{ secrets.IRON_BANK_ROBOT_PASSWORD }}
ghToken: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
zachariahmiller marked this conversation as resolved.
Show resolved Hide resolved
if: ${{ runner.arch == 'ARM64' }}
uses: docker/setup-qemu-action@v3

- name: Publish Package
run: UDS_ARCHITECTURE=${{ matrix.architecture }} uds run -f tasks/publish.yaml package --set FLAVOR=${{ matrix.flavor }}

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

This package is designed for use as part of a [UDS Software Factory](https://github.com/defenseunicorns/uds-software-factory) bundle deployed on [UDS Core](https://github.com/defenseunicorns/uds-core).

> [!IMPORTANT]
> The `arm64` package includes `amd64` images due to lack of availability of `arm64` images from upstream projects at this time. This means you can deploy the `arm64` package on an `arm64` kubernetes cluster, but some of the images contained in the package will require emulation (e.g., qemu or rosetta) to run properly.

> [!TIP]
> To add additional environment variables to Mattermost you can do so by overriding the `extraEnv` key in the `uds-mattermost-config` chart.
> ```yaml
Expand Down
4 changes: 2 additions & 2 deletions tests/mattermost.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ test("send a message", async ({ page }) => {
await page.goto('/unicorns/channels/town-square');

const el = page.locator(`#post_${post.id}`);
await expect(el).toContainText(post.message);
await expect(el).toContainText(post.message, { timeout: 60_000 });
});

test("send a message with attachment", async ({ page }) => {
Expand Down Expand Up @@ -99,6 +99,6 @@ test("send a message with attachment", async ({ page }) => {
await page.goto('/unicorns/channels/town-square');

const el = page.locator(`#post_${post.id}`);
await expect(el).toContainText(post.message);
await expect(el).toContainText(post.message, { timeout: 60_000 });

});