-
Notifications
You must be signed in to change notification settings - Fork 13
feat: better support for more runner types #210
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
base: main
Are you sure you want to change the base?
Conversation
|
Fixed Issues (7)Great job! The following issues were fixed in this Pull Request
|
we still default to US cloud region if no URLs are provided
|
6b3f31d to
3a6b919
Compare
|
justindbaur
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.
Just a few things 😺
Co-authored-by: Justin Baur <[email protected]>
ad89517 to
ed2ece1
Compare
justindbaur
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.
One tiny thing but otherwise looks great.
src/ci.rs
Outdated
| debug!("Writing to GITHUB_ENV: {env_path}"); | ||
|
|
||
| let env_file = OpenOptions::new() | ||
| .create(true) // needed for unit tests |
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.
Actually shouldn't need these anymore! (another one below)
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.
Good catch! Fixed in 2666508.
justindbaur
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.
🚀









🎟️ Tracking
https://bitwarden.atlassian.net/browse/SM-1559
📔 Objective
Switch from a TypeScript Action that relies on our NAPI/WASM packages, to one written in Rust. This enables a few things:
Switching to a Rust-based Action does introduce some challenges. We will now need compiled binaries for the various Runner types (Linux, macOS, Windows, ARM64 and x86_64), so we also need a workflow that builds and releases the binaries so they can be downloaded at runtime, rather than being built from source every time our Action is invoked.
There is a fallback mode that will build the sm-action binaries from source at runtime in the event that they can't be downloaded from GitHub Releases (in something like an API degradation scenario). This is a highly unideal edge case because compiling at runtime would take ~5-6 minutes, but it seems highly unlikely that users would get a successful workflow run if GH APIs are degraded anyway. Still, I left the fallback mode there because it also makes local dev easy.
📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes