Skip to content

Conversation

@chungquantin
Copy link
Contributor

@chungquantin chungquantin commented Apr 4, 2025

Initializing the logger in a global scope is not a good approach. Instead, I initialize a new logger on each new command.

@codecov
Copy link

codecov bot commented Apr 4, 2025

Codecov Report

Attention: Patch coverage is 1.31579% with 75 lines in your changes missing coverage. Please review.

Project coverage is 78.77%. Comparing base (52d1dc2) to head (5ef7b0f).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
crates/pop-cli/src/commands/mod.rs 0.00% 58 Missing ⚠️
crates/pop-cli/src/commands/bench/mod.rs 0.00% 17 Missing ⚠️
@@            Coverage Diff             @@
##             main     #513      +/-   ##
==========================================
- Coverage   78.84%   78.77%   -0.08%     
==========================================
  Files          99       99              
  Lines       23060    23081      +21     
  Branches    23060    23081      +21     
==========================================
  Hits        18181    18181              
- Misses       2690     2711      +21     
  Partials     2189     2189              
Files with missing lines Coverage Δ
crates/pop-cli/src/main.rs 88.03% <ø> (+4.96%) ⬆️
crates/pop-parachains/src/bench/mod.rs 88.46% <100.00%> (ø)
crates/pop-cli/src/commands/bench/mod.rs 18.91% <0.00%> (-16.09%) ⬇️
crates/pop-cli/src/commands/mod.rs 69.08% <0.00%> (-6.58%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chungquantin chungquantin requested a review from AlexD10S April 4, 2025 14:34
@chungquantin chungquantin added the ready-for-final-review The PR is ready for final review label Apr 7, 2025
@chungquantin chungquantin self-assigned this Apr 7, 2025
@chungquantin chungquantin force-pushed the chungquantin/fix_logger branch from 220bbe4 to fa9daa3 Compare April 7, 2025 10:13
Daanvdplas and others added 4 commits April 7, 2025 17:38
* feat: canonical command names

* refactor: use types in stead of strings

* refactor: telemetry

* fixes

* review

* fix: telemetry test

* fix: test, clippy

* refactor: try runtime

* fmt
* chore: bump versions

* chore: update CHANGELOG

* chore: remove deprecated flag
* feat: pop build runtime

* fix: test

* chore: reformat

* chore: feature gating

* chore: add test for collect features

* feat: select runtime if multiple

* chore: resolve review comments

* chore: fix cargo deny

* chore: clippy warnings

* fix: cargo deny
Copy link
Collaborator

@AlexD10S AlexD10S left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! I can now see the correct output when running pop up network -f ./network.toml, and the status still shows up properly when generating weights with pop bench pallet. Nicely done!

@chungquantin chungquantin merged commit da13597 into main Apr 7, 2025
18 of 20 checks passed
@chungquantin chungquantin deleted the chungquantin/fix_logger branch April 7, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-final-review The PR is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants