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

test: fix race in flakey drift test #6174

Merged
merged 4 commits into from
May 14, 2024
Merged

test: fix race in flakey drift test #6174

merged 4 commits into from
May 14, 2024

Conversation

jmdeal
Copy link
Contributor

@jmdeal jmdeal commented May 9, 2024

Fixes #N/A

Description
Fixes a flake in a drift test. The test eventually expects the original replacement nodeclaim to be deleted, and checks for this by expecting on the number of nodeclaims. The problem is a new replacement nodeclaim may be created between checks in the eventually block.

How was this change tested?
/karpenter snapshot

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jmdeal jmdeal requested a review from a team as a code owner May 9, 2024 23:12
@jmdeal jmdeal requested a review from jonathan-innis May 9, 2024 23:12
Copy link

netlify bot commented May 9, 2024

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit e59e304
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/6643ee857f549600087ec89b

@jmdeal jmdeal force-pushed the drift-flake-fix branch from 8808ace to f0a7b08 Compare May 9, 2024 23:12
Copy link
Contributor Author

@jmdeal jmdeal left a comment

Choose a reason for hiding this comment

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

/karpenter snapshot

@coveralls
Copy link

coveralls commented May 9, 2024

Pull Request Test Coverage Report for Build 9087358436

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 82.276%

Totals Coverage Status
Change from base Build 9081237650: 0.03%
Covered Lines: 5445
Relevant Lines: 6618

💛 - Coveralls

Copy link
Contributor

github-actions bot commented May 9, 2024

Snapshot successfully published to oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter:0-f0a7b08df101a04b3363e74866fd54750e6e969a.
To install you must login to the ECR repo with an AWS account:

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 021119463062.dkr.ecr.us-east-1.amazonaws.com

helm upgrade --install karpenter oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter --version "0-f0a7b08df101a04b3363e74866fd54750e6e969a" --namespace "kube-system" --create-namespace \
  --set "settings.clusterName=${CLUSTER_NAME}" \
  --set "settings.interruptionQueue=${CLUSTER_NAME}" \
  --set controller.resources.requests.cpu=1 \
  --set controller.resources.requests.memory=1Gi \
  --set controller.resources.limits.cpu=1 \
  --set controller.resources.limits.memory=1Gi \
  --wait

@jmdeal jmdeal force-pushed the drift-flake-fix branch from b802d47 to 8624b23 Compare May 10, 2024 20:39
@jmdeal jmdeal enabled auto-merge (squash) May 10, 2024 20:40
Copy link
Contributor Author

@jmdeal jmdeal left a comment

Choose a reason for hiding this comment

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

/karpenter snapshot

Copy link
Contributor

Snapshot successfully published to oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter:0-8624b237adbfaeb54fcce6dc55f8f8faaa299d5b.
To install you must login to the ECR repo with an AWS account:

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 021119463062.dkr.ecr.us-east-1.amazonaws.com

helm upgrade --install karpenter oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter --version "0-8624b237adbfaeb54fcce6dc55f8f8faaa299d5b" --namespace "kube-system" --create-namespace \
  --set "settings.clusterName=${CLUSTER_NAME}" \
  --set "settings.interruptionQueue=${CLUSTER_NAME}" \
  --set controller.resources.requests.cpu=1 \
  --set controller.resources.requests.memory=1Gi \
  --set controller.resources.limits.cpu=1 \
  --set controller.resources.limits.memory=1Gi \
  --wait

Copy link
Contributor Author

@jmdeal jmdeal left a comment

Choose a reason for hiding this comment

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

/karpenter snapshot

Copy link
Contributor

Snapshot successfully published to oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter:0-539c5c629896678890dae7980c5cf0a767a8f081.
To install you must login to the ECR repo with an AWS account:

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 021119463062.dkr.ecr.us-east-1.amazonaws.com

helm upgrade --install karpenter oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter --version "0-539c5c629896678890dae7980c5cf0a767a8f081" --namespace "kube-system" --create-namespace \
  --set "settings.clusterName=${CLUSTER_NAME}" \
  --set "settings.interruptionQueue=${CLUSTER_NAME}" \
  --set controller.resources.requests.cpu=1 \
  --set controller.resources.requests.memory=1Gi \
  --set controller.resources.limits.cpu=1 \
  --set controller.resources.limits.memory=1Gi \
  --wait

@jmdeal jmdeal force-pushed the drift-flake-fix branch from 539c5c6 to 793e498 Compare May 14, 2024 23:05
@jmdeal jmdeal force-pushed the drift-flake-fix branch from 793e498 to e59e304 Compare May 14, 2024 23:06
@jmdeal jmdeal merged commit 6a4c857 into aws:main May 14, 2024
17 checks passed
@jmdeal jmdeal deleted the drift-flake-fix branch May 17, 2024 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants