Run plugin and skill tests on Windows (#37836)

## Why

The plugin and skill test suites were excluded wholesale on Windows, even though
most cases do not depend on POSIX behavior.

## What changed

- Make generated TOML and JSON fixtures escape Windows paths correctly.
- Use Windows-safe path canonicalization and normalize advertised skill paths.
- Select test environments through the environment-aware builders.
- Run the suites on Windows while narrowly skipping cases that execute POSIX
  commands or require matching host and executor path conventions.

GitOrigin-RevId: aadf31013c2bf9bac728adc4dd96f572d4a3bf3f
This commit is contained in:
felixxia-oai authored and copyberry committed 2026-08-10 14:45:55 +00:00
1 parent 680934adc4
commit 3b67b03a3f
5 files changed
+57 -65

No files matched your search

@@ -143,12 +143,12 @@ fn config_stack_with_session_flags(
}
fn path_toggle_config(path: &std::path::Path, enabled: bool) -> String {
let path = toml::Value::String(path.display().to_string());
format!(
r#"[[skills.config]]
path = "{}"
path = {path}
enabled = {enabled}
"#,
path.display()
"#
)
}
@@ -908,7 +908,6 @@ async fn skills_for_cwd_uses_cached_result_until_force_reload() {
);
}
#[cfg_attr(windows, ignore)]
#[tokio::test]
async fn skills_for_config_ignores_cwd_cache_when_session_flags_reenable_skill() {
let codex_home = tempfile::tempdir().expect("tempdir");