Skip to content

Fix Windows CI assertions for guardian and Smart Approvals#14645

Merged
charley-oai merged 9 commits intomainfrom
fix/wait-agent-spec-tests
Mar 14, 2026
Merged

Fix Windows CI assertions for guardian and Smart Approvals#14645
charley-oai merged 9 commits intomainfrom
fix/wait-agent-spec-tests

Conversation

@aibrahim-oai
Copy link
Copy Markdown
Collaborator

  • Normalize guardian assessment path serialization to use forward slashes for cross-platform stability.
  • Seed workspace-write defaults in the Smart Approvals override-turn-context test so Windows and non-Windows selection flows are consistent.

Normalize guardian assessment paths to forward slashes so JSON output is stable across platforms, and make the Smart Approvals override-turn-context test explicitly seed workspace-write defaults before key navigation.

Co-authored-by: Codex <noreply@openai.com>
@charley-oai charley-oai force-pushed the fix/wait-agent-spec-tests branch from 8424d51 to f13cb2e Compare March 14, 2026 00:11
Co-authored-by: Codex <noreply@openai.com>
@charley-oai
Copy link
Copy Markdown
Contributor

@codex review this

Copy link
Copy Markdown
Contributor

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

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: 0906296075

ℹ️ 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".

aibrahim-oai and others added 2 commits March 13, 2026 17:30
Co-authored-by: Codex <noreply@openai.com>
Comment on lines +1021 to +1025
"cwd": cwd.to_string_lossy().replace('\\', "/"),
"files": files
.iter()
.map(|path| path.to_string_lossy().replace('\\', "/"))
.collect::<Vec<_>>(),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why is this being done?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

already removed.

Co-authored-by: Codex <noreply@openai.com>
charley-oai and others added 2 commits March 13, 2026 17:42
Co-authored-by: Codex <noreply@openai.com>
@charley-oai charley-oai enabled auto-merge (squash) March 14, 2026 00:51
Comment on lines +222 to +231
let cwd = if cfg!(windows) {
PathBuf::from(r"C:\tmp")
} else {
PathBuf::from("/tmp")
};
let file = if cfg!(windows) {
AbsolutePathBuf::try_from(r"C:\tmp\guardian.txt").expect("absolute path")
} else {
AbsolutePathBuf::try_from("/tmp/guardian.txt").expect("absolute path")
};
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

FYI, I believe this could be:

Suggested change
let cwd = if cfg!(windows) {
PathBuf::from(r"C:\tmp")
} else {
PathBuf::from("/tmp")
};
let file = if cfg!(windows) {
AbsolutePathBuf::try_from(r"C:\tmp\guardian.txt").expect("absolute path")
} else {
AbsolutePathBuf::try_from("/tmp/guardian.txt").expect("absolute path")
};
let (cwd, file) = if cfg!(windows) {
(r"C:\tmp", r"C:\tmp\guardian.txt")
} else {
("/tmp", "/tmp/guardian.txt")
};
let cwd = AbsolutePathBuf::try_from(cwd).expect("absolute path");
let file = AbsolutePathBuf::try_from(file).expect("absolute path");

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.

Thanks will commit in a followup PR, along with making the other test in this PR more reasonable:
Screenshot 2026-03-13 at 6 11 13 PM

Don't want to make everyone wait another CI cycle to merge this though, so will avoid adding any more commits unless CI fails

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.

Ah right on queue, CI started failing

Co-authored-by: Codex <noreply@openai.com>
@charley-oai
Copy link
Copy Markdown
Contributor

@codex review

Copy link
Copy Markdown
Contributor

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

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: b18763a553

ℹ️ 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".

Co-authored-by: Codex <noreply@openai.com>
@charley-oai charley-oai merged commit 69c8a1e into main Mar 14, 2026
32 checks passed
@charley-oai charley-oai deleted the fix/wait-agent-spec-tests branch March 14, 2026 02:15
@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants