Update coverage for config and error#1475
Conversation
|
I would appreciate it if you could take a moment to review my pull request. Your feedback would be invaluable, and I’m particularly interested in any thoughts you have on the implementation and overall impact of the changes made. |
adam-singer
left a comment
There was a problem hiding this comment.
Reviewed 3 of 5 files at r1, all commit messages.
Reviewable status: 0 of 2 LGTMs obtained, and 3 of 5 files reviewed, and 2 discussions need to be resolved
nativelink-config/tests/deserialization_test.rs line 28 at r1 (raw file):
const MAP_TYPE_ERROR: &str = "invalid type: map, expected a string containing json data"; const DURATION_HUMAN_READABLE: &str = r#"{"duration": "1m 10s"}"#;
Using these consts makes looking up what the example content is a double navigation. I think they should continue to be inlined until duplication is unmanageable
nativelink-metric-collector/src/lib.rs line 19 at r1 (raw file):
mod metrics_collection; pub mod metrics_visitors;
why is this public?
|
Thanks for your review
|
9229e6b to
b72afa8
Compare
aaronmondal
left a comment
There was a problem hiding this comment.
@leodziki Thanks for finding some test cases!
b6cf659 changed the serde_utils and tests fairly significantly. Could you split off your changes to serde_utils.rs into a separate PR and integrate your test cases into the new structure?
Reviewable status: 0 of 2 LGTMs obtained, and 3 of 5 files reviewed, and pending CI: Bazel Dev / macos-13, and 2 discussions need to be resolved
|
Hello, @aaronmondal |
Update coverage rate of nativelink-config and nativelink-error to 80~100% Passed cargo test and bazel test
b72afa8 to
87f1822
Compare
87f1822 to
894b0c9
Compare
Coverage update for serde_until completed. Bazel test, cargo test, pre-commit passed.
Update coverage rate of nativelink-config and nativelink-error to 80~100% Passed cargo test and bazel test
Description
Currently, coverage rate has been upgraded to 80-100% in nativelink-error and nativelink-config packages.
Bazel test and cargo test both passed. And Pre-commit passed in direnv and everything is perfect.
Fixed everything about the review
Fixes #1401
Type of change
not work as expected)
How Has This Been Tested?
Bazel test, cargo test and pre-commit
Checklist
bazel test //...passes locallyThis change is