Skip to content

test: make E2E configuration checks host-independent - #46

Merged
XiangpengHao merged 2 commits into
deterministic-machines:mainfrom
RezPoint:fix/windows-host-independent-e2e
Nov 28, 2026
Merged

XiangpengHao merged 2 commits into
deterministic-machines:mainfrom
RezPoint:fix/windows-host-independent-e2e

Conversation

@RezPoint

Copy link
Copy Markdown
Contributor

Summary

  • make the gated fixture and its expectations account for host target cfgs
  • use a true cross-target for Cargo config coverage and a distinct custom cfg for the RUSTFLAGS scenario
  • keep the tests valid on Windows instead of assuming Linux defaults

Closes #45

Verification

On Windows with Rust/Cargo/rust-analyzer 1.100.1:

  • cargo fmt --check — passed
  • cargo test --locked --bin deslop-please — 99 passed
  • cargo test --locked --test end_to_end — 20 passed
  • git diff --check — passed

Test-only change; no production behavior changed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T09:42:50.997107Z e7cc8f7 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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".

Comment thread tests/end_to_end.rs Outdated
}
};
build_target("x86_64-pc-windows-msvc");
build_target("aarch64-apple-darwin");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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).

@XiangpengHao
XiangpengHao merged commit 6b1dee9 into deterministic-machines:main Nov 28, 2026
1 check passed
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.

Make target/config E2E tests host-independent on Windows

2 participants