Skip to content

Conversation

@arkjedrz
Copy link
Contributor

@arkjedrz arkjedrz commented Sep 24, 2025

  • Add more logs from the implementation.
  • Fix tests.
  • Fix building from Cargo and Bazel.
  • Disable score-log feature in CI check.

@github-actions
Copy link

github-actions bot commented Sep 24, 2025

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run //:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.3.0) and connecting to it...
INFO: Invocation ID: edfd0564-1c14-4451-8a01-8b3098cb5251
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
DEBUG: Rule 'rust_qnx8_toolchain+' indicated that a canonical reproducible form can be obtained by modifying arguments integrity = "sha256-oEubHgeZDdT0svMmBKJx7c3/2TdSI/vfwRUyDn+TPGA="
DEBUG: Repository rust_qnx8_toolchain+ instantiated at:
  <builtin>: in <toplevel>
Repository rule http_archive defined at:
  /home/runner/.bazel/external/bazel_tools/tools/build_defs/repo/http.bzl:394:31: in <toplevel>
DEBUG: Rule 'rules_boost+' indicated that a canonical reproducible form can be obtained by modifying arguments integrity = "sha256-iKHWUIBrUN/fFOCltkTmHfDcKw0h4ZVmP7NVSoc8zBs="
DEBUG: Repository rules_boost+ instantiated at:
  <builtin>: in <toplevel>
Repository rule http_archive defined at:
  /home/runner/.bazel/external/bazel_tools/tools/build_defs/repo/http.bzl:394:31: in <toplevel>
Computing main repo mapping: 
Computing main repo mapping: 
WARNING: For repository 'rules_cc', the root module requires module version [email protected], but got [email protected] in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'toolchains_llvm', the root module requires module version [email protected], but got [email protected] in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'googletest', the root module requires module version [email protected], but got [email protected] in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'platforms', the root module requires module version [email protected], but got [email protected] in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
Computing main repo mapping: 
Loading: 
Loading: 2 packages loaded
Loading: 2 packages loaded
    currently loading: 
Analyzing: target //:license-check (3 packages loaded, 0 targets configured)
Analyzing: target //:license-check (3 packages loaded, 0 targets configured)

Analyzing: target //:license-check (78 packages loaded, 9 targets configured)

Analyzing: target //:license-check (137 packages loaded, 2062 targets configured)

Analyzing: target //:license-check (143 packages loaded, 2564 targets configured)

Analyzing: target //:license-check (146 packages loaded, 4571 targets configured)

Analyzing: target //:license-check (146 packages loaded, 4571 targets configured)

DEBUG: Rule 'toolchains_llvm++llvm+llvm_toolchain_llvm' indicated that a canonical reproducible form can be obtained by modifying arguments _action_listener = <unknown object com.google.devtools.build.lib.packages.Attribute$LabelListLateBoundDefault>, _config_dependencies = [], _configure = False, _environ = [], _original_name = "llvm_toolchain_llvm"
DEBUG: Repository toolchains_llvm++llvm+llvm_toolchain_llvm instantiated at:
  <builtin>: in <toplevel>
Repository rule llvm defined at:
  /home/runner/.bazel/external/toolchains_llvm+/toolchain/rules.bzl:27:23: in <toplevel>
Analyzing: target //:license-check (146 packages loaded, 4571 targets configured)

INFO: Analyzed target //:license-check (147 packages loaded, 6506 targets configured).
[9 / 14] [Prepa] Executing genrule //:filtered_cargo_lock
INFO: From Generating Dash formatted dependency file ...:
INFO: Successfully converted 81 packages from Cargo.lock to bazel-out/k8-fastbuild/bin/formatted.txt
INFO: Found 1 target...
Target //:license.check.license_check up-to-date:
  bazel-bin/license.check.license_check
  bazel-bin/license.check.license_check.jar
INFO: Elapsed time: 186.620s, Critical Path: 0.21s
INFO: 14 processes: 5 disk cache hit, 9 internal.
INFO: Build completed successfully, 14 total actions
INFO: Running command line: bazel-bin/license.check.license_check ./formatted.txt <args omitted>
usage: org.eclipse.dash.licenses.cli.Main [-batch <int>] [-cd <url>]
       [-confidence <int>] [-ef <url>] [-excludeSources <sources>] [-help] [-lic
       <url>] [-project <shortname>] [-repo <url>] [-review] [-summary <file>]
       [-timeout <seconds>] [-token <token>]

@github-actions
Copy link

The created documentation from the pull request is available at: docu-html

@arkjedrz arkjedrz force-pushed the arkjedrz_enable-logging branch from d52bb07 to 6a71358 Compare September 24, 2025 14:43
@arkjedrz arkjedrz self-assigned this Sep 25, 2025
@arkjedrz arkjedrz force-pushed the arkjedrz_enable-logging branch from 6a71358 to dbe1d06 Compare September 29, 2025 14:11
@arkjedrz arkjedrz force-pushed the arkjedrz_enable-logging branch from dbe1d06 to 46fd548 Compare October 30, 2025 10:02
// Load KVS file and parse from string to `JsonValue`.
let json_str = fs::read_to_string(kvs_path)?;
let json_value = Self::parse(&json_str)?;
debug!("Loading KVS file: {kvs_path:?}");
Copy link
Contributor

Choose a reason for hiding this comment

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

some of the debug messages seem a bit redundant in the case of an error, for example this one you would get :
"Loading KVS file: kvs_path"
"Failed to load KVS file: kvs_path"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this case yes, to a degree. Imagine following scenarios though:

  • Loading succeeded, but parsing failed. Thanks to those logs You have information about steps being done and state of KVS without having to look at the code.
  • Something went extremely wrong during fs::read_to_string and app segfaulted. Thanks to that You have last known operation done.

I have the following rule of thumb for log levels:

  • trace - extremely granular information what changed (e.g., operation result, function-local state changed). Rarely used.
  • debug - information what is being done right now (before it happen).
  • info - global-state change.
  • warn - non-critical pre- or post- condition failed.
  • error - critical pre- or post-condition failed.

})?;

// Perform hash check.
debug!("Performing hash check, KVS file: {kvs_path:?}, hash file: {hash_path:?}");
Copy link
Contributor

Choose a reason for hiding this comment

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

Same thing here, the first one it makes the second message redundant

@arkjedrz arkjedrz force-pushed the arkjedrz_enable-logging branch from 46fd548 to f567596 Compare November 13, 2025 11:59
- Add more logs from the implementation.
- Fix tests.
- Fix building from Cargo and Bazel.
- Disable `score-log` feature in CI check.
@arkjedrz arkjedrz force-pushed the arkjedrz_enable-logging branch from f567596 to d3044d8 Compare November 13, 2025 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants