Adds cri-integration job#1427
Conversation
2079cd5 to
d7037f3
Compare
| - name: Run hcsshim integration tests | ||
| shell: powershell | ||
| run: | | ||
| cri-containerd.test.exe -cri-endpoint="npipe://./pipe/containerd-containerd" -feature="WCOWProcess" -feature="HostProcess" --test.run="[^Test_Container_CRI_Restart$|^Test_Container_CRI_Restart_State$|^Test_RunContainer_InheritUser_JobContainer_WCOW$|^Test_RunContainer_Hostname_JobContainer_WCOW$|^Test_RunContainer_Hostname_JobContainer_WCOW$|^Test_RunContainer_GroupName_JobContainer_WCOW$|^Test_RunContainer_HNS_JobContainer_WCOW$|^Test_RunContainer_VHD_JobContainer_WCOW$|^Test_RunContainer_ETW_JobContainer_WCOW$|^Test_RunContainer_HostVolumes_JobContainer_WCOW$|^Test_RunContainer_JobContainer_VolumeMount$|^Test_RunContainer_JobContainer_Environment$|^Test_RunContainer_WorkingDirectory_JobContainer_WCOW$|^Test_DoubleQuoting_JobContainer_WCOW$|^Test_BindSupport_JobContainer_WCOW$|^Test_BindSupport_MultipleContainers_JobContainer_WCOW$|^Test_RunPodSandbox_CPUCount_WCOW_Process$|^Test_RunPodSandbox_CPULimit_WCOW_Process$]" |
There was a problem hiding this comment.
Oh my word 😭 I'll figure out why the jobcontainer tests don't seem to be working so we can remove 90% of this
There was a problem hiding this comment.
Found it, we need to upgrade our CRI api version to one that has the hostprocess field. Containerd just takes the value of whatever is filled in for the hostprocess CRI field and sets the hpc annotation https://github.com/containerd/containerd/blob/9c6154bff15818916c851eb3a12764b018e191fb/pkg/cri/server/container_create_windows.go#L136. Our tests were authored before the hostprocess field actually got into the CRI api so the annotation we're setting is being overridden by containerd setting it as well.
There was a problem hiding this comment.
This should fix most things #1434. I'll need to fix up the images the tests use to have a manifest list with a ws2022 entry as upstream containerd through the CRI entry point matches to the hosts build..
a21ef4b to
431f8e4
Compare
679fb87 to
704c227
Compare
|
@microsoft/containerplat Anyone able to give this a peek? Would add more confidence for future PRs |
8952e4f to
9d1cbca
Compare
This change adds integration tests to hcsshim. We currently run only the containerd tests, with tasks already written (but disabled) to run the cri-containerd tests in this repo. Signed-off-by: Gabriel Adrian Samfira <[email protected]>
9d1cbca to
f128b60
Compare
|
Checking this in as no more live comments. Thanks Gabriel! |
This PR adds an integration tests job to the CI workflow. Both the containerd cri-integration tests and the hcsshim cri-containerd tests are run as part of it. The tests run against the main branch of containerd.
Signed-off-by: Gabriel Adrian Samfira [email protected]