Skip to content

fix(tests): CI skill remote-setup assertion and related test hygiene#3684

Closed
kshitijk4poor wants to merge 1 commit intoNousResearch:mainfrom
kshitijk4poor:fix/test-ci-skill-remote-and-hygiene
Closed

fix(tests): CI skill remote-setup assertion and related test hygiene#3684
kshitijk4poor wants to merge 1 commit intoNousResearch:mainfrom
kshitijk4poor:fix/test-ci-skill-remote-and-hygiene

Conversation

@kshitijk4poor
Copy link
Copy Markdown
Contributor

@kshitijk4poor kshitijk4poor commented Mar 29, 2026

What failed on CI (e.g. PR #3676)

tests/agent/test_skill_commands.py::TestBuildSkillInvocationMessage::test_preserves_remaining_remote_setup_warning — the test installed a secret-capture callback that filled TENOR_API_KEY, so skill_view cleared setup_needed and never built setup_note (including the SSH remote environment suffix). Production behavior is correct; the fixture was contradictory.

Duplicate PR check

  • #2625 fixes optional-dep mocks / env pollution (parallel, whisper, HA websocket, etc.) — different failures.
  • #2785 clears TERMINAL_ENV in conftest for xdist flakes — orthogonal.

No open PR targets this skill-invocation / remote environment assertion.

Other fixes (local + CI consistency)

  • Platform tests: patch agent.skill_utils.sys (where skill_matches_platform reads sys.platform), not tools.skills_tool.sys.
  • test_invoke_tool_dispatches_to_handle_function_call: expect tool_call_id=None passed to handle_function_call.
  • test_claude_md_uppercase_takes_priority: @pytest.mark.skipif(darwin) — default macOS APFS cannot represent CLAUDE.md and claude.md as two files (CI remains Linux and still runs the test).

Verification

env OPENAI_API_KEY= OPENROUTER_API_KEY= NOUS_API_KEY= ANTHROPIC_API_KEY= python -m pytest tests/ -q

6731 passed, 165 skipped.

@kshitijk4poor kshitijk4poor force-pushed the fix/test-ci-skill-remote-and-hygiene branch 2 times, most recently from f48ca9a to dc7fa78 Compare March 29, 2026 07:38
- Skill invocation: no secret capture callback so SSH remote setup note is emitted
- Patch agent.skill_utils.sys for platform checks (skill_matches_platform)
- Skip CLAUDE.md priority test on Darwin (case-insensitive FS)

Made-with: Cursor
@teknium1
Copy link
Copy Markdown
Contributor

Merged via #3721 — your commit was cherry-picked onto current main with authorship preserved. Good catch on the CI failure. Thanks!

@teknium1 teknium1 closed this Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants