Skip to content

oci-runtime-tools: adapt the tests to the host kernel - #30838

Merged
dangowrt merged 2 commits into
openwrt:masterfrom
dangowrt:oci-runtime-tools-host-gating
Oct 22, 2026
Merged

dangowrt merged 2 commits into
openwrt:masterfrom
dangowrt:oci-runtime-tools-host-gating

Conversation

@dangowrt

@dangowrt dangowrt commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

📦 Package Details

Maintainer: @dangowrt

Description:
The hugetlb tests fail on kernels without huge pages or the hugetlb cgroup controller, and the rlimit test sets limits of 4 GiB and more that a 32-bit kernel turns into RLIM_INFINITY, so they fail against every runtime on most OpenWrt targets. Carry the pending upstream fixes that skip the hugetlb tests on such kernels, report a refused hugetlb container as a failed test and leave out the rlimits the host cannot hold.

Link: opencontainers/runtime-tools#823


🧪 Run Testing Details

  • OpenWrt Version: snapshot
  • OpenWrt Target/Subtarget: x86/64, x86/generic
  • OpenWrt Device: QEMU VM

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

If your PR contains a patch:

  • It can be applied using git am
  • It has been refreshed to avoid offsets, fuzzes, etc., using
    make package/<your-package>/refresh V=s
  • It is structured in a way that it is potentially upstreamable

The hugetlb tests fail on kernels without huge pages or the hugetlb
cgroup controller, and the rlimit test sets limits of 4 GiB and more
that a 32-bit kernel turns into RLIM_INFINITY, so they fail against
every runtime on most OpenWrt targets. Carry the pending upstream
fixes that skip the hugetlb tests on such kernels, report a refused
hugetlb container as a failed test and leave out the rlimits the host
cannot hold.

Link: opencontainers/runtime-tools#823
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
@dangowrt
dangowrt force-pushed the oci-runtime-tools-host-gating branch from b39e6bc to 0829967 Compare October 21, 2026 22:54
The rootfs archive the OCI tests unpack is installed among the test
binaries in /usr/libexec/oci-runtime-test, where the packages CI
expects every file to be executable, so the generic tests of
oci-runtime-tests fail on every architecture that builds it. Install
the archive in /usr/share/oci-runtime-test and link it from its old
place, where test harnesses copy it into the test directory from.

Fixes: 6b9fdf2 ("oci-runtime-tools: add package")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
@dangowrt
dangowrt merged commit ec80363 into openwrt:master Oct 22, 2026
14 checks passed
@dangowrt
dangowrt deleted the oci-runtime-tools-host-gating branch October 22, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants