-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[forge] delete orphaned test runners #15557
Conversation
⏱️ 2h 46m total CI duration on this PR
🚨 1 job on the last run was significantly faster/slower than expected
|
3fc16e5
to
c879811
Compare
!forge_namespaces | ||
.iter() | ||
.any(|namespace| pod_name.contains(namespace.metadata.name.as_ref().unwrap())) |
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 current string matching with contains()
is susceptible to false matches when namespace names overlap. For example, if there are two namespaces forge-test1
and forge-test10
, a pod named forge-test1-xyz
would match both namespaces. Consider using a more precise matching pattern such as starts_with()
or a regex that enforces namespace boundaries in the pod name.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
30fb09d
to
91b76e9
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
* [forge] delete orphaned test runners * [forge] cleanup add dry run mode * [forge] cleanup names by substr robust * [forge] cleanup names by substr robust 2
Description
Delete orphaned test runners. Orphaned test runners:
How Has This Been Tested?
Key Areas to Review
Type of Change
Which Components or Systems Does This Change Impact?
Checklist