-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
test_bot: remove session-manager-plugin
#21127
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
Conversation
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.
Pull request overview
This PR aims to simplify the codebase by using the HOMEBREW_CASKROOM constant (defined in startup/config.rb) instead of requiring and using Cask::Caskroom.path. The change adds a cleanup operation to remove the session-manager-plugin cask during test bot cleanup on macOS.
Key Changes
- Adds cleanup of
session-manager-pluginfrom the caskroom during test bot cleanup before tests run on macOS - Leverages the existing
HOMEBREW_CASKROOMconstant to avoid an extra require statement
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
758b61c to
d279703
Compare
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.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
MikeMcQuaid
left a comment
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.
Thanks again @cho-m!
| delete_or_move bad_paths, sudo: true | ||
| elsif OS.mac? | ||
| delete_or_move HOMEBREW_CELLAR.glob("*") | ||
| delete_or_move HOMEBREW_CASKROOM.glob("session-manager-plugin") |
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.
| delete_or_move HOMEBREW_CASKROOM.glob("session-manager-plugin") | |
| delete_or_move HOMEBREW_CASKROOM.glob("*") |
we should consider this as a future iteration
brew lgtm(style, typechecking and tests) with your changes locally?Seeing if possible to remove deprecated cask via test-bot to unblock CI. May need to also either discuss deprecation with GitHub side, and/or see if it can be migrated elsewhere.
There is an issue for aws tap to provide their own
session-manager-pluginand another issue in upstream to sign/notarize binary. Depending on license, could check if possible to make a Formula.Also trying to see if
HOMEBREW_CASKROOMfromstartup/config.rbworks rather than needing to useCask::Caskroom.path(which adds an extra require)