rpc/system_metrics.rs: Added rustversion label to garage_build_info metric. #524
No reviewers
Labels
No labels
action
check-aws
action
discussion-needed
action
for-external-contributors
action
for-newcomers
action
more-info-needed
action
need-funding
action
triage-required
kind
correctness
kind
ideas
kind
improvement
kind
performance
kind
testing
kind
usability
kind
wrong-behavior
prio
critical
prio
low
scope
admin-api
scope
background-healing
scope
build
scope
documentation
scope
k8s
scope
layout
scope
metadata
scope
ops
scope
rpc
scope
s3-api
scope
security
scope
telemetry
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#524
Loading…
Reference in a new issue
No description provided.
Delete branch "jpds/garage:rustversion-label"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
25e90d2bf9
to531cd017ab
Hi @jpds, thanks for your PR, can you elaborate a bit more around the use cases you see for it?
@quentin Knowing when to rebuild all the Rust binaries because of a vulnerability at the compiler level.
Makes sense. Before accepting it, I want to be sure that it does not break our NixOS-based build system, as you introduce a build.rs file. Otherwise, looks good to me.
Someone will need to push up a
Cargo.nix
change for the new package (which is why I allowed edits from maintainers) - but I think it should work fine after that.@ -0,0 +1,8 @@
use rustc_version::version;
fn main() {
Can we move this to the
garage_util
crate, and make the rustc version available in theversion
module (asgarage_util::version::rustc_version()
, similarly togarage_util::version::garage_version()
)This way we can also show the rustc version in
garage stats
(here) and in the status admin endpoint (here)I can regen the cargo.nix file once the dependency on rustc_version is moved to the correct crate
531cd017ab
to9ea154ae9c
I restarted the CI for the last commit.
It failed on
thread 'k2v::poll::test_poll_range' panicked at 'Command exited with code 1: Could not get node ID', tests/common/ext/process.rs:46:31
. Running the tests (with nix-build) on my computer worked. I suspect a race condition (we statically wait for only 2sec at garage startup).I think I will open a separate PR to fix this issue, and the other one with the parallel tests. In the mean time, we should restart the CI and/or increase the duration in the
fn setup()
sleep, inside thesrc/garage/tests/common/garage.rs
file.