Skip to content

Commit

Permalink
test/system: Test a container with an old forward incompatible runtime
Browse files Browse the repository at this point in the history
Commit ae43560 had added a test with a similar intention.  When
the test suite is run on a Fedora Rawhide host, it tests whether the
containers for the two previous stable Fedora releases start or not.
Fedora N-2 reaches End of Life four weeks after Fedora N is released.
So, testing the containers for Fedora Rawhide and the two previous
stable releases on a Fedora Rawhide host is a decent test of general
backwards compatibility.

However, as seen recently [1], this isn't enough to catch some known
ABI compatibility issues [2,3].  These involve toolbox binaries built
on hosts with newer toolchains that aren't meant to be run against
containers with older runtimes.  A targeted test is needed to defend
against these scenarios.

The fedora-toolbox:34 image has glibc-2.33, which is old enough to be
unable to run binaries compiled on Fedora 35 with glibc-2.34 and newer.

[1] containers#1180

[2] Commit 6063eb2
    containers#821

[3] Commit 6ad9c63
    containers#529

https://docs.fedoraproject.org/en-US/releases/

containers#1187
  • Loading branch information
debarshiray committed Dec 7, 2022
1 parent 7ab2f9b commit 50ff619
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/system/103-container.bats
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ teardown() {
assert_success
}

@test "container: Start with an old forward incompatible runtime" {
create_distro_container fedora 34 fedora-toolbox-34

run container_started fedora-toolbox-34
assert_success
}

@test "container(Fedora Rawhide): Containers with supported versions start without issues" {
local os_release="$(find_os_release)"
local system_id="$(get_system_id)"
Expand Down

0 comments on commit 50ff619

Please sign in to comment.