Skip to content

Commit

Permalink
storage-scrubber: log version on start (#8571)
Browse files Browse the repository at this point in the history
Helps us better identify which version of storage scrubber is running.

---------

Signed-off-by: Alex Chi Z <[email protected]>
  • Loading branch information
skyzh authored Aug 1, 2024
1 parent 1678dea commit 970f292
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions storage_scrubber/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ aws-smithy-async.workspace = true
either.workspace = true
tokio-rustls.workspace = true
anyhow.workspace = true
git-version.workspace = true
hex.workspace = true
humantime.workspace = true
thiserror.workspace = true
Expand Down
7 changes: 7 additions & 0 deletions storage_scrubber/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ use storage_scrubber::{
use clap::{Parser, Subcommand};
use utils::id::TenantId;

use utils::{project_build_tag, project_git_version};

project_git_version!(GIT_VERSION);
project_build_tag!(BUILD_TAG);

#[derive(Parser)]
#[command(author, version, about, long_about = None)]
#[command(arg_required_else_help(true))]
Expand Down Expand Up @@ -101,6 +106,8 @@ enum Command {
async fn main() -> anyhow::Result<()> {
let cli = Cli::parse();

tracing::info!("version: {}, build_tag {}", GIT_VERSION, BUILD_TAG);

let bucket_config = BucketConfig::from_env()?;

let command_log_name = match &cli.command {
Expand Down

1 comment on commit 970f292

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2188 tests run: 2109 passed, 0 failed, 79 skipped (full report)


Code coverage* (full report)

  • functions: 32.9% (7121 of 21673 functions)
  • lines: 50.4% (57213 of 113482 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
970f292 at 2024-08-01T15:46:47.415Z :recycle:

Please sign in to comment.