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 Workflow: Add all Azure supported k8s versions #26356

Merged
merged 2 commits into from Jun 21, 2023

Conversation

brlbil
Copy link
Contributor

@brlbil brlbil commented Jun 19, 2023

The current aks conformance tests run against one version of k8s either a specific version or the default version that is provided by the cloud provider.

This PR adds all the supported k8s versions by Azure in a matrix strategy.

Other cloud providers will be added by subsequent PRs.

Normal run examples:
conformance-aks-v1.12.yaml
conformance-aks-v1.13.yaml
conformance-aks.yaml

Schedule run simulated:
conformance-aks-v1.12.yaml
conformance-aks-v1.13.yaml , failures are not related cluster installation
conformance-aks.yaml

@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 Jun 19, 2023
@brlbil brlbil force-pushed the pr/brlbil/ci-aks-k8s-version branch from 406e292 to 14e2b13 Compare June 19, 2023 14:20
@brlbil brlbil added area/CI Continuous Integration testing issue or flake area/CI-improvement Topic or proposal to improve the Continuous Integration workflow release-note/ci This PR makes changes to the CI. labels Jun 19, 2023
@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 Jun 19, 2023
@brlbil brlbil force-pushed the pr/brlbil/ci-aks-k8s-version branch 2 times, most recently from 935d908 to 002a9d8 Compare June 19, 2023 17:24
@brlbil brlbil marked this pull request as ready for review June 19, 2023 17:38
@brlbil brlbil requested review from a team as code owners June 19, 2023 17:38
Comment on lines 160 to 189

conformance-schema-validation:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1
with:
python-version: '3.10'
- run: pip install yamale
- name: Checkout code
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
persist-credentials: false
# hard-code the path instead of using ${{ github.repository }} to make sure it works for forked repo as well
path: src/github.com/cilium/cilium

- name: Validate schema of aws, azure and gke action files
shell: bash
run: |
for dir in aws azure gke;do
for name in k8s-versions test-config; do
file_base="src/github.com/cilium/cilium/.github/actions/${dir}/${name}"
if [ -f ${file_base}.yaml ];then
yamale -s ${file_base}-schema.yaml ${file_base}.yaml;
fi
done
done

Copy link
Member

Choose a reason for hiding this comment

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

Ideally this would be handled in a separate PR on which all of #26356, #26351 and #26354 depend, but it's OK to just have the other PRs depend on this one as well. I think at the very least we should split this in a separate commit though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was good that this part was highlighted because tests did not cover some of the files.
Fixed it, and separated it as a commit.

The current aks conformance tests run against one version of k8s
either a specific version or the default version that is provided
by the cloud provider.

This commit adds all the supported k8s versions by Azure
in a matrix strategy.

Signed-off-by: Birol Bilgin <birol@cilium.io>
This commit adds schema validation for conformance
tests action files

Signed-off-by: Birol Bilgin <birol@cilium.io>
@brlbil brlbil force-pushed the pr/brlbil/ci-aks-k8s-version branch from 002a9d8 to 236187d Compare June 21, 2023 06:47
Copy link
Member

@bimmlerd bimmlerd left a comment

Choose a reason for hiding this comment

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

I don't feel particularly qualified, see comment, but what is owned by contributing LGTM.

@@ -0,0 +1,6 @@
include: list(include('includeItem'))
Copy link
Member

Choose a reason for hiding this comment

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

somewhat meta, but should .github/actions/ (maybe even all of .github) be CODEOWNED by by the cilium/ci-structure team instead of contributing? This feels far in the GHA action territory.

@nbusseneau nbusseneau added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 21, 2023
@ti-mo ti-mo merged commit e8f8fa9 into main Jun 21, 2023
48 of 53 checks passed
@ti-mo ti-mo deleted the pr/brlbil/ci-aks-k8s-version branch June 21, 2023 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake area/CI-improvement Topic or proposal to improve the Continuous Integration workflow ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants