-
Notifications
You must be signed in to change notification settings - Fork 430
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
Add template for performance testing with custom Kubernetes version #5342
base: main
Are you sure you want to change the base?
Conversation
f60ccc6
to
007ef8e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5342 +/- ##
=======================================
Coverage 52.43% 52.43%
=======================================
Files 272 272
Lines 29401 29401
=======================================
Hits 15417 15417
Misses 13178 13178
Partials 806 806 ☔ View full report in Codecov by Sentry. |
/test ls |
@Jont828: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
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-sigs/prow repository. |
5a0efc2
to
e05f164
Compare
/test pull-cluster-api-provider-azure-load-test-custom-builds |
2 similar comments
/test pull-cluster-api-provider-azure-load-test-custom-builds |
/test pull-cluster-api-provider-azure-load-test-custom-builds |
dd8b409
to
d321deb
Compare
/test pull-cluster-api-provider-azure-load-test-custom-builds |
4 similar comments
/test pull-cluster-api-provider-azure-load-test-custom-builds |
/test pull-cluster-api-provider-azure-load-test-custom-builds |
/test pull-cluster-api-provider-azure-load-test-custom-builds |
/test pull-cluster-api-provider-azure-load-test-custom-builds |
4e15c40
to
0a0569d
Compare
/test pull-cluster-api-provider-azure-load-test-custom-builds |
/test pull-cluster-api-provider-azure-load-test-custom-builds |
2 similar comments
/test pull-cluster-api-provider-azure-load-test-custom-builds |
/test pull-cluster-api-provider-azure-load-test-custom-builds |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test pull-cluster-api-provider-azure-load-test-custom-builds |
1 similar comment
/test pull-cluster-api-provider-azure-load-test-custom-builds |
We finally got a passing perf test run! |
Running again to verify that it works during busier hours while other PR jobs are running simultaneously. /test pull-cluster-api-provider-azure-load-test-custom-builds |
7550b03
to
365ccc0
Compare
/test pull-cluster-api-provider-azure-load-test-custom-builds |
Bump timeout back to 30m and try again. /test pull-cluster-api-provider-azure-load-test-custom-builds |
c865b5c
to
e1c4aef
Compare
e1c4aef
to
77cfeb6
Compare
@@ -1,4 +1,4 @@ | |||
#!/usr/bin/env bash | |||
1#!/usr/bin/env bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
1#!/usr/bin/env bash | |
#!/usr/bin/env bash |
@@ -260,4 +260,4 @@ rm -r combined_contexts.yaml | |||
rm -f tilt-settings-temp.yaml | |||
} | |||
|
|||
main | |||
main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add back the trailing newline? That seems to be preferred in this codebase.
@@ -377,7 +377,7 @@ create-workload-cluster: $(ENVSUBST) $(KUBECTL) ## Create a workload cluster. | |||
timeout --foreground 1800 bash -c "while ! $(KUBECTL) get secrets -n default | grep $(CLUSTER_NAME)-kubeconfig; do sleep 1; done" | |||
# Get kubeconfig and store it locally. | |||
$(KUBECTL) get secret/$(CLUSTER_NAME)-kubeconfig -n default -o json | jq -r .data.value | base64 --decode > ./kubeconfig | |||
$(KUBECTL) -n default wait --for=condition=Ready --timeout=10m cluster "$(CLUSTER_NAME)" | |||
$(KUBECTL) -n default wait --for=condition=Ready --timeout=30m cluster "$(CLUSTER_NAME)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth parameterizing this, like --timeout=$(CLUSTER_TIMEOUT)
, so we can leave the default at 10m? This is a popular Makefile target and this may change the overall duration of e2e test failures, or surprise users who were accustomed to failure after 10 minutes.
# Run the az login command with managed identity | ||
if az login --identity > /dev/null 2>&1; then | ||
echo "Logged in Azure with managed identity" | ||
echo "Use OOT credential provider" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "Use OOT credential provider" | |
echo "Using OOT credential provider" |
Maybe? Seems more consistent with other log messages here.
echo "Logged in Azure with managed identity" | ||
echo "Use OOT credential provider" | ||
mkdir -p /var/lib/kubelet/credential-provider | ||
az storage blob download --blob-url "https://${AZURE_STORAGE_ACCOUNT}.blob.core.windows.net/${AZURE_BLOB_CONTAINER_NAME}/${IMAGE_TAG_ACR_CREDENTIAL_PROVIDER}/azure-acr-credential-provider" -f /var/lib/kubelet/credential-provider/acr-credential-provider --auth-mode login |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe set https://${AZURE_STORAGE_ACCOUNT}.blob.core.windows.net/${AZURE_BLOB_CONTAINER_NAME}/${IMAGE_TAG_ACR_CREDENTIAL_PROVIDER}
to a local env var so we make the az storage blob
and curl
commands a bit more readable?
osDisk: | ||
diskSizeGB: 128 | ||
osType: Linux | ||
sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} | ||
userAssignedIdentities: | ||
- providerID: /subscriptions/${AZURE_SUBSCRIPTION_ID}/resourceGroups/${CI_RG:=capz-ci}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/${USER_IDENTITY:=cloud-provider-user-identity} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we not want to include default values here?
@@ -183,12 +282,18 @@ spec: | |||
template: | |||
spec: | |||
identity: UserAssigned | |||
image: | |||
marketplace: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Azure Marketplace images are deprecated and won't be updated. Azure Community Gallery is the new hotness:
image:
computeGallery:
gallery: "ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019"
name: "capi-ubun2-2404"
version: "latest"
set -o nounset | ||
set -o pipefail | ||
set -o errexit | ||
[[ $(id -u) != 0 ]] && SUDO="sudo" || SUDO="" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same script, same comment: I don't think sudo
is used here.
@@ -261,14 +420,20 @@ spec: | |||
windowsServerVersion: ${WINDOWS_SERVER_VERSION:=""} | |||
spec: | |||
identity: UserAssigned | |||
image: | |||
marketplace: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And for Windows images in the Community Gallery:
image:
computeGallery:
gallery: "ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019"
name: "capi-win-2022-containerd"
version: "latest"
windows-2019 is now deprecated and we won't be publishing it any more: see #5357.
path: C:/oot-cred-provider.ps1 | ||
permissions: "0744" | ||
- content: | | ||
Write-Host "Installing Azure CLI" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're using CAPZ reference images built with --var 'debug_tools=true'
(our default), then az
should already be installed on Windows and Linux nodes.
/test pull-cluster-api-provider-azure-load-test-custom-builds |
@Jont828: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed here. |
What type of PR is this?
/kind feature
What this PR does / why we need it:Add template for performance testing with custom Kubernetes version.
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:
TODOs:
Release note: