Repository navigation
test: make E2E configuration checks host-independent - #46
XiangpengHao merged 2 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e7cc8f7fcd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
| }; | ||
| build_target("x86_64-pc-windows-msvc"); | ||
| build_target("aarch64-apple-darwin"); |
There was a problem hiding this comment.
Select a configured target that differs from the native host
On native Apple Silicon macOS (aarch64-apple-darwin), this selects the same target that plain already indexed. src/indexing.rs::cache_dir hashes the CLI configuration and resulting cfgs; both remain unchanged here, and the config file is outside the workspace sources. Consequently, the first indexes_once(&[]) call reuses the existing index instead of printing indexing workspace..., failing its assertion that indexing occurs. Choose the configured target based on the host so this scenario always exercises a distinct target.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 5a9a422. The configured target now switches to aarch64-pc-windows-msvc on Apple Silicon macOS and remains aarch64-apple-darwin elsewhere, so it is distinct from the native target while still enabling the fixture module. Verified on Windows: cargo fmt --check and cargo test --locked --test end_to_end (20 passed).
Summary
RUSTFLAGSscenarioCloses #45
Verification
On Windows with Rust/Cargo/rust-analyzer 1.100.1:
cargo fmt --check— passedcargo test --locked --bin deslop-please— 99 passedcargo test --locked --test end_to_end— 20 passedgit diff --check— passedTest-only change; no production behavior changed.