Skip to content

test: branch on target OS instead of runner flavor - #29712

Merged
anp-oai merged 2 commits into
mainfrom
codex/target-os-test-interface
Jun 23, 2026
Merged

test: branch on target OS instead of runner flavor#29712
anp-oai merged 2 commits into
mainfrom
codex/target-os-test-interface

Conversation

@anp-oai

@anp-oai anp-oai commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Why

Core tests should branch on the executor's operating system, not on runner details such as Docker or Wine. This keeps platform behavior stable as new test backends are added and reserves Wine-specific skips for actual runner debt.

What

  • Add TestTargetOs and target/host-aware skip helpers while keeping TestEnvironment internal.
  • Replace topology enum access with remote predicates and a narrow Docker accessor.
  • Migrate OS-semantic Wine skips, preserve runner-specific gaps, and document the skip taxonomy.

Validation

  • just test -p core_test_support
  • just test -p codex-core remote_test_env_can_connect_and_use_filesystem
  • bazel test //codex-rs/core:core-all-wine-exec-test --test_output=errors reached test execution; unrelated existing view-image, path, and timing failures remain.
  • just test -p codex-core and just test reached broad test execution; this checkout has unrelated helper, sandbox, and timing failures.

@anp-oai
anp-oai force-pushed the codex/target-os-test-interface branch from fec51ab to c4d565c Compare June 23, 2026 20:50
@anp-oai
anp-oai marked this pull request as ready for review June 23, 2026 21:02
@anp-oai
anp-oai requested a review from a team as a code owner June 23, 2026 21:02
@anp-oai

anp-oai commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

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

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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c4d565c418

ℹ️ 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 codex-rs/core/tests/suite/network_approval.rs
@anp-oai
anp-oai merged commit 9a79536 into main Jun 23, 2026
31 checks passed
@anp-oai
anp-oai deleted the codex/target-os-test-interface branch June 23, 2026 21:27
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 23, 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.

2 participants