Skip to content

[BUG] Tests can't run on arm64 #1148

@jeremyrickard

Description

@jeremyrickard

Version of Eraser

No response

Expected Behavior

Right now, when running the e2e tests on an arm64 node we attempt to build an image with kustomize and that image is only available as amd64.

> [5/7] RUN sed -i -e "s~REMOVER_REPO~upstream.azurecr.io/oss/v2/eraser/remover~g"     -e "s~COLLECTOR_REPO~upstream.azurecr.io/oss/v2/eraser/collector~g"     -e "s~SCANNER_REPO~upstream.azurecr.io/oss/v2/eraser/eraser-trivy-scanner~g"     -e "s~REMOVER_TAG~v1.4.0~g"     -e "s~COLLECTOR_TAG~v1.4.0~g"     -e "s~SCANNER_TAG~v1.4.0~g"     controller_manager_config.yaml:
[710](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:711)0.287 exec /bin/sh: exec format error
[711](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:712)------
[712](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:713)
[713](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:714) 1 warning found (use docker --debug to expand):
[714](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:715) - InvalidBaseImagePlatform: Base image registry.k8s.io/kustomize/kustomize:v3.8.9 was pulled with platform "linux/amd64", expected "linux/arm64" for current build (line 2)
[715](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:716)Dockerfile.manifest:19
[716](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:717)--------------------
[717](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:718)  18 |     
[718](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:719)  19 | >>> RUN sed -i -e "s~REMOVER_REPO~${REMOVER_REPO}~g" \
[719](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:720)  20 | >>>     -e "s~COLLECTOR_REPO~${COLLECTOR_REPO}~g" \
[720](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:721)  21 | >>>     -e "s~SCANNER_REPO~${TRIVY_SCANNER_REPO}~g" \
[721](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:722)  22 | >>>     -e "s~REMOVER_TAG~${REMOVER_TAG}~g" \
[722](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:723)  23 | >>>     -e "s~COLLECTOR_TAG~${COLLECTOR_TAG}~g" \
[723](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:724)  24 | >>>     -e "s~SCANNER_TAG~${TRIVY_SCANNER_TAG}~g" \
[724](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:725)  25 | >>>     controller_manager_config.yaml
[725](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:726)  26 |     
[726](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:727)--------------------
[727](https://github.com/Azure/dalec-build-defs/actions/runs/14841397936/job/41666248756?pr=1359#step:7:728)ERROR: failed to solve: process "/bin/sh -c sed -i -e \"s~REMOVER_REPO~${REMOVER_REPO}~g\"     -e \"s~COLLECTOR_REPO~${COLLECTOR_REPO}~g\"     -e \"s~SCANNER_REPO~${TRIVY_SCANNER_REPO}~g\"     -e \"s~REMOVER_TAG~${REMOVER_TAG}~g\"     -e \"s~COLLECTOR_TAG~${COLLECTOR_TAG}~g\"     -e \"s~SCANNER_TAG~${TRIVY_SCANNER_TAG}~g\"     controller_manager_config.yaml" did not complete successfully: exit code: 1

this causes failures and I am not able to run the e2e

Actual Behavior

No response

Steps To Reproduce

No response

Are you willing to submit PRs to contribute to this bug fix?

  • Yes, I am willing to implement it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions