Add plugin-test tool for testing plugin loading#62
Draft
jpshackelford wants to merge 2 commits intomainfrom
Draft
Add plugin-test tool for testing plugin loading#62jpshackelford wants to merge 2 commits intomainfrom
jpshackelford wants to merge 2 commits intomainfrom
Conversation
Add a generalized plugin testing tool that can: - Launch conversations with any plugin from a configurable marketplace - Wait for sandbox startup and agent response - Verify response matches an expected string or regex pattern - Support CI/CD integration with proper exit codes Plugin structure: - scripts/test_plugin.sh - Main test execution script - commands/test.md - Slash command for /plugin-test:test - README.md - Comprehensive documentation Environment variables: - OPENHANDS_API_KEY (required) - OPENHANDS_URL (default: https://app.all-hands.dev) - MARKETPLACE_REPO (default: github:OpenHands/extensions) - MARKETPLACE_REF (default: main) Co-authored-by: openhands <openhands@all-hands.dev>
Support both OH_API_KEY (preferred) and OPENHANDS_API_KEY (fallback) for the API key environment variable. Co-authored-by: openhands <openhands@all-hands.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a generalized plugin testing tool that can test plugin loading via the OpenHands Cloud API. This tool can be used to verify that plugins work correctly by launching conversations and checking that the agent response matches expected patterns.
Features
github:OpenHands/extensions)Usage
Command Line
Slash Command
Environment Variables
OPENHANDS_API_KEYOPENHANDS_URLhttps://app.all-hands.devMARKETPLACE_REPOgithub:OpenHands/extensionsMARKETPLACE_REFmainPlugin Structure
How It Works
/api/v1/app-conversationswith the plugin spec/api/v1/app-conversations/start-tasks/searchuntil status isREADYRelated
This tool is based on the demo script from jpshackelford/openhands-sample-plugins, generalized to work with any plugin and any marketplace.
@jpshackelford can click here to continue refining the PR