Skip to content

ci: run conformance with presubmit artifacts hosted on Azure#1264

Merged
k8s-ci-robot merged 1 commit into
kubernetes-sigs:masterfrom
chewong:upload-build-to-azure
May 3, 2021
Merged

ci: run conformance with presubmit artifacts hosted on Azure#1264
k8s-ci-robot merged 1 commit into
kubernetes-sigs:masterfrom
chewong:upload-build-to-azure

Conversation

@chewong
Copy link
Copy Markdown
Member

@chewong chewong commented Mar 24, 2021

What type of PR is this?

What this PR does / why we need it:

/kind feature

Build and upload Kubernetes artifacts built from a k/k PR to Azure blob storage and ACR, and allow CAPZ clusters to consume them at runtime.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

Build and upload Kubernetes artifacts build from a k/k PR to Azure blob storage and ACR, and allow CAPZ clusters to consume them at runtime.

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/provider/azure Issues or PRs related to azure provider labels Mar 24, 2021
@k8s-ci-robot k8s-ci-robot added sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 24, 2021
@chewong
Copy link
Copy Markdown
Member Author

chewong commented Mar 24, 2021

Original Error: Code=\"PlatformImageNotFound\" Message=\"The platform image 'cncf-upstream:capi:k8s-1dot21dot0-ubuntu-1804:latest' is not available.

@CecileRobertMichon do you know what the best platform image I should be using for a pre-released version like v1.21.0? The default assumes that the image is already published.

@CecileRobertMichon
Copy link
Copy Markdown
Contributor

@chewong chewong closed this Mar 25, 2021
@chewong chewong reopened this Mar 25, 2021
Comment thread docs/topics/kubernetes-developers.md Outdated
Comment thread scripts/ci-entrypoint.sh Outdated
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Apr 5, 2021
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 14, 2021
@chewong chewong changed the title [WIP] ci: build and upload Kubernetes artifacts to Azure [WIP] ci: run conformance with presubmit artifacts hosted on Azure Apr 19, 2021
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 19, 2021
@chewong
Copy link
Copy Markdown
Member Author

chewong commented Apr 20, 2021

/uncc alexeldeib nader-ziada

@chewong chewong marked this pull request as ready for review April 20, 2021 23:37
@chewong
Copy link
Copy Markdown
Member Author

chewong commented Apr 20, 2021

Comment thread templates/test/dev/custom-builds/patches/custom-builds.yaml
Comment thread hack/util.sh
capz::util::should_build_kubernetes() {
# JOB_TYPE, REPO_OWNER, and REPO_NAME are enviornment variables set by a prow job -
# https://github.com/kubernetes/test-infra/blob/master/prow/jobs.md#job-environment-variables
if [[ "${JOB_TYPE:-}" == "presubmit" ]] && [[ "${REPO_OWNER:-}/${REPO_NAME:-}" == "kubernetes/kubernetes" ]]; then
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.

it might be convenient to allow overriding this to true to allow running this test suite locally to test a k/k change, WDYT?

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.

(non-blocking, can be a follow up)

@CecileRobertMichon
Copy link
Copy Markdown
Contributor

/test pull-cluster-api-provider-azure-conformance-v1alpha4
/test pull-cluster-api-provider-azure-conformance-with-ci-artifacts

@chewong
Copy link
Copy Markdown
Member Author

chewong commented Apr 26, 2021

Looks like this PR is depending on #1333. I'll rebase once it's merged.

@CecileRobertMichon
Copy link
Copy Markdown
Contributor

Looks like this PR is depending on #1333. I'll rebase once it's merged.

hopefully, kubernetes/test-infra#21953 merges soon.

In the meantime, any doc updates required in https://capz.sigs.k8s.io/developers/kubernetes-developers.html#testing-clusters-built-from-kubernetes-source ?

@chewong
Copy link
Copy Markdown
Member Author

chewong commented Apr 26, 2021

Looks like this PR is depending on #1333. I'll rebase once it's merged.

hopefully, kubernetes/test-infra#21953 merges soon.

In the meantime, any doc updates required in https://capz.sigs.k8s.io/developers/kubernetes-developers.html#testing-clusters-built-from-kubernetes-source ?

I think the required docs update is related to #1264 (comment), since the script is meant for the CI environment for now. I can open a follow-up PR to address both at the same time.

@jackfrancis
Copy link
Copy Markdown
Contributor

Looks like two tests failed due to a part in the script where it bails if $REGISTRY is not set.

./scripts/ci-conformance.sh: line 60: REGISTRY: Environment variable empty or not defined.

@chewong
Copy link
Copy Markdown
Member Author

chewong commented Apr 27, 2021

Looks like two tests failed due to a part in the script where it bails if $REGISTRY is not set.

./scripts/ci-conformance.sh: line 60: REGISTRY: Environment variable empty or not defined.

#1333 should fix this issue

@CecileRobertMichon
Copy link
Copy Markdown
Contributor

@chewong go ahead and rebase now that #1333 has merged

@chewong
Copy link
Copy Markdown
Member Author

chewong commented Apr 28, 2021

@CecileRobertMichon rebased. Ready for a final round of review

Comment thread templates/test/dev/custom-builds/patches/custom-builds.yaml
@CecileRobertMichon
Copy link
Copy Markdown
Contributor

/test pull-cluster-api-provider-azure-conformance-v1alpha4
/test pull-cluster-api-provider-azure-conformance-with-ci-artifacts

Signed-off-by: Ernest Wong <chuwon@microsoft.com>
@chewong
Copy link
Copy Markdown
Member Author

chewong commented Apr 30, 2021

/test pull-cluster-api-provider-azure-conformance-v1alpha4
/test pull-cluster-api-provider-azure-conformance-with-ci-artifacts

@chewong
Copy link
Copy Markdown
Member Author

chewong commented Apr 30, 2021

/retest

@CecileRobertMichon
Copy link
Copy Markdown
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 30, 2021
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CecileRobertMichon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 30, 2021
Copy link
Copy Markdown
Contributor

@jackfrancis jackfrancis left a comment

Choose a reason for hiding this comment

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

lgtm

@chewong
Copy link
Copy Markdown
Member Author

chewong commented Apr 30, 2021

/retest

2 similar comments
@chewong
Copy link
Copy Markdown
Member Author

chewong commented May 3, 2021

/retest

@chewong
Copy link
Copy Markdown
Member Author

chewong commented May 3, 2021

/retest

@k8s-ci-robot k8s-ci-robot merged commit d1bf8dd into kubernetes-sigs:master May 3, 2021
@k8s-ci-robot k8s-ci-robot added this to the v0.5.0 milestone May 3, 2021
@CecileRobertMichon CecileRobertMichon mentioned this pull request Jun 23, 2021
8 tasks
@dims
Copy link
Copy Markdown
Member

dims commented Jul 26, 2021

/cc

@k8s-ci-robot k8s-ci-robot requested a review from dims July 26, 2021 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/provider/azure Issues or PRs related to azure provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants