Skip to content

Add CI periodic Windows Jobs.#5165

Merged
dmcgowan merged 3 commits intocontainerd:masterfrom
adelina-t:azure_ci_workflow
May 28, 2021
Merged

Add CI periodic Windows Jobs.#5165
dmcgowan merged 3 commits intocontainerd:masterfrom
adelina-t:azure_ci_workflow

Conversation

@adelina-t
Copy link
Copy Markdown

@adelina-t adelina-t commented Mar 11, 2021

Part of the ongoing work described here: #5039

This introduces a periodic Windows 1909 testing job. This will be expanded to multiple Windows Versions. The goal is to improve testing volume & coverage on multiple Windows versions in order to pick up any regression or intermittent issue with containerD for Windows.

TO-DOs:

@k8s-ci-robot
Copy link
Copy Markdown

Hi @adelina-t. 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.

Comment thread .github/workflows/periodic.yml Outdated
Comment thread .github/workflows/periodic.yml Outdated
Comment thread .github/workflows/periodic.yml Outdated
Comment on lines 80 to 86
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm bit confused regarding the lines there. We cloned the latest hcsshim, but checked out the version on containerd's go.mod. What is the version we'd like to test against?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes. Basically I'm doing what the windows integration PR test does now. The goal is to periodically test the HEAD version of containerD and as such, to avoid any issue that might be introduced by using latest hcsshim , we use the version indicated by containerD. I am actually thinking of adding some flexibility here that would allow for creation of test runs that would say: validate latest hcsshim with a stable containerD version ( or whatever else combination that there might be a need for ), but that is something I'm considering down the line.

Also, in doing it as such, this job can easily be used to test other containerD branches and being sure that it will build hcsshim properly for that contaienrD version / branch. ( Which reminds me, I need to use the github env params for the containerD checkout as well so it doesn't pull master all the time ).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I wonder if it would be good in the future to disentangle the version of the hcsshim shim binary that is used, from the version of the other hcsshim package dependencies that are used. That is probably a better discussion to be had elsewhere though. :)

@adelina-t adelina-t force-pushed the azure_ci_workflow branch 3 times, most recently from 863262b to 213c169 Compare April 5, 2021 19:52
@adelina-t adelina-t force-pushed the azure_ci_workflow branch 3 times, most recently from 77c7024 to 6610152 Compare April 13, 2021 11:23
Comment thread .github/workflows/windows-periodic.yml Outdated
Comment thread .github/workflows/windows-periodic.yml Outdated
Comment thread .github/workflows/windows-periodic.yml Outdated
Comment thread .github/workflows/windows-periodic.yml Outdated
Comment thread .github/workflows/windows-periodic.yml Outdated
Comment thread .github/workflows/windows-periodic.yml Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment thread .github/workflows/windows-periodic.yml Outdated
Comment thread script/setup/prepare_env_windows.ps1 Outdated
Comment thread script/setup/prepare_env_windows.ps1 Outdated
@adelina-t adelina-t changed the title WIP: Add CI periodic Windows Jobs. Add CI periodic Windows Jobs. Apr 19, 2021
@adelina-t
Copy link
Copy Markdown
Author

/cc @dims @cpuguy83 @kevpar @estesp

Signed-off-by: Adelina Tuvenie <[email protected]>
Comment thread .github/workflows/windows-periodic.yml Outdated
with:
azcliversion: latest
inlinescript: |
az group create -n ${{ matrix.AZURE_RESOURCE_GROUP }} -l ${{ env.AZURE_DEFAULT_LOCATION }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you add `--tags creationTimestamp=$(date +%Y-%m-%dT%T%z) so the RG will get cleaned up by the automation in event anything goes wrong?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

@adelina-t adelina-t force-pushed the azure_ci_workflow branch 3 times, most recently from 7665d96 to b94b9d4 Compare April 22, 2021 09:50
@containerd containerd deleted a comment from theopenlab-ci Bot Apr 22, 2021
@estesp
Copy link
Copy Markdown
Member

estesp commented Apr 22, 2021

This job refers to various secrets/credentials; I assume those are not set up yet in the containerd/containerd repo? Do you have a run of this in a branch to validate it's working properly?

@adelina-t
Copy link
Copy Markdown
Author

adelina-t commented Apr 22, 2021

This job refers to various secrets/credentials; I assume those are not set up yet in the containerd/containerd repo?

No, they are not set up yet, we have to coordinate with a maintainer with access to the repo to set those secrets.

Do you have a run of this in a branch to validate it's working properly?

My branch https://github.com/adelina-t/containerd/tree/azure_ci_testing contains the exact same code as https://github.com/adelina-t/containerd/tree/azure_ci_workflow (the one from which the PR originated) + a commit to enable workflow_dispatch trigger. Corresponding github actions job runs can be seen here.

This workflow is also set up to publish results to testgrid, you can see them on the dashboard here to get an ideea: https://testgrid.k8s.io/sig-windows-containerd-runtime-signal#win-2004-containerd-master-integration . All were ran from my fork when testing. Corresponding artifacts are published here, you can see a folder for the Windows sac2004.

Copy link
Copy Markdown
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

This looks like a good start.
LGTM.

Thanks!

@dims
Copy link
Copy Markdown
Member

dims commented May 10, 2021

a lot of work stitching things together, GCS upload / Windows Job / Github Actions .... heads's spinning :)

@dims
Copy link
Copy Markdown
Member

dims commented May 10, 2021

LGTM let's kick the tires.

Comment thread .github/workflows/windows-periodic.yml Outdated
Comment thread .github/workflows/windows-periodic.yml
@adelina-t
Copy link
Copy Markdown
Author

a lot of work stitching things together, GCS upload / Windows Job / Github Actions .... heads's spinning :)

C'est la vie if we want test grid. Good part is that at least some bits shouldn't need to change all that much or at least aren't that brittle.

@adelina-t adelina-t force-pushed the azure_ci_workflow branch from b94b9d4 to fd7b07c Compare May 17, 2021 14:18
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 17, 2021

Build succeeded.

@adelina-t adelina-t force-pushed the azure_ci_workflow branch from fd7b07c to 1b207a6 Compare May 18, 2021 12:33
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 18, 2021

Build succeeded.

@adelina-t
Copy link
Copy Markdown
Author

/retest

@k8s-ci-robot
Copy link
Copy Markdown

@adelina-t: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/retest

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.

@adelina-t adelina-t force-pushed the azure_ci_workflow branch from 1b207a6 to e5a0c47 Compare May 18, 2021 15:13
Adelina Tuvenie added 2 commits May 18, 2021 18:25
Add 2019 to matrix

Signed-off-by: Adelina Tuvenie <[email protected]>
@adelina-t adelina-t force-pushed the azure_ci_workflow branch from e5a0c47 to 77285e3 Compare May 18, 2021 15:25
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 18, 2021

Build succeeded.

Copy link
Copy Markdown
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, looks like this is ready.

Before merge, I believe we will have to add the following secrets to our containerd org settings; will need to work offline to get that set up:
AZURE_SUB_ID
AZURE_CREDS
GCP_PROJECT_ID
GCP_SA_KEY

@adelina-t
Copy link
Copy Markdown
Author

LGTM, looks like this is ready.

Before merge, I believe we will have to add the following secrets to our containerd org settings; will need to work offline to get that set up:
AZURE_SUB_ID
AZURE_CREDS
GCP_PROJECT_ID
GCP_SA_KEY

Excellent :) @estesp How can we coordinate so I can send the secrets? I've already gotten all I need in terms of service accounts for Azure internally, I can provide them.

@dmcgowan
Copy link
Copy Markdown
Member

@adelina-t you can send to any of our emails or the security mailing list. You can use the gpg keys registered on Github (estesp, dmcgowan)

@dmcgowan dmcgowan added the status/needs-update Awaiting contributor update label May 27, 2021
@adelina-t
Copy link
Copy Markdown
Author

@adelina-t you can send to any of our emails or the security mailing list. You can use the gpg keys registered on Github (estesp, dmcgowan)

Done

@dmcgowan dmcgowan merged commit 334e747 into containerd:master May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants