Skip to content

[3.0] Tell agents the unit suite has to pass on Windows - #9602

Merged
live627 merged 1 commit into
SimpleMachines:release-3.0from
albertlast:3.0/agents-tests-windows
Aug 31, 2026
Merged

[3.0] Tell agents the unit suite has to pass on Windows#9602
live627 merged 1 commit into
SimpleMachines:release-3.0from
albertlast:3.0/agents-tests-windows

Conversation

@albertlast

Copy link
Copy Markdown
Collaborator

Description

Adds a short section to AGENTS.md, under Verifying a change → Tests, saying that the unit suite is expected to pass on Windows and naming the ways a test quietly stops doing so.

This is the documentation half of #9595. The reason it is worth writing down is the asymmetry: an agent verifies its work in the Docker environment, which is Linux, so a test that has baked in a POSIX file path looks correct all the way through review and only fails once somebody on Windows runs the suite. There is nothing in the existing guidance that would stop that happening again, and AGENTS.md is read by Copilot, Codex, Cursor and Gemini CLI as well as Claude Code.

The section uses #9595 itself as the worked example — the assertion, why C:\a\c was the right answer and the test the wrong question — and then lists what to watch for: DIRECTORY_SEPARATOR, the fact that absolute paths are rooted differently, PHP_EOL, and the observation that the best fix is not to spell the path out at all, which is what LangTest already does.

No code changes.

Issues References (Fixes|Related|Closes)

  1. Related to SapiTest fails on Windows #9595
  2. Related to [3.0][Testing] Anchor the canonical path test to the root the platform actually uses #9600
  3. Related to [3.0][Testing] Run the unit tests on Windows as well as Linux #9601

An agent working in the Docker environment sees only Linux, so a test that
bakes in a POSIX file path looks correct to it right up until somebody on
Windows runs the suite. The section names the traps and points at the test
that already gets it right.

Signed-off-by: albertlast <mathiaspapealbert@hotmail.com>
@live627
live627 merged commit 02b2539 into SimpleMachines:release-3.0 Aug 31, 2026
7 checks passed
@live627 live627 added the Meta Repository tools label Aug 31, 2026
@jdarwood007 jdarwood007 added this to the 3.0 Alpha 5 milestone Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Meta Repository tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants