Skip to content

chore: Use the correct target dir in tests - #760

Merged
raymondk merged 1 commit into
mainfrom
spofford/fix-target-dir
Sep 8, 2026
Merged

chore: Use the correct target dir in tests#760
raymondk merged 1 commit into
mainfrom
spofford/fix-target-dir

Conversation

@adamspofford-dfinity

Copy link
Copy Markdown
Contributor

No description provided.

@adamspofford-dfinity
adamspofford-dfinity requested a review from a team as a code owner September 4, 2026 20:13
Copilot AI balanced review requested due to automatic review settings September 4, 2026 20:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The reviewed change is focused, and no unresolved issues were found.

Pull request overview

Updates integration-test artifact lookup to respect Cargo’s configured target directory.

Changes:

  • Resolves the target directory through cargo metadata.
  • Uses that directory to locate generated WASM artifacts.
File summaries
File Description
crates/icp-cli/tests/common/mod.rs Corrects test artifact paths for custom Cargo target directories.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@marc0olo marc0olo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Verified the mechanism: cargo metadata in examples/icp-sync-plugin (its own workspace, excluded from the root) resolves the target dir correctly, the default path is identical to the previous hardcoded one, and --no-deps keeps it offline and lockfile-free. Consistent with how the official rust recipe locates the artifact.

Follow-up in a separate PR: the same hardcoded assumption is still in examples/icp-rust/icp.yaml, examples/icp-sync-plugin/icp.yaml and the docs snippets, and our docs pin @dfinity/rust@v3.0.0, which predates the equivalent fix in the recipe (landed in v3.1.0).

@raymondk
raymondk merged commit ed5ca5f into main Sep 8, 2026
104 checks passed
@raymondk
raymondk deleted the spofford/fix-target-dir branch September 8, 2026 13:56
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.

4 participants