-
Notifications
You must be signed in to change notification settings - Fork 3
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
PM-13335 - Pin Rust version and introduce Renovate #17
PM-13335 - Pin Rust version and introduce Renovate #17
Conversation
}, | ||
"customDatasources": { | ||
"rust-nightly": { | ||
"defaultRegistryUrlTemplate": "https://renovate-rust-nightly.phi-ag.workers.dev/" |
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.
This is using a community-made Cloudflare worker. The source for it is here.
It would probably be ideal if we hosted our own for the sake of reliability. Thoughts?
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.
Can we avoid the nightly support? Do we really need that? Seems unadvisable, and then we avoid custom datasources.
In parallel, if custom datasources are truly needed, I would think that's an investment to be proposed with Mend themselves and for it to become a first-class datasource that I have seen added via community contributions in the past (and not some Cloudflare worker that I don't support us using or implementing).
@withinfocus I'd also prefer to avoid nightly toolchains, but the linting/formatting features we use, a tool we use to detect unused dependencies, and some rustdoc features all require usage of features that are not allowed on stable Rust toolchains. There is an open PR for Renovate to support managing stable Rust toolchains via the rust-toolchain.toml file, but that still wouldn't handle our need for managing the nightly toolchains. |
I pinged the Renovate PR author to see if we can help there. Given my lack of Rust experience, can you show me what a Renovate PR would look like here? I see uses of certain versions in Cargo files but also |
@withinfocus Sure! Here's a rust-nightly PR and a rust PR. We're currently just invoking nightly as Both the stable and nightly releases would be handled from a new rust-toolchain.toml file in the repo root. I probably should have mentioned that in my previous comment 😅 The |
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.
Yeah the toolchain configuration file existence was the missing part for me; I see it on your fork.
I'm a bit hesitant to approve here, but I do see this as a workable solution for now. While the dude's CF worker might not be the most reliable, it's something Renovate is invoking and it's not really exposing us to anything, and given the frequency and how Renovate works in general with clear logs about how it's running, this will do.
I look forward to enhanced Renovate support directly though.
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-13335
📔 Objective
Add Renovate managers so we can pin the Rust and Rust nightly toolchains in our workflows.
📸 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