Skip to content

Conversation

@joshlf
Copy link
Member

@joshlf joshlf commented Feb 7, 2026


Latest Update: v34 — Compare vs v33

📚 Full Patch History

Links show the diff between the row version and the column version.

Version v33 v32 v31 v30 v29 v28 v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v34 v33 v32 v31 v30 v29 v28 v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v33 v32 v31 v30 v29 v28 v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v32 v31 v30 v29 v28 v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v31 v30 v29 v28 v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v30 v29 v28 v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v29 v28 v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v28 v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v8 v7 v6 v5 v4 v3 v2 v1 Base
v7 v6 v5 v4 v3 v2 v1 Base
v6 v5 v4 v3 v2 v1 Base
v5 v4 v3 v2 v1 Base
v4 v3 v2 v1 Base
v3 v2 v1 Base
v2 v1 Base
v1 Base
⬇️ Download this PR

Branch

git fetch origin refs/heads/Gb7f1abf97eed8a035dbcaf7b0363b5890baaec05 && git checkout -b pr-Gb7f1abf97eed8a035dbcaf7b0363b5890baaec05 FETCH_HEAD

Checkout

git fetch origin refs/heads/Gb7f1abf97eed8a035dbcaf7b0363b5890baaec05 && git checkout FETCH_HEAD

Cherry Pick

git fetch origin refs/heads/Gb7f1abf97eed8a035dbcaf7b0363b5890baaec05 && git cherry-pick FETCH_HEAD

Pull

git pull origin refs/heads/Gb7f1abf97eed8a035dbcaf7b0363b5890baaec05

Stacked PRs enabled by GHerrit.

@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@codecov-commenter
Copy link

codecov-commenter commented Feb 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (G9611b9a3ca0254d8ba488d591e6a21980cca3d29@3150404). Learn more about missing BASE report.

Additional details and impacted files
@@                             Coverage Diff                              @@
##             G9611b9a3ca0254d8ba488d591e6a21980cca3d29    #3005   +/-   ##
============================================================================
  Coverage                                             ?   91.87%           
============================================================================
  Files                                                ?       20           
  Lines                                                ?     6057           
  Branches                                             ?        0           
============================================================================
  Hits                                                 ?     5565           
  Misses                                               ?      492           
  Partials                                             ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joshlf
Copy link
Member Author

joshlf commented Feb 7, 2026

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces package, target, and root resolution for hermes by integrating clap for command-line argument parsing and cargo_metadata for inspecting the project structure. The new resolve module contains the core logic for identifying which parts of a crate or workspace to process based on user-provided flags, mimicking cargo's behavior. The main function is updated to use this new resolution mechanism.

The changes are well-structured. I've identified a few areas for improvement regarding error handling and code cleanliness, including a potential panic. My detailed comments are below.

Comment on lines +166 to +167
let manifest_dir = p.manifest_path.parent().unwrap();
cwd.starts_with(manifest_dir)
Copy link
Contributor

Choose a reason for hiding this comment

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

high

Using .unwrap() here could cause a panic if a Cargo.toml file is located at the root of the filesystem, as parent() would return None. While this is an edge case, it's safer to handle it gracefully. You can use an if let statement for a more robust implementation.

Suggested change
let manifest_dir = p.manifest_path.parent().unwrap();
cwd.starts_with(manifest_dir)
if let Some(manifest_dir) = p.manifest_path.parent() {
cwd.starts_with(manifest_dir)
} else {
false
}


let file_path = PathBuf::from(&args[1]);
// TODO: Better error handling than `.unwrap()`.
let roots = resolve::resolve_roots(&args.resolve).unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

As noted in the TODO comment, using .unwrap() here can cause the program to panic if resolve_roots returns an error. It would be more user-friendly to handle the error gracefully and print a descriptive message instead of panicking. Since anyhow is a dependency, you can use unwrap_or_else to achieve this.

Suggested change
let roots = resolve::resolve_roots(&args.resolve).unwrap();
let roots = resolve::resolve_roots(&args.resolve).unwrap_or_else(|e| {
eprintln!("error: failed to resolve verification roots: {e:?}");
exit(1);
});

eprint!("{:?}", miette::Report::new(e));
} else if let Ok(item) = res {
transform::append_edits(&item, &mut edits);
for (package, kind, path) in roots {
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The package and kind variables are unused within this loop. To improve code clarity and avoid compiler warnings, you can replace them with _.

Suggested change
for (package, kind, path) in roots {
for (_, _, path) in roots {

gherrit-pr-id: Gb7f1abf97eed8a035dbcaf7b0363b5890baaec05
@joshlf joshlf force-pushed the Gb7f1abf97eed8a035dbcaf7b0363b5890baaec05 branch from 3d5982e to bbe5419 Compare February 10, 2026 23:18
@joshlf joshlf force-pushed the G9611b9a3ca0254d8ba488d591e6a21980cca3d29 branch from 777a0e4 to 3150404 Compare February 10, 2026 23:18
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