Skip to content

Make output assertions more explicit#4784

Merged
pakrym-oai merged 2 commits intomainfrom
pakrym/make-output-assertions-more-explicit
Oct 5, 2025
Merged

Make output assertions more explicit#4784
pakrym-oai merged 2 commits intomainfrom
pakrym/make-output-assertions-more-explicit

Conversation

@pakrym-oai
Copy link
Copy Markdown
Collaborator

Match using precise regexes.

Comment on lines +516 to +518
Total output lines: \d+
Output:
Total output lines: \d+
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.

@aibrahim-oai this is why I wanted full string matches.

Copy link
Copy Markdown
Collaborator

@dylan-hurd-oai dylan-hurd-oai left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

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.

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

Comment thread codex-rs/core/tests/suite/shell_serialization.rs Outdated
- Change regex patterns from raw string (r"...") to raw string with preferred delimiter (r#"..."#) for correct pattern escaping and minimize backslash confusion.
- Update sandbox and spawn error output checks to be more robust by handling both new and fallback matching cases.
- Ensure test consistency and reliability for shell output truncation and error message patterns.
@pakrym-oai pakrym-oai merged commit b2d81a7 into main Oct 5, 2025
19 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/make-output-assertions-more-explicit branch October 5, 2025 23:01
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 5, 2025
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