test(aqua): cover manifest symlink bins precedence#10159
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the Aqua backend option handling to support and prioritize plain options over vars. prefixed options, and ensures proper serialization of these options in lockfile_options. It also adds corresponding unit tests to verify the precedence of plain variables and the preservation of options like symlink_bins from the install manifest. There are no review comments, so I have no feedback to provide.
Greptile SummaryThis PR adds regression test coverage for the Aqua install-manifest/config option precedence logic, specifically ensuring that
Confidence Score: 5/5This PR is safe to merge — all changes are test-only additions with no production logic touched. Both changed files add or refactor unit tests exclusively. The new tests correctly model the intended precedence rules (nested > plain > prefixed, config > manifest) and the assertions match the documented behavior. No production code paths are modified. No files require special attention. Important Files Changed
Reviews (5): Last reviewed commit: "test(aqua): cover manifest symlink bins ..." | Re-trigger Greptile |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
CI follow-up after 9231d92:
This comment was generated by an AI coding assistant. |
9231d92 to
45c8624
Compare
45c8624 to
ed8ec34
Compare
|
Closing this PR because its remaining branch delta is test-only ( This comment was generated by an AI coding assistant. |
Stacked on #10187. Target branch remains the default branch.
Summary
symlink_binssurvives when current config overrides ordinary Aqua optionsDetails
The install manifest can carry layout-affecting Aqua options from the installed tool. This test covers the case where current config overrides a normal option such as
channel, while preserving manifest-onlysymlink_bins = trueso the installed runtime layout remains exposed correctly.Verification
cargo test test_resolve_tool_opts_preserves_aqua_symlink_bins_from_install_manifestgit diff --checkcargo fmt --all -- --check