openai / openai/codex

Skills host-root tests are polluted by the runner user environment

Open
#38,906 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug CLI skills
Dominant language
Rust
Stars
125k
Forks
19.5k
PR merge metrics
PR metrics pending

Description

Three skills extension tests fail on a checkout located beneath a user home that contains .agents content:

  • ext::skills::host_service_tests::snapshot_for_config_merges_extension_host_and_legacy_plugin_roots
  • ext::skills::host_service_tests::snapshot_for_config_preserves_host_precedence_for_symlinked_plugin_root
  • ext::skills::host_roots_tests::repo_ancestry_without_project_marker_does_not_walk_parents

The failures include skills from the runner user's global ~/.agents/skills and discover the workspace parent .agents root, changing the expected isolated fixture result. Reproduction on the current upstream main is possible with:

cargo nextest run -p codex-skills-extension -E "test(snapshot_for_config_merges_extension_host_and_legacy_plugin_roots)"
cargo nextest run -p codex-skills-extension -E "test(snapshot_for_config_preserves_host_precedence_for_symlinked_plugin_root)"
cargo nextest run -p codex-skills-extension -E "test(repo_ancestry_without_project_marker_does_not_walk_parents)"

Please make these tests hermetic by isolating or overriding global and parent skill discovery, then remove the temporary test quarantines.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the codex-skills-extension tests named in the issue and run the three provided cargo nextest commands on upstream main. Trace how global and parent skill discovery enters these fixtures, then isolate or override it so the expected results are stable and remove the temporary test quarantines.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
76/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.