Skip to content

Commit

Permalink
Merge pull request #6575 from trws/docker-cleanup
Browse files Browse the repository at this point in the history
arm64 Docker cleanup
  • Loading branch information
mergify[bot] authored Feb 7, 2025
2 parents 34a392f + 2ab4ed3 commit a76d861
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:

ci-checks:
needs: [generate-matrix]
runs-on: ubuntu-latest
runs-on: ${{matrix.runner}}
env:
TAP_DRIVER_QUIET: 1
FLUX_TEST_TIMEOUT: 300
Expand Down Expand Up @@ -211,10 +211,6 @@ jobs:
uses: docker/setup-buildx-action@v3
if: matrix.needs_buildx

- name: setup qemu-user-static
run: |
docker run --rm --privileged aptman/qus -s -- -p --credential aarch64
- name: docker-run-checks
timeout-minutes: ${{matrix.timeout_minutes}}
env: ${{matrix.env}}
Expand Down
4 changes: 2 additions & 2 deletions src/test/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ Docker buildx extensions, see

and run
```
$ docker buildx build --push --platform=linux/arm64,linux/amd64 --tag fluxrm/testenv:jammy src/test/docker/jammy
$ docker buildx build --push --platform=linux/386,linux/amd64,linux/arm64 --tag fluxrm/testenv:bookworm src/test/docker/bookworm
$ docker buildx build --push --platform=linux/arm64,linux/amd64 --tag fluxrm/testenv:jammy -f src/test/docker/jammy/Dockerfile .
$ docker buildx build --push --platform=linux/386,linux/amd64,linux/arm64 --tag fluxrm/testenv:bookworm -f src/test/docker/bookworm/Dockerfile .
```

to build and push images to docker hub.
Expand Down
22 changes: 14 additions & 8 deletions src/test/generate-matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ def on_master_or_tag(matrix):
"suffix": " - arm64",
"command_args": "--install-only ",
"timeout_minutes": 90,
"runner": "ubuntu-24.04-arm",
},
"linux/amd64": {"when": lambda _: True},
"linux/amd64": {"when": lambda _: True, "runner": "ubuntu-latest"},
}


Expand Down Expand Up @@ -94,6 +95,7 @@ def add_build(
platform=None,
command_args="",
timeout_minutes=60,
runner="ubuntu-latest",
):
"""Add a build to the matrix.include array"""

Expand Down Expand Up @@ -144,6 +146,7 @@ def add_build(
"env": env,
"command": command,
"image": image,
"runner": runner,
"tag": self.tag,
"branch": self.branch,
"coverage": coverage,
Expand Down Expand Up @@ -175,6 +178,7 @@ def add_multiarch_build(
image=image if image is not None else name,
command_args=args.get("command_args", ""),
timeout_minutes=args.get("timeout_minutes", 30),
runner=args["runner"],
**kwargs,
)

Expand All @@ -189,7 +193,11 @@ def __str__(self):

# Multi-arch builds, arm only builds on
bookworm_platforms = deepcopy(DEFAULT_MULTIARCH_PLATFORMS)
bookworm_platforms["linux/386"] = {"when": lambda _: True, "suffix": " - 32 bit"}
bookworm_platforms["linux/386"] = {
"when": lambda _: True,
"suffix": " - 32 bit",
"runner": "ubuntu-latest",
}
common_args = (
"--prefix=/usr"
" --sysconfdir=/etc"
Expand Down Expand Up @@ -231,17 +239,15 @@ def __str__(self):
TEST_INSTALL="t",
),
)
# single arch builds that still produce a container
matrix.add_build(
name="fedora40 - test-install",
image="fedora40",
matrix.add_multiarch_build(
name="fedora40",
default_suffix=" - test-install",
args=common_args,
env=dict(
TEST_INSTALL="t",
),
docker_tag=True,
)

# single arch builds that still produce a container
# Ubuntu: TEST_INSTALL
matrix.add_build(
name="jammy - test-install",
Expand Down
5 changes: 5 additions & 0 deletions t/t0016-cron-faketime.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ if ! test_have_prereq NO_ASAN; then
test_done
fi

if test "$(uname -m)" = "aarch64" ; then
skip_all='skipping faketime cron tests on aarch64'
test_done
fi

# allow libfaketime to be found on ubuntu, centos
if test -d /usr/lib/x86_64-linux-gnu/faketime ; then
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu/faketime"
Expand Down

0 comments on commit a76d861

Please sign in to comment.