Test:run hypershift

From kagenti/kagenti · View interactive version

Test:run hypershift is an AI agent skill from the GitHub repository kagenti/kagenti. Run E2E tests on HyperShift cluster

How to use this skill

Skill file

Run Tests on HyperShift

Auto-approved: All test execution on hosted HyperShift clusters is auto-approved.

Context-Safe Execution (MANDATORY)

Test output MUST go to files. Test runs produce hundreds of lines.

export LOG_DIR=/tmp/rossoctl/tdd/${WORKTREE:-$CLUSTER}
mkdir -p $LOG_DIR

# Pattern: redirect test output
command > $LOG_DIR/test-run.log 2>&1; echo "EXIT:$?"
# On failure: Task(subagent_type='Explore') with Grep to find FAILED|ERROR

When to Use

Run All Tests

KUBECONFIG=~/clusters/hcp/rossoctl-hypershift-custom-$CLUSTER/auth/kubeconfig \
  ./.github/scripts/local-setup/hypershift-full-test.sh $CLUSTER --include-test \
  > $LOG_DIR/test-all.log 2>&1; echo "EXIT:$?"

Run Specific Tests

KUBECONFIG=~/clusters/hcp/rossoctl-hypershift-custom-$CLUSTER/auth/kubeconfig \
  ./.github/scripts/local-setup/hypershift-full-test.sh $CLUSTER \
  --include-test --pytest-filter "test_agent or test_mlflow" \
  > $LOG_DIR/test-filtered.log 2>&1; echo "EXIT:$?"

Run from Worktree

KUBECONFIG=~/clusters/hcp/rossoctl-hypershift-custom-$CLUSTER/auth/kubeconfig \
  .worktrees/$WORKTREE/.github/scripts/local-setup/hypershift-full-test.sh $CLUSTER \
  --include-test --pytest-filter "test_agent"

Test Categories

| Filter | Tests | Notes |

|--------|-------|-------|

| test_agent | Agent conversation tests | Needs LLM (OpenAI) |

| test_mlflow | MLflow traces, auth | HyperShift only |

| test_agent or test_mlflow | Both (recommended) | Traces need fresh agent calls |

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.