Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .agents/skills/diffprowl/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: diffprowl
description: Observe and qualify DiffProwl test selection for pytest, diagnose full-suite fallbacks, and replay historical failures using a pinned engine and a full control run.
description: Observe DiffProwl test selection for pytest, Playwright Test and Appium JUnit jobs, diagnose full-suite fallbacks, and qualify or replay pytest changes using a pinned engine and a full control run.
---

# DiffProwl
Expand All @@ -13,6 +13,13 @@ Follow “Observe an existing pytest CI job” in the engine README for the exac

Match the run and report to the same head SHA. Check which ancestor baseline the observer actually loaded, its engine digest and scope, the collection on each worker, and the reported expansion reason. A published profile can exist even when CI could not load it. When diagnostics are incomplete, record the last confirmed step. A null omitted-failure count means the comparison was unavailable.

For a Playwright Test or Appium job, read `docs/e2e.md` and use the pinned
binary's `observe` command. Identify the actual runner, browser/device lane, app
build, scoped inputs and prior commit before interpreting selection. Use the
native runner's full command. Inspect receipt completeness, expansion reason,
selected groups and omitted failures. Treat a missing JUnit shard, setup error
or incomplete browser run as inconclusive.

## Check a change against a failure

Use the change's own base and head. For a historical replay, see “Bounded historical replay” in the pinned README and read the checked-in scope and manifest. For a seeded fault, use the pinned engine's `qualify` command with the reviewed scope, campaign, and a fresh output directory. Compare selected and full runs from equivalent clean inputs. Check the failing node and phase, including new parametrized cases, and distinguish assertion failures from collection errors. Record when the planner expanded to every test.
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/diffprowl/agents/openai.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface:
display_name: "DiffProwl"
short_description: "Observe pytest plans and diagnose full-suite fallbacks"
short_description: "Observe pytest, Playwright and Appium test plans"
default_prompt: "Use $diffprowl to explain why the pytest observer selected the full suite for this change."
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,10 @@ jobs:
python -m ruff format --check adapter examples
- name: adapter tests
run: python -m unittest discover -s adapter -p 'test_*.py' -v
- name: Verify Playwright observation with Chromium
env:
DIFFPROWL_PLAYWRIGHT_MODULES: ${{ runner.temp }}/diffprowl-playwright/node_modules
run: |
npm install --prefix "$RUNNER_TEMP/diffprowl-playwright" --no-audit --no-fund @playwright/test@1.65.1
"$DIFFPROWL_PLAYWRIGHT_MODULES/.bin/playwright" install --with-deps chromium
python -m unittest discover -s adapter -p 'test_playwright_live.py' -v
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ the resulting executable runs offline.
This is a **bounded in-process fixture**, not a QualityMax production integration or
a safe-to-skip recommendation for the repository's existing CI gates.

## Observe Playwright and Appium in CI

Run the existing full test command through `diffprowl observe playwright` or
`diffprowl observe appium`. The command plans from a previous full run, executes
the project's normal runner once, and compares its results with the advisory plan.
The runner controls browsers, devices, workers, retries, and exit status. The
observer and Playwright reporter ship inside the binary built from this revision.
Use Python 3.11+ and Git on the runner.

See the [setup and scope examples](docs/e2e.md) for Playwright Test (JS/TS)
and Appium runners that produce JUnit XML, including pytest and WebdriverIO.

## Codex prompts for pytest

Open this checkout in Codex to use the [DiffProwl skill](.agents/skills/diffprowl/SKILL.md). When working in another repository, install the skill there or in your personal skills directory. Paste a prompt and replace the placeholders with a PR, test ID, or CI run.
Expand Down
Loading
Loading