Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add gke workflow #15416

Merged

Conversation

nebril
Copy link
Member

@nebril nebril commented Mar 22, 2021

This is an adapted workflow from cilium-cli repo

note - actual gke runs are running in #15421 to actually test these changes, but we want to use pull_request_target here so this PR is actually going to get merged after #15421 passes and reviews are in

@nebril nebril requested review from a team as code owners March 22, 2021 13:53
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Mar 22, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.10.0 Mar 22, 2021
@nebril nebril force-pushed the pr/nebril/gke-workflow-migrate-from-cli branch from ebec3df to 151a164 Compare March 22, 2021 13:58
@nebril nebril added the release-note/ci This PR makes changes to the CI. label Mar 22, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Mar 22, 2021
@nebril nebril force-pushed the pr/nebril/gke-workflow-migrate-from-cli branch from 151a164 to 29c92ef Compare March 22, 2021 15:58
@nebril nebril force-pushed the pr/nebril/gke-workflow-migrate-from-cli branch from 29c92ef to d7cb51d Compare March 22, 2021 17:49
@nebril
Copy link
Member Author

nebril commented Mar 22, 2021

Test run that seems to be successful: https://github.com/cilium/cilium/pull/15421/checks?check_run_id=2168532614 (on the PR that has the same code, but pull_request target is uncommented

EDIT: the test run I linked to above failed 2 connectivity tests with encrypted Cilium install. Will investigate tomorrow.

@nebril nebril requested a review from nbusseneau March 22, 2021 18:02
@nebril nebril marked this pull request as draft March 23, 2021 12:09
@nebril nebril marked this pull request as ready for review March 23, 2021 12:09
@nebril nebril force-pushed the pr/nebril/gke-workflow-migrate-from-cli branch from d7cb51d to 85c162b Compare March 23, 2021 16:10
.github/workflows/gke.yaml Show resolved Hide resolved
.github/workflows/gke.yaml Outdated Show resolved Hide resolved
This is an adapted workflow from cilium-cli repo

Signed-off-by: Maciej Kwiek <maciej@isovalent.com>
@nebril nebril force-pushed the pr/nebril/gke-workflow-migrate-from-cli branch from 85c162b to 58d52a3 Compare March 23, 2021 17:08
@nebril
Copy link
Member Author

nebril commented Mar 23, 2021

.github/workflows/gke.yaml Show resolved Hide resolved
- name: Create GKE cluster
run: |
gcloud container clusters create ${{ env.clusterName }} \
--preemptible \
Copy link
Member

Choose a reason for hiding this comment

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

I'll be curious whether --preemptible has any impact on CI stability. Hopefully no impact.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure TBH. We will only know if we run it for a bit and get data.

Copy link
Member

Choose a reason for hiding this comment

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

It will have some impact and we can always just re-run, but yea, from my testing the clusters are sufficiently short-lived that it basically never is an issue. I suppose we'll have to see how it performs for real.

@joestringer joestringer removed their assignment Mar 24, 2021
@joestringer joestringer merged commit da93032 into cilium:master Mar 24, 2021
1.10.0 automation moved this from In progress to Done Mar 24, 2021
This was referenced Apr 2, 2021
nebril pushed a commit that referenced this pull request Apr 7, 2021
This workflow has been migrated from `cilium-cli` as part of the CI 3.0
initiative, and adapted based on the previous migration made for GKE.

See #15416 and
#15482 for more details on the
structure and adaptations made.

Triggers:
- `eks.yaml` is triggered automatically when a comment starting with
  `ci-eks` is made on an PR. In this case, a GitHub status check is
  manually registered for the PR SHA commit, and will show up in the PR
  status checks with a link to the workflow run.
- `eks.yaml` is also triggered automatically on merge to `master`. In
  this case a GitHub status check is already automatically registered by
  the `push` event, so we skip manual status check registering.
- A commented `pull_request` trigger is available for workflow
  developers: it may be uncommented and used in test PRs for testing the
  workflow using the `ci-run/gke` label (requires write privileges as it
  will only work for PRs from branches in the Cilium repo, not from
  fork). Of course it should be left commented for the real PR.

Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
nebril pushed a commit that referenced this pull request Apr 7, 2021
This workflow has been migrated from https://github.com/cilium/cilium-cli/
as part of the CI 3.0 initiative, and adapted based on the previous
migration made for GKE.

See #15416 and
#15482 for more details on the
structure and adaptations made.

Triggers:
- `aks.yaml` is triggered automatically when a comment starting with
  `ci-aks` is made on an PR. In this case, a GitHub status check is
  manually registered for the PR SHA commit, and will show up in the PR
  status checks with a link to the workflow run.
- `aks.yaml` is also triggered automatically on merge to `master`. In
  this case a GitHub status check is already automatically registered by
  the `push` event, so we skip manual status check registering.
- A commented `pull_request` trigger is available for workflow
  developers: it may be uncommented and used in test PRs for testing the
  workflow using the `ci-run/gke` label (requires write privileges as it
  will only work for PRs from branches in the Cilium repo, not from
  fork). Of course it should be left commented for the real PR.

Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/ci This PR makes changes to the CI.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants