Skip to content

Commit 15d3190

Browse files
elibusmeta-codesync[bot]
authored andcommitted
[TEST][antlir2] Mark apt ubuntu-noble test as x86_64-only
Summary: `fbcode//antlir/antlir2/features/apt/tests:test-bash-installed-ubuntu-noble` has never passed on aarch64 (0/5 runs) because Ubuntu Noble has no aarch64 packages — the deb snapshot suite for noble is declared `architectures = ["amd64"]`, so the apt transaction fails to resolve bash/dash/dpkg: ``` Error: while planning transaction Caused by: there were one or more transaction errors: ["No such package found 'bash'", "No such package found 'dash'", "No such package found 'dpkg'"] ``` The noble-only restriction is already declared for the suite (`package_managers/deb/BUCK`), the OS record (`os/oses.bzl`) and the build appliance, but nothing constrained the test itself, so CI kept configuring it for arm64. Constrain the noble alias to x86_64, mirroring the existing precedent in `features/rpm/tests/facebook/rpmcow/BUCK`. The debian-trixie variants are unaffected — trixie snapshots do carry arm64. ___ Test Plan: Target is now skipped instead of failing on aarch64: ``` $ buck2 build --flagfile fbcode//mode/dev-nosan --config fbcode.arch=aarch64 --skip-incompatible-targets fbcode//antlir/antlir2/features/apt/tests:test-bash-installed-ubuntu-noble Skipped 1 incompatible targets: fbcode//antlir/antlir2/features/apt/tests:test-bash-installed-ubuntu-noble (cfg:dev-linux-arm64-fbcode-platform010-aarch64-clang21-no-san#f6800fbffbd05e8b) BUILD SUCCEEDED ``` Still builds on x86_64: ``` $ buck2 build --flagfile fbcode//mode/dev-nosan fbcode//antlir/antlir2/features/apt/tests:test-bash-installed-ubuntu-noble BUILD SUCCEEDED ``` Differential Revision: D117174803 fbshipit-source-id: 38760f7cafac1ad487826a54f2cce89a89f88878
1 parent 7b4937c commit 15d3190

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • antlir/antlir2/features/apt/tests

antlir/antlir2/features/apt/tests/BUCK

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ antlir2_configured_alias(
3333
name = "test-bash-installed-ubuntu-noble",
3434
actual = ":test-bash-installed",
3535
default_os = "ubuntu-noble",
36+
# Noble does not have aarch64 packages
37+
target_compatible_with = ["ovr_config//cpu:x86_64"],
3638
)
3739

3840
image.layer(

0 commit comments

Comments
 (0)