Skip to content

Removed random time.Sleep in favor of managed k8s wait.For #137

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

btoll
Copy link
Contributor

@btoll btoll commented Apr 29, 2025

What is being added?

Fix for a potential bug

Having arbitrary sleeps is much more brittle than waiting on a specific resource.  Let's use a library function from the Kubernetes author like is done in many other of our test suites.

Checklist before requesting review

  • [ x] I have tested this locally

Steps To Manually Test

$ cd managed-node-metadata-operator/test/e2e
$ OCM_TOKEN=$(ocm token) OCM_CLUSTER_ID=2iep1m2q79usmnolvj6tpuhfarvoi76g OCM_ENV=stage DISABLE_JUNIT_REPORT=true ginkgo run --tags=osde2e,e2e --procs 4 --flake-attempts 3 --trace -vv .

Ref OSD-29388

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 29, 2025
Copy link
Contributor

openshift-ci bot commented Apr 29, 2025

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

@clcollins
Copy link
Member

/lgtm

LGTM, but Rocket isn't listed in the owners/approvers or Slack handle, even though it's assigned to us. Will work on getting that fixed.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 29, 2025
@btoll btoll marked this pull request as ready for review April 29, 2025 22:15
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 29, 2025
@openshift-ci openshift-ci bot requested review from dkeohane and mrWinston April 29, 2025 22:15
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.11%. Comparing base (c23803d) to head (30a5178).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #137   +/-   ##
=======================================
  Coverage   52.11%   52.11%           
=======================================
  Files           4        4           
  Lines         236      236           
=======================================
  Hits          123      123           
  Misses         93       93           
  Partials       20       20           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@btoll
Copy link
Contributor Author

btoll commented Apr 30, 2025

/retest

3 similar comments
@btoll
Copy link
Contributor Author

btoll commented Apr 30, 2025

/retest

@btoll
Copy link
Contributor Author

btoll commented Apr 30, 2025

/retest

@btoll
Copy link
Contributor Author

btoll commented Apr 30, 2025

/retest

Copy link
Contributor

openshift-ci bot commented Apr 30, 2025

@btoll: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/validate 30a5178 link true /test validate

Full PR test history. Your PR dashboard.

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.

Copy link
Contributor

openshift-ci bot commented May 1, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: btoll, christophermancini, clcollins
Once this PR has been reviewed and has the lgtm label, please assign bergmannf for approval. For more information see the Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@christophermancini
Copy link

Assuming CICD passes, this lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants