fix TestPidsSystemd and TestRunWithKernelMemorySystemd test error#2501
Conversation
990947e to
96f64e9
Compare
|
@AkihiroSuda PTAL |
| } | ||
|
|
||
| func testPids(t *testing.T, systemd bool) { | ||
| if testing.Short() { |
There was a problem hiding this comment.
Just remove -short from CentOS 7 CI
Line 49 in 3cb1909
There was a problem hiding this comment.
TESTFLAGS=-short' let about 53 test skip. But I just solved TestPidsSystemd and _TestRunWithKernelMemorySystemd_ test cases error.
There was a problem hiding this comment.
IIUC we no longer need to skip any unit test on CentOS7 CI?
There was a problem hiding this comment.
OK, I'll have a try.
There was a problem hiding this comment.
All tests passed, 👍
96f64e9 to
cea9981
Compare
cea9981 to
8e4fd69
Compare
|
There is an error on fedora32 (failed to update) : |
8e4fd69 to
97e16e7
Compare
|
@kolyshkin PTAL |
Addressed by #2511 |
| # FIXME: the following unit tests are skipped (TESTFLAGS=-short): | ||
| # FAIL: TestPidsSystemd: utils_test.go:55: exec_test.go:630: unexpected error: container_linux.go:353: starting container process caused: process_linux.go:326: applying cgroup configuration for process caused: mountpoint for devices not found | ||
| # FAIL: TestRunWithKernelMemorySystemd: exec_test.go:713: runContainer failed with kernel memory limit: container_linux.go:353: starting container process caused: process_linux.go:326: applying cgroup configuration for process caused: mkdir : no such file or directory | ||
| - sudo ssh default -t 'sudo -i make -C /vagrant localunittest TESTFLAGS=-short' | ||
| - sudo ssh default -t 'sudo -i make -C /vagrant localunittest TESTFLAGS=' |
There was a problem hiding this comment.
So, you need to remove the FIXME comment above, as well as TESTFLAGS.
97e16e7 to
24691a0
Compare
Signed-off-by: Xiaodong Liu <liuxiaodong@loongson.cn>
24691a0 to
f57bb2f
Compare
Test command :
make localunittestTest logs:
Root cause:
TestPidsSystemd: The cgroup root path is
integration/testwhen the test container is stating. The devices subsystem can not find under this root path, then casue apply cgroup error. The code show as following,runc/libcontainer/cgroups/systemd/v1.go
Line 274 in 3cb1909
TestRunWithKernelMemorySystemd: The root cause is same as the TestPidsSystemd. But it leads to
mkdir "", when system want to set "KernelMemory" property. See the code as following,runc/libcontainer/cgroups/systemd/v1.go
Line 431 in 3cb1909
Signed-off-by: Xiaodong Liu liuxiaodong@loongson.cn