Skip to content

Conversation

@TBBle
Copy link
Contributor

@TBBle TBBle commented Mar 6, 2022

As suggested at #4878 (comment), and enhancing #5039.

I figured this was less work and less-costly than actually getting AKS and GCP accounts set up to let me run the CRI tests via the periodic job, and I don't have a regular Windows Server machine at-hand to run the tests locally.

TBBle added 2 commits March 6, 2022 17:32
There's no specific need mentioned at the points it was added, and it
makes the Windows-hosted test run setup slightly weird.

Signed-off-by: Paul "TBBle" Hampson <[email protected]>
Signed-off-by: Paul "TBBle" Hampson <[email protected]>
@k8s-ci-robot
Copy link

Hi @TBBle. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 6, 2022

Build succeeded.

  • containerd-build-arm64 : RETRY_LIMIT in 3m 45s (non-voting)
  • containerd-test-arm64 : RETRY_LIMIT in 5m 41s (non-voting)
  • containerd-integration-test-arm64 : RETRY_LIMIT in 25m 52s (non-voting)

@TBBle
Copy link
Contributor Author

TBBle commented Mar 6, 2022

The two Linux-side test failures in the test run seem likely to be flakes. Both failed in the same two tests, TestContainerKillInitPidHost and TestContainerKillInitKillsChildWhenNotHostPid; nothing I changed here should have affected that.

These failures didn't occur on the run for the same code in my fork.

The Windows Server 2022 failure is probably also a flake, as it was a bunch of failures in the cri-integration tests that I hadn't seen in either the above run on my fork, or the earlier run before I added critest.

That said, I was curious to see if I was going to see a failure I did see in my fork's last couple of runs, but it happens in cri-tools and so is later that the failure I hit here.

[Fail] [k8s.io] Streaming runtime should support streaming interfaces [It] runtime should support exec with tty=true and stdin=true [Conformance] 
github.com/kubernetes-sigs/cri-tools/pkg/validate/streaming.go:203

I will push a minor change (I forgot to bump the job timeout when I added critest) and see if run comes out differently.

Edit: And it passed on the second attempt Huzzah..

TBBle added 2 commits March 6, 2022 19:26
Signed-off-by: Paul "TBBle" Hampson <[email protected]>
Apart from crictl and go-junit-report, this script is just making the
remote test VMs look like GitHub Actions VMs, i.e. git, make-mingw32,
golang.

And we don't use go-junit-report, so we can save a lot of time (about
five minutes) by just extracting the interesting part.

Signed-off-by: Paul "TBBle" Hampson <[email protected]>
@TBBle TBBle force-pushed the run-cri_integration-tests-in-GitHub_Actions branch from e7703ae to 48b4783 Compare March 6, 2022 08:28
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 6, 2022

Build succeeded.

  • containerd-build-arm64 : RETRY_LIMIT in 3m 56s (non-voting)
  • containerd-test-arm64 : RETRY_LIMIT in 5m 43s (non-voting)
  • containerd-integration-test-arm64 : RETRY_LIMIT in 30m 14s (non-voting)


func TestAdditionalGids(t *testing.T) {
testPodLogDir, err := os.MkdirTemp("/tmp", "additional-gids")
testPodLogDir, err := os.MkdirTemp("", "additional-gids")
Copy link
Member

Choose a reason for hiding this comment

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

t.TempDir is more preferable, but can be another PR

Copy link
Contributor Author

@TBBle TBBle Mar 6, 2022

Choose a reason for hiding this comment

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

Sure. This at-least lines them up with the other os.MkdirTemp calls that didn't have /tmp hardcoded.

@AkihiroSuda AkihiroSuda changed the title Run CRI integration tests in GitHub Actions Run CRI integration tests in GitHub Actions (Windows) Mar 6, 2022
Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

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.

4 participants