Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix checkpoint/restore tests on actuated-arm64 #4276

Merged
merged 5 commits into from
May 20, 2024

Conversation

kolyshkin
Copy link
Contributor

@kolyshkin kolyshkin commented May 8, 2024

While investigating #4274 I found a few issues and rough edges with our c/r tests.

This, together with checkpoint-restore/criu#2403 (which is already applied to CRIU package we use) fixes CI failures we see now.

Fixes: #4274.

@kolyshkin kolyshkin changed the title [DNM] test [WIP] fix checkpoint/restore tests May 9, 2024
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Since criu 2.12, rpcOpts is not needed when checking criu features.
As we requires criu >= 3.0 in Checkpoint, we can remove rpcOpts.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
criu check --feature userns also tests for the /proc/self/ns/user
presense, so remove the redundant check, and simplify the error message.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Since commit c77aaa3 the tail of criu log is printed by runc, so
there's no need to do the same thing in tests.

This also fixes a test failure on ARM where showLog fails (because
there's no log file) and thus the conditional t.Skip is not called.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin kolyshkin force-pushed the arm-cpt-test-fixes branch 6 times, most recently from e4f3536 to 892cec6 Compare May 10, 2024 00:37
@kolyshkin kolyshkin changed the title [WIP] fix checkpoint/restore tests fix/disable checkpoint/restore tests on actuated-arm64 May 10, 2024
@kolyshkin kolyshkin marked this pull request as ready for review May 10, 2024 00:48
@kolyshkin
Copy link
Contributor Author

@adrianreber @rst0git PTAL

@alexellis
Copy link

Hi @kolyshkin we can enable CONFIG_NF_TABLES_INET for you. What else is needed or dependent?

@rst0git
Copy link
Contributor

rst0git commented May 10, 2024

@kolyshkin I've updated the CRIU packages in OBS with the patch from checkpoint-restore/criu#2403.

@kolyshkin
Copy link
Contributor Author

@kolyshkin I've updated the CRIU packages in OBS with the patch from checkpoint-restore/criu#2403.

Awesome; I've removed the last commit so we're now running all tests on ARM (except, of course, pre-dump).

Since we're now testing on ARM, the test case fails when trying to do
pre-dump since MemTrack is not available.

Skip the pre-dump part if so.

This also reverts part of commit 3f4a73d as it is no longer needed
(now, instead of skipping the whole test, we're just skipping the
pre-dump).

[Review with --ignore-all-space]

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Copy link
Contributor

@rst0git rst0git left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@lifubang lifubang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, please update your PR description.

@kolyshkin kolyshkin changed the title fix/disable checkpoint/restore tests on actuated-arm64 fix checkpoint/restore tests on actuated-arm64 May 13, 2024
@AkihiroSuda AkihiroSuda merged commit 492dc55 into opencontainers:main May 20, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flaky test: TestCheckpoint(actuated-arm64-6cpu-8gb, 1.21.x)
5 participants