Skip to content

RTECO-2020 - Improve agent plugins tests - #3686

Merged
udaykb2 merged 7 commits into
masterfrom
RTECO-2020-improve-agent-plugins-tests
Aug 31, 2026
Merged

RTECO-2020 - Improve agent plugins tests#3686
udaykb2 merged 7 commits into
masterfrom
RTECO-2020-improve-agent-plugins-tests

Conversation

@udaykb2

@udaykb2 udaykb2 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

agent_plugins_test: add native harness verification with improved error handling

  • Add assertPluginsInstalledNatively() to verify plugins via harness native CLI (claude/codex plugin list --json, cursor/vscode manifest files)
  • Add verifyIsolatedHome() to verify HOME env var isolation works correctly
  • Add 30-second timeout to CLI commands to prevent test hangs
  • Parameterize VSCode repo path instead of hard-coding for test flexibility
  • Include stderr context in JSON parse error messages for better debugging
  • Improve type assertion error messages to show actual types received
  • Fix platform-specific temp path check to work cross-platform (Linux/macOS/Windows)
  • Add input parameter validation to catch test misconfiguration early
  • Add context import for timeout support
  • Update 16 fixture definitions to include all 4 harnesses (claude/codex/cursor/vscode)

This improves test reliability, debuggability, and cross-platform compatibility.

  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • The pull request is targeting the master branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....

@udaykb2
udaykb2 deployed to build-gate August 27, 2026 16:34 — with GitHub Actions Active
@udaykb2
udaykb2 force-pushed the RTECO-2020-improve-agent-plugins-tests branch from 781dd33 to d4370c3 Compare August 27, 2026 17:30
@udaykb2
udaykb2 deployed to build-gate August 28, 2026 04:45 — with GitHub Actions Active
@udaykb2
udaykb2 marked this pull request as ready for review August 28, 2026 05:01
@udaykb2
udaykb2 force-pushed the RTECO-2020-improve-agent-plugins-tests branch from c321535 to 1879f6d Compare August 28, 2026 06:09
…ling

Add assertPluginsInstalledNatively() to verify plugins via harness native CLI
(claude/codex plugin list --json, cursor/vscode manifest files)
Add verifyIsolatedHome() to verify HOME env var isolation works correctly
Add 30-second timeout to CLI commands to prevent test hangs
Parameterize VSCode repo path instead of hard-coding for test flexibility
Include stderr context in JSON parse error messages for better debugging
Improve type assertion error messages to show actual types received
Fix platform-specific temp path check to work cross-platform (Linux/macOS/Windows)
Add input parameter validation to catch test misconfiguration early
Add context import for timeout support
Update 16 fixture definitions to include all 4 harnesses (claude/codex/cursor/vscode)
Extract allAgentHarnesses constant for repeated harness slice
Skip Cursor/VSCode in native checks (they have no native CLI commands)
Remove redundant assertCursorPluginInstalled() and assertVSCodePluginInstalled() functions
Fix gosec G703 path traversal warnings with proper #nosec directives

This improves test reliability, debuggability, and cross-platform compatibility.
@udaykb2
udaykb2 force-pushed the RTECO-2020-improve-agent-plugins-tests branch from 1879f6d to 7cdc484 Compare August 28, 2026 06:11
…ling

Add assertPluginsInstalledNatively() to verify plugins via harness native CLI
(claude/codex plugin list --json, cursor/vscode manifest files)
Add verifyIsolatedHome() to verify HOME env var isolation works correctly
Add 30-second timeout to CLI commands to prevent test hangs
Parameterize VSCode repo path instead of hard-coding for test flexibility
Include stderr context in JSON parse error messages for better debugging
Improve type assertion error messages to show actual types received
Fix platform-specific temp path check to work cross-platform (Linux/macOS/Windows)
Add input parameter validation to catch test misconfiguration early
Add context import for timeout support
Update 16 fixture definitions to include all 4 harnesses (claude/codex/cursor/vscode)
Extract allAgentHarnesses constant for repeated harness slice
Skip Cursor/VSCode in native checks (they have no native CLI commands)
Remove redundant assertCursorPluginInstalled() and assertVSCodePluginInstalled() functions
Fix gosec G703 path traversal warnings with proper #nosec directives

This improves test reliability, debuggability, and cross-platform compatibility.
@udaykb2
udaykb2 deployed to build-gate August 28, 2026 06:23 — with GitHub Actions Active
@udaykb2
udaykb2 deployed to build-gate August 31, 2026 16:22 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown
Contributor

@udaykb2
udaykb2 merged commit 8da4c9b into master Aug 31, 2026
249 checks passed
@udaykb2
udaykb2 deleted the RTECO-2020-improve-agent-plugins-tests branch August 31, 2026 18:39
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