Skip to content

cri support restart exited containers #17689

cri support restart exited containers

cri support restart exited containers #17689

Triggered via pull request May 11, 2024 03:48
Status Failure
Total duration 24m 9s
Artifacts 7

ci.yml

on: pull_request
Matrix: Linters
Matrix: Binaries
Matrix: Linux Integration
Matrix: Windows Integration
Matrix: Crossbuild Binaries
Matrix: Vagrant integration
Report required job statuses
0s
Report required job statuses
Fit to window
Zoom out
Zoom in

Annotations

27 errors
Failed: github.com/containerd/containerd/v2/internal/cri/server.TestSetContainerStarting/should_return_error_when_container_is_in_exited_state: v2/internal/cri/server/container_start_test.go#L97
container_start_test.go:96: Error Trace: /Users/runner/work/containerd/containerd/internal/cri/server/container_start_test.go:96 Error: An error is expected but got nil. Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state container_start_test.go:97: Error Trace: /Users/runner/work/containerd/containerd/internal/cri/server/container_start_test.go:97 Error: Not equal: expected: container.Status{Pid:0x0, CreatedAt:1715399713289375000, StartedAt:1715399713289375000, FinishedAt:1715399713289375000, ExitCode:0, Reason:"", Message:"", Starting:false, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} actual : container.Status{Pid:0x0, CreatedAt:1715399713289375000, StartedAt:1715399713289375000, FinishedAt:1715399713289375000, ExitCode:0, Reason:"", Message:"", Starting:true, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} Diff: --- Expected +++ Actual @@ -8,3 +8,3 @@ Message: (string) "", - Starting: (bool) false, + Starting: (bool) true, Removing: (bool) false, Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state Messages: metadata should not be updated
MacOS unit tests
Process completed with exit code 2.
Linux Integration (io.containerd.runc.v2, crun, actuated-arm64-4cpu-16gb)
Process completed with exit code 2.
Failed: github.com/containerd/containerd/v2/internal/cri/server.TestSetContainerStarting/should_return_error_when_container_is_in_exited_state: v2/internal/cri/server/container_start_test.go#L97
container_start_test.go:96: Error Trace: /home/runner/actions-runner/_work/containerd/containerd/internal/cri/server/container_start_test.go:96 Error: An error is expected but got nil. Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state container_start_test.go:97: Error Trace: /home/runner/actions-runner/_work/containerd/containerd/internal/cri/server/container_start_test.go:97 Error: Not equal: expected: container.Status{Pid:0x0, CreatedAt:1715399810685100000, StartedAt:1715399810685100160, FinishedAt:1715399810685100280, ExitCode:0, Reason:"", Message:"", Starting:false, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} actual : container.Status{Pid:0x0, CreatedAt:1715399810685100000, StartedAt:1715399810685100160, FinishedAt:1715399810685100280, ExitCode:0, Reason:"", Message:"", Starting:true, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} Diff: --- Expected +++ Actual @@ -8,3 +8,3 @@ Message: (string) "", - Starting: (bool) false, + Starting: (bool) true, Removing: (bool) false, Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state Messages: metadata should not be updated
Failed: github.com/containerd/containerd/v2/internal/cri/server.TestSetContainerStarting/should_return_error_when_container_is_in_exited_state: v2/internal/cri/server/container_start_test.go#L97
container_start_test.go:96: Error Trace: /home/runner/actions-runner/_work/containerd/containerd/internal/cri/server/container_start_test.go:96 Error: An error is expected but got nil. Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state container_start_test.go:97: Error Trace: /home/runner/actions-runner/_work/containerd/containerd/internal/cri/server/container_start_test.go:97 Error: Not equal: expected: container.Status{Pid:0x0, CreatedAt:1715399810685100000, StartedAt:1715399810685100160, FinishedAt:1715399810685100280, ExitCode:0, Reason:"", Message:"", Starting:false, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} actual : container.Status{Pid:0x0, CreatedAt:1715399810685100000, StartedAt:1715399810685100160, FinishedAt:1715399810685100280, ExitCode:0, Reason:"", Message:"", Starting:true, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} Diff: --- Expected +++ Actual @@ -8,3 +8,3 @@ Message: (string) "", - Starting: (bool) false, + Starting: (bool) true, Removing: (bool) false, Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state Messages: metadata should not be updated
Failed: github.com/containerd/containerd/v2/internal/cri/server.TestSetContainerStarting/should_return_error_when_container_is_in_exited_state: v2/internal/cri/server/container_start_test.go#L97
container_start_test.go:96: Error Trace: /home/runner/actions-runner/_work/containerd/containerd/internal/cri/server/container_start_test.go:96 Error: An error is expected but got nil. Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state container_start_test.go:97: Error Trace: /home/runner/actions-runner/_work/containerd/containerd/internal/cri/server/container_start_test.go:97 Error: Not equal: expected: container.Status{Pid:0x0, CreatedAt:1715399810685100000, StartedAt:1715399810685100160, FinishedAt:1715399810685100280, ExitCode:0, Reason:"", Message:"", Starting:false, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} actual : container.Status{Pid:0x0, CreatedAt:1715399810685100000, StartedAt:1715399810685100160, FinishedAt:1715399810685100280, ExitCode:0, Reason:"", Message:"", Starting:true, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} Diff: --- Expected +++ Actual @@ -8,3 +8,3 @@ Message: (string) "", - Starting: (bool) false, + Starting: (bool) true, Removing: (bool) false, Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state Messages: metadata should not be updated
Failed: github.com/containerd/containerd/v2/internal/cri/server.TestSetContainerStarting/should_return_error_when_container_is_in_exited_state: v2/internal/cri/server/container_start_test.go#L97
container_start_test.go:96: Error Trace: /home/runner/actions-runner/_work/containerd/containerd/internal/cri/server/container_start_test.go:96 Error: An error is expected but got nil. Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state container_start_test.go:97: Error Trace: /home/runner/actions-runner/_work/containerd/containerd/internal/cri/server/container_start_test.go:97 Error: Not equal: expected: container.Status{Pid:0x0, CreatedAt:1715399825132968360, StartedAt:1715399825132968440, FinishedAt:1715399825132968520, ExitCode:0, Reason:"", Message:"", Starting:false, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} actual : container.Status{Pid:0x0, CreatedAt:1715399825132968360, StartedAt:1715399825132968440, FinishedAt:1715399825132968520, ExitCode:0, Reason:"", Message:"", Starting:true, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} Diff: --- Expected +++ Actual @@ -8,3 +8,3 @@ Message: (string) "", - Starting: (bool) false, + Starting: (bool) true, Removing: (bool) false, Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state Messages: metadata should not be updated
Failed: github.com/containerd/containerd/v2/internal/cri/server.TestSetContainerStarting/should_return_error_when_container_is_in_exited_state: v2/internal/cri/server/container_start_test.go#L97
container_start_test.go:96: Error Trace: /home/runner/actions-runner/_work/containerd/containerd/internal/cri/server/container_start_test.go:96 Error: An error is expected but got nil. Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state container_start_test.go:97: Error Trace: /home/runner/actions-runner/_work/containerd/containerd/internal/cri/server/container_start_test.go:97 Error: Not equal: expected: container.Status{Pid:0x0, CreatedAt:1715399825132968360, StartedAt:1715399825132968440, FinishedAt:1715399825132968520, ExitCode:0, Reason:"", Message:"", Starting:false, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} actual : container.Status{Pid:0x0, CreatedAt:1715399825132968360, StartedAt:1715399825132968440, FinishedAt:1715399825132968520, ExitCode:0, Reason:"", Message:"", Starting:true, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} Diff: --- Expected +++ Actual @@ -8,3 +8,3 @@ Message: (string) "", - Starting: (bool) false, + Starting: (bool) true, Removing: (bool) false, Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state Messages: metadata should not be updated
Failed: github.com/containerd/containerd/v2/internal/cri/server.TestSetContainerStarting/should_return_error_when_container_is_in_exited_state: v2/internal/cri/server/container_start_test.go#L97
container_start_test.go:96: Error Trace: /home/runner/actions-runner/_work/containerd/containerd/internal/cri/server/container_start_test.go:96 Error: An error is expected but got nil. Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state container_start_test.go:97: Error Trace: /home/runner/actions-runner/_work/containerd/containerd/internal/cri/server/container_start_test.go:97 Error: Not equal: expected: container.Status{Pid:0x0, CreatedAt:1715399825132968360, StartedAt:1715399825132968440, FinishedAt:1715399825132968520, ExitCode:0, Reason:"", Message:"", Starting:false, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} actual : container.Status{Pid:0x0, CreatedAt:1715399825132968360, StartedAt:1715399825132968440, FinishedAt:1715399825132968520, ExitCode:0, Reason:"", Message:"", Starting:true, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} Diff: --- Expected +++ Actual @@ -8,3 +8,3 @@ Message: (string) "", - Starting: (bool) false, + Starting: (bool) true, Removing: (bool) false, Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state Messages: metadata should not be updated
Linux Integration (io.containerd.runc.v2, runc, actuated-arm64-4cpu-16gb)
Process completed with exit code 2.
Linux Integration (io.containerd.runc.v2, crun, ubuntu-22.04)
Process completed with exit code 2.
Failed: github.com/containerd/containerd/v2/internal/cri/server.TestSetContainerStarting/should_return_error_when_container_is_in_exited_state: v2/internal/cri/server/container_start_test.go#L97
container_start_test.go:96: Error Trace: /home/runner/work/containerd/containerd/internal/cri/server/container_start_test.go:96 Error: An error is expected but got nil. Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state container_start_test.go:97: Error Trace: /home/runner/work/containerd/containerd/internal/cri/server/container_start_test.go:97 Error: Not equal: expected: container.Status{Pid:0x0, CreatedAt:1715399828545663159, StartedAt:1715399828545663309, FinishedAt:1715399828545663459, ExitCode:0, Reason:"", Message:"", Starting:false, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} actual : container.Status{Pid:0x0, CreatedAt:1715399828545663159, StartedAt:1715399828545663309, FinishedAt:1715399828545663459, ExitCode:0, Reason:"", Message:"", Starting:true, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} Diff: --- Expected +++ Actual @@ -8,3 +8,3 @@ Message: (string) "", - Starting: (bool) false, + Starting: (bool) true, Removing: (bool) false, Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state Messages: metadata should not be updated
Failed: github.com/containerd/containerd/v2/internal/cri/server.TestSetContainerStarting/should_return_error_when_container_is_in_exited_state: v2/internal/cri/server/container_start_test.go#L97
container_start_test.go:96: Error Trace: /home/runner/work/containerd/containerd/internal/cri/server/container_start_test.go:96 Error: An error is expected but got nil. Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state container_start_test.go:97: Error Trace: /home/runner/work/containerd/containerd/internal/cri/server/container_start_test.go:97 Error: Not equal: expected: container.Status{Pid:0x0, CreatedAt:1715399828545663159, StartedAt:1715399828545663309, FinishedAt:1715399828545663459, ExitCode:0, Reason:"", Message:"", Starting:false, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} actual : container.Status{Pid:0x0, CreatedAt:1715399828545663159, StartedAt:1715399828545663309, FinishedAt:1715399828545663459, ExitCode:0, Reason:"", Message:"", Starting:true, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} Diff: --- Expected +++ Actual @@ -8,3 +8,3 @@ Message: (string) "", - Starting: (bool) false, + Starting: (bool) true, Removing: (bool) false, Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state Messages: metadata should not be updated
Failed: github.com/containerd/containerd/v2/internal/cri/server.TestSetContainerStarting/should_return_error_when_container_is_in_exited_state: v2/internal/cri/server/container_start_test.go#L97
container_start_test.go:96: Error Trace: /home/runner/work/containerd/containerd/internal/cri/server/container_start_test.go:96 Error: An error is expected but got nil. Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state container_start_test.go:97: Error Trace: /home/runner/work/containerd/containerd/internal/cri/server/container_start_test.go:97 Error: Not equal: expected: container.Status{Pid:0x0, CreatedAt:1715399828545663159, StartedAt:1715399828545663309, FinishedAt:1715399828545663459, ExitCode:0, Reason:"", Message:"", Starting:false, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} actual : container.Status{Pid:0x0, CreatedAt:1715399828545663159, StartedAt:1715399828545663309, FinishedAt:1715399828545663459, ExitCode:0, Reason:"", Message:"", Starting:true, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} Diff: --- Expected +++ Actual @@ -8,3 +8,3 @@ Message: (string) "", - Starting: (bool) false, + Starting: (bool) true, Removing: (bool) false, Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state Messages: metadata should not be updated
Failed: github.com/containerd/containerd/v2/internal/cri/server.TestSetContainerStarting/should_return_error_when_container_is_in_exited_state: v2/internal/cri/server/container_start_test.go#L97
container_start_test.go:96: Error Trace: /home/runner/work/containerd/containerd/internal/cri/server/container_start_test.go:96 Error: An error is expected but got nil. Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state container_start_test.go:97: Error Trace: /home/runner/work/containerd/containerd/internal/cri/server/container_start_test.go:97 Error: Not equal: expected: container.Status{Pid:0x0, CreatedAt:1715399861692561269, StartedAt:1715399861692561429, FinishedAt:1715399861692561569, ExitCode:0, Reason:"", Message:"", Starting:false, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} actual : container.Status{Pid:0x0, CreatedAt:1715399861692561269, StartedAt:1715399861692561429, FinishedAt:1715399861692561569, ExitCode:0, Reason:"", Message:"", Starting:true, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} Diff: --- Expected +++ Actual @@ -8,3 +8,3 @@ Message: (string) "", - Starting: (bool) false, + Starting: (bool) true, Removing: (bool) false, Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state Messages: metadata should not be updated
Failed: github.com/containerd/containerd/v2/internal/cri/server.TestSetContainerStarting/should_return_error_when_container_is_in_exited_state: v2/internal/cri/server/container_start_test.go#L97
container_start_test.go:96: Error Trace: /home/runner/work/containerd/containerd/internal/cri/server/container_start_test.go:96 Error: An error is expected but got nil. Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state container_start_test.go:97: Error Trace: /home/runner/work/containerd/containerd/internal/cri/server/container_start_test.go:97 Error: Not equal: expected: container.Status{Pid:0x0, CreatedAt:1715399861692561269, StartedAt:1715399861692561429, FinishedAt:1715399861692561569, ExitCode:0, Reason:"", Message:"", Starting:false, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} actual : container.Status{Pid:0x0, CreatedAt:1715399861692561269, StartedAt:1715399861692561429, FinishedAt:1715399861692561569, ExitCode:0, Reason:"", Message:"", Starting:true, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} Diff: --- Expected +++ Actual @@ -8,3 +8,3 @@ Message: (string) "", - Starting: (bool) false, + Starting: (bool) true, Removing: (bool) false, Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state Messages: metadata should not be updated
Failed: github.com/containerd/containerd/v2/internal/cri/server.TestSetContainerStarting/should_return_error_when_container_is_in_exited_state: v2/internal/cri/server/container_start_test.go#L97
container_start_test.go:96: Error Trace: /home/runner/work/containerd/containerd/internal/cri/server/container_start_test.go:96 Error: An error is expected but got nil. Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state container_start_test.go:97: Error Trace: /home/runner/work/containerd/containerd/internal/cri/server/container_start_test.go:97 Error: Not equal: expected: container.Status{Pid:0x0, CreatedAt:1715399861692561269, StartedAt:1715399861692561429, FinishedAt:1715399861692561569, ExitCode:0, Reason:"", Message:"", Starting:false, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} actual : container.Status{Pid:0x0, CreatedAt:1715399861692561269, StartedAt:1715399861692561429, FinishedAt:1715399861692561569, ExitCode:0, Reason:"", Message:"", Starting:true, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} Diff: --- Expected +++ Actual @@ -8,3 +8,3 @@ Message: (string) "", - Starting: (bool) false, + Starting: (bool) true, Removing: (bool) false, Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state Messages: metadata should not be updated
Linux Integration (io.containerd.runc.v2, runc, ubuntu-22.04)
Process completed with exit code 2.
Failed: github.com/containerd/containerd/v2/internal/cri/server.TestSetContainerStarting/should_return_error_when_container_is_in_exited_state: v2/internal/cri/server/container_start_test.go#L97
container_start_test.go:96: Error Trace: D:/a/containerd/containerd/src/github.com/containerd/containerd/internal/cri/server/container_start_test.go:96 Error: An error is expected but got nil. Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state container_start_test.go:97: Error Trace: D:/a/containerd/containerd/src/github.com/containerd/containerd/internal/cri/server/container_start_test.go:97 Error: Not equal: expected: container.Status{Pid:0x0, CreatedAt:1715399920989865600, StartedAt:1715399920989865600, FinishedAt:1715399920989865600, ExitCode:0, Reason:"", Message:"", Starting:false, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} actual : container.Status{Pid:0x0, CreatedAt:1715399920989865600, StartedAt:1715399920989865600, FinishedAt:1715399920989865600, ExitCode:0, Reason:"", Message:"", Starting:true, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} Diff: --- Expected +++ Actual @@ -8,3 +8,3 @@ Message: (string) "", - Starting: (bool) false, + Starting: (bool) true, Removing: (bool) false, Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state Messages: metadata should not be updated
Windows Integration (windows-2022)
Process completed with exit code 2.
Windows Integration (windows-2022)
Process completed with exit code 2.
Windows Integration (windows-2022)
Process completed with exit code 2.
Failed: github.com/containerd/containerd/v2/internal/cri/server.TestSetContainerStarting/should_return_error_when_container_is_in_exited_state: v2/internal/cri/server/container_start_test.go#L97
container_start_test.go:96: Error Trace: D:/a/containerd/containerd/src/github.com/containerd/containerd/internal/cri/server/container_start_test.go:96 Error: An error is expected but got nil. Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state container_start_test.go:97: Error Trace: D:/a/containerd/containerd/src/github.com/containerd/containerd/internal/cri/server/container_start_test.go:97 Error: Not equal: expected: container.Status{Pid:0x0, CreatedAt:1715400267080053200, StartedAt:1715400267080053200, FinishedAt:1715400267080053200, ExitCode:0, Reason:"", Message:"", Starting:false, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} actual : container.Status{Pid:0x0, CreatedAt:1715400267080053200, StartedAt:1715400267080053200, FinishedAt:1715400267080053200, ExitCode:0, Reason:"", Message:"", Starting:true, Removing:false, Unknown:false, Resources:(*v1.ContainerResources)(nil)} Diff: --- Expected +++ Actual @@ -8,3 +8,3 @@ Message: (string) "", - Starting: (bool) false, + Starting: (bool) true, Removing: (bool) false, Test: TestSetContainerStarting/should_return_error_when_container_is_in_exited_state Messages: metadata should not be updated
Windows Integration (windows-2019)
Process completed with exit code 2.
Windows Integration (windows-2019)
Process completed with exit code 2.
Windows Integration (windows-2019)
Process completed with exit code 2.
Report required job statuses
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
TestResults MacOS
86.1 KB
TestResults io.containerd.runc.v2 crun actuated-arm64-4cpu-16gb
123 KB
TestResults io.containerd.runc.v2 crun ubuntu-22.04
132 KB
TestResults io.containerd.runc.v2 runc actuated-arm64-4cpu-16gb
123 KB
TestResults io.containerd.runc.v2 runc ubuntu-22.04
132 KB
TestResults windows-2019
76.4 KB
TestResults windows-2022
75.6 KB