examples-auto-run

Automate Python example suite runs with logging and rerun support.

Updated Dec 6, 2016
One-click install
npx skills add https://github.com/majunbao/learn --skill examples-auto-run-majunbao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: examples-auto-run
Source: https://github.com/majunbao/learn/tree/main/openai-agents-python_tags/openai-agents-python-0.14.6/.agents/skills/examples-auto-run
Command: npx skills add https://github.com/majunbao/learn --skill examples-auto-run-majunbao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automate the manual process of running Python example suites by executing them in auto mode, capturing per-example logs and a main summary, and providing start/stop/log and rerun helpers.

Core Features & Use Cases

  • Runs example suites in auto mode with per-example logs stored under .tmp/examples-start-logs/ and a main log, plus a rerun list when failures occur.
  • Provides a script-based control surface (.agents/skills/examples-auto-run/scripts/run.sh) offering start, stop, status, logs, tail, collect, and rerun helpers.
  • Supports background execution with a pid file and configurable environment flags to tailor which components run.

Quick Start

Run the provided run.sh script in auto mode to start the process.

Frequently Asked Questions about examples-auto-run

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate running Python example suites with logging?

Automate Python example suites by executing them in auto mode via a run.sh harness, which captures per-example logs and a main summary. It also generates a rerun list for failures and supports background execution with environment-based configuration.

What is the best way to rerun failed Python example tests?

Rerun failed Python example tests using the rerun helper in the run.sh script. The process automatically generates a rerun file containing failures, allowing you to execute only the failed examples without rerunning the entire suite.

How does background execution for Python test scripts work?

Background execution for Python scripts works using a pid file to manage the process. You can start the suite in the background and use start, stop, status, logs, and tail helpers to control and monitor the run without blocking your terminal.

Can I configure which Python components run during automated example testing?

You can configure which components run during automated example testing by setting environment-based flags. The run.sh harness honors these environment variables to tailor the execution of your Python example suite to specific needs.

Where are the logs stored when running Python examples in auto mode?

When running Python examples in auto mode, per-example logs are stored under the .tmp/examples-start-logs/ directory. A main log is also generated alongside the rerun file to provide a summary of the entire run.

Do I need any external dependencies to run Python examples in auto mode?

You do not need external dependencies to run Python examples in auto mode. The skill relies solely on the provided run.sh harness and your existing Python environment to execute the scripts and generate logs.