regression-testing

SkillWeb & browsing

Execute regression test suites via CI/CD, analyze results, classify failures, and produce GO/NO-GO release decisions. Use when running regression, smoke, or sanity suites through GitHub Actions, monitoring workflow runs, downloading Allure or Playwright artifacts, classifying failures (REGRESSION vs FLAKY vs KNOWN vs ENVIRONMENT vs NEW TEST), computing pass-rate and trend metrics, deciding release readiness, generating executive quality reports, or creating regression issues. Triggers on: run regression, trigger test workflow, analyze test results, quality report, GO/NO-GO decision, release readiness, flaky tests, Allure report, smoke suite, pass rate, nightly test failure, stage 6. Do NOT use for writing new regression tests (that belongs to test-automation) or for manual fix verification (that belongs to sprint-testing).

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the regression-testing skill

What this skill tells your AI

The instructions your AI receives, as published by upex-galaxy/agentic-qa-boilerplate in .agents/skills/regression-testing/SKILL.md and read by ahel’s review.

Forbidden invocations

NEVER invoke /sdd-* skills from this workflow. SDD is an optional user-installed ceremony; this skill ships self-contained and does not chain SDD under any condition. If you need to refactor KATA, fixtures, cli/, scripts/, or api/schemas/ pipeline, exit this skill first and invoke /framework-development — which itself runs Plan → Code → Verify → Archive natively (no SDD required).

This boundary is mechanical, not advisory: scripts/lint-skills.ts rejects any /sdd- mention outside this section. See: .agents/skills/agentic-qa-core/references/skill-composition-strategy.md §4 (governs users who manually install SDD).

Regression Testing — Execute, Analyze, Decide

Orchestrates the full release-readiness pipeline: trigger a CI suite, monitor it to completion, classify failures, score against release criteria, and emit a GO / CAUTION / NO-GO verdict plus a stakeholder report.

Three phases, always in this order: Execute → Analyze → Report. Do not skip analysis and jump to a report. Do not guess classification without reading failure logs.


Inputs

  • .github/workflows/*.yml — workflow files for regression / smoke / sanity suites; defines triggers, inputs, and artifact uploads.
  • .context/master-test-plan.md — regression Epic key + expected pass-rate SLOs per suite.
  • playwright.config.ts — reporter config, retry policy, project matrix; needed to interpret retry counts and shard splits.
  • Previous run's Allure report (artifact URL or local download under ./analysis/previous/) — baseline for trend computation.
  • kata-manifest.json — registry of tests and ATCs available; used to cross-reference failed test IDs.
  • .agents/jira-required.yaml — Jira refs (project key, work types, transitions) for filing regression issues.
  • agentic-qa-core/references/defect-management-doctrine.mdcanonical authority for classifying (Bug/Defect/Improvement), the mandatory field matrix, QA-Assignee ownership, and the QA process epic when a confirmed regression is filed in Jira (Phase 3). Read BEFORE filing any defect.

Subagent Dispatch Strategy

Orchestration & Session contracts: this skill follows agentic-qa-core/references/orchestration-doctrine.md (mandatory subagent dispatch — main thread is command center) AND agentic-qa-core/references/session-management.md (Phase 0 resume check, plan-first persistence at .session/<skill-slug>/<scope>/, archive on completion). Phase 0 (resume check) and Phase 1 (plan write) are NOT optional. The orchestrator also applies the per-stage Definition-of-Done gates in agentic-qa-core/references/stage-gates.md: verify a stage's DoD BEFORE recording its progress checkpoint and advancing.

This skill is per-run scope: <scope> = <env>-<YYYY-MM-DD> (e.g. staging-2026-05-20). Session state lives at .session/regression-testing/<scope>/{plan.md, progress.md} per agentic-qa-core/references/session-management.md §3 + §9. The single highest-value resume case: if the Monitor subagent dies while watching a long CI run but RUN_ID was captured in plan.md, Phase 0 re-attaches via gh run view <RUN_ID> instead of re-triggering CI (saves 20–60 min of wall-clock).

This skill is compliant with the doctrine in AGENTS.md §"Orchestration Mode (Subagent Strategy)" and the session contract in .agents/skills/agentic-qa-core/references/session-management.md. Every dispatch follows the 7-component briefing format defined in .agents/skills/agentic-qa-core/references/briefing-template.md, and the pattern selected per stage matches the decision guide in .agents/skills/agentic-qa-core/references/dispatch-patterns.md. The two CI-bound stages (long-running watch, multi-artifact download) and the high-volume failure classification step are the hotspots — everything else stays inline because the dispatch overhead is not justified.

StagePatternSubagent role
Trigger workflow (gh workflow run)Singleinline — no dispatch needed (one shell call)
Wait/monitor gh run watchBackgroundone Monitor subagent runs the watch; main thread continues with prep work; subagent notifies on exit
Download 3 artifacts (allure / evidence / playwright)Parallel3 simultaneous subagents, one per artifact; cap = 3 (no rate-limit risk)
Classify failures (chunks of ~10 tests each)ParallelN subagents based on failure volume; cap = 10 to avoid context dilution
Compute metrics (pass-rate, trends)Singleinline — needs aggregated state, low cost
Generate executive reportSingleinline — final synthesis, decisions live here
GO / CAUTION / NO-GO verdictSingleinline — main thread owns release decisions
  • Error protocol: On any subagent failure: STOP, report full context to user, present retry / skip / abort options. Do NOT auto-fix. See .agents/skills/agentic-qa-core/references/orchestration-doctrine.md.

Readiness Preflight Gate (MANDATORY — runs before Phase 0)

Full doctrine: agentic-qa-core/references/preflight-gate.md. Runs FIRST, before the resume check and any gh workflow run. Two laws: (1) args-as-answers — the suite (regression/smoke/sanity), env, and any grep/test_file are provided args; ask only the gaps. (2) probe, don't assume. Surface gaps + REDs as ONE AskUserQuestion checklist; self-fix with approval + explanation; STOP on any blocking RED. This generalizes the Phase 1 §Preflight (gh auth) to a full readiness check pulled to t=0. Generic baseline (env resolution, secret/restart handling, the two laws, output contract) is inherited from the reference §3.1 — not repeated here. Below is only this skill's specific capability delta (note: test-user creds, MCPs and browsers live inside the CI runner, not the orchestrator).

CapabilityNeedWhy here
GitHub CLI authenticatedREQUIREDEvery stage drives CI via gh (gh auth status, gh workflow run, gh run watch, gh run download). Not authed → user runs gh auth login (suggest the ! prefix); do not proceed.
Workflow files presentREQUIRED.github/workflows/ must hold the regression/smoke/sanity workflow for the chosen suite, with the inputs this skill passes.
GitHub Actions Secrets/VariablesREQUIREDThe runner authenticates with env-prefixed creds (secrets.<ENV>_USER_EMAIL / _PASSWORD) + XRAY_* / ATLASSIAN_* as Repository/Environment Secrets — the suite 401s mid-run without them. gh secret list (add --env <env> for environment scope) shows them; missing → gh secret set <NAME> from .env. /adapt-framework only emits a manual list today, so this is the most common silent gap.
Allure 3 localREQUIREDbunx allure resolves (devDep, no global install); allurerc.mjs present for bun allure:agent markdown triage.
Active envREQUIREDThe suite runs against <<ACTIVE_ENV>> (default {{DEFAULT_ENV}}). Confirm it is the intended target before a 20–60 min run.
[TMS_TOOL] (result sync)OPTIONALOnly when .agents/project.yaml testing.tms_cli is set — Stage 3 pushes run status. jira-xray → /xray-cli + XRAY_*.
[ISSUE_TRACKER_TOOL] (file regression issues)OPTIONALOnly on NO-GO / CAUTION-with-regressions, to file issues. Load /acli then.

Test-user creds, OpenAPI/API_TOKEN, DBHub and Playwright browsers live inside the CI runner, not the orchestrator — this skill does not exercise them locally, so they are out of scope for this gate. After the gate clears (all REQUIRED GREEN), continue to Phase 0 below.


Phase 0 — Session resume check (MANDATORY, inline)

Before suite selection or any gh workflow run, run the resume contract from agentic-qa-core/references/session-management.md §4:

  1. Compute prospective <scope> = <env>-<YYYY-MM-DD> from invocation context (env defaults to {{DEFAULT_ENV}}).
  2. Check .session/regression-testing/<scope>/progress.md.
  3. If it does NOT exist → proceed to suite selection + Phase 1 preflight + plan.md write.
  4. If it DOES exist:
    • Read plan.md (captured suite, env, workflow_file, RUN_ID if Phase 1 already triggered).
    • Read tail of progress.md.
    • If RUN_ID is present AND progress.md last entry is Phase 1 — Trigger — status: completed but Monitor entry is missing/failed: surface the option to re-attach to the existing RUN_ID via gh run view <RUN_ID> --json status,conclusion instead of re-triggering. This is the high-value resume case.
    • Otherwise surface the standard offer resume / restart / abort. On restart, archive to .session/.archive/<YYYY-MM-DD>-regression-testing-<scope>-aborted/ first.

When to run each suite

SuiteWorkflow fileDurationUse when
regressionregression.yml20-60 minPre-release validation, nightly full run
smokesmoke.yml2-5 minPost-deploy health check, @critical only
sanitysanity.yml1-10 minValidate one feature / one file / one grep pattern

If the user says "run regression" with no qualifier, default to regression on {{DEFAULT_ENV}}. If they say "smoke" or "critical only", use smoke. If they specify a file, grep, or single feature, use sanity.


Local reporting (Allure 3, no global install)

Allure 3 is a devDep — bunx allure resolves to the local node_modules/.bin/allure, no brew install allure / scoop install allure required. Configuration lives at allurerc.mjs, single-plugin BY DESIGN: with only the Awesome plugin the generated index.html IS the report (no card-chooser landing), and its top-left mode dropdown covers everything — Report (drill-down, tag filters), Graphs (complete executive chart set: status, dynamics, severities, stability, testing pyramid, durations…), Timeline. Never add plugin-dashboard instances — they duplicate Graphs with fewer charts and bring back the landing screen (rationale in allurerc.mjs comments). Trend charts are fed by historyPath: ./.allure/history.jsonl and populate from the 2nd run onward.

Use caseScriptUnderlying command
Run tests + auto-generate report (human review)bun allure:runbunx allure run -- bun test
Run tests + emit markdown for AI reviewbun allure:agentbunx allure agent -- bun test
Generate report from existing ./allure-resultsbun allure:generatebunx allure generate ./allure-results
Serve last generated report locallybun allure:openbunx allure open
Live-refresh report during iterative devbun allure:watchbunx allure watch ./allure-results

bun allure:agent is the AI-friendly entry point: it produces a markdown summary the orchestrator (or a Verifier subagent) can read directly without parsing HTML. Use it whenever you need a structured pass/fail breakdown after a local re-run while triaging a CI failure (Phase 2 step 1, before downloading the merged-allure-results artifact from CI).

CI artifacts (merged-allure-results-{env}) are still produced by the workflow and downloaded via gh run download as documented in Phase 2. The published GitHub Pages reports are generated by scripts/ci/publish-allure-pages.ts with the SAME allurerc.mjs and allure devDep as local runs — the /{env}/{suite}/ URL redirects straight into the latest run's Awesome report (Report | Graphs | Timeline), with per-suite trend history and last-10-runs retention.

Allure version-currency check (MANDATORY during any Allure/Pages setup)

The boilerplate pins allure / allure-playwright / allure-js-commons at scaffold time, so by the time someone installs the repo and runs this setup they are usually behind upstream. Whenever this skill performs Allure setup (first local report, preflight RED on the "Allure 3 local" row) or GitHub Pages setup (references/github-pages-setup.md), run this check FIRST:

  1. npm view allure version && npm view allure-playwright version → compare against package.json.
  2. Same major behind → summarize the news for the user (release notes: gh api repos/allure-framework/allure3/releases), then offer bun update allure allure-playwright allure-js-commons (or bump the ^ ranges + bun install). Keep allure-js-commons in lockstep with allure-playwright (it is imported directly by tests/components/TestFixture.ts for the layer auto-label).
  3. New major available → NEVER upgrade silently. Present breaking changes and wait for explicit user approval.
  4. Config-currency (older scaffolds)bun run update syncs skills and appends new devDeps, but it NEVER overwrites allurerc.mjs or tests/components/TestFixture.ts (project-adapted files). If the local allurerc.mjs predates the current template (no historyPath, no categories, or stale plugin-dashboard instances), OFFER to migrate it: fetch the boilerplate's current allurerc.mjs as reference (https://raw.githubusercontent.com/upex-galaxy/agentic-qa-boilerplate/main/allurerc.mjs), preserve the project's name, and port the config. Same for the _allureLayer auto-fixture in TestFixture.ts (feeds the testingPyramid + durations-by-layer charts in Awesome's Graphs tab) — without it those charts render empty. Never overwrite silently; show the diff and wait for approval.
  5. After any bump: bun allure:generate from existing results (or a sandbox run) and confirm the report renders — the root index.html must open the Awesome report directly, with the Report | Graphs | Timeline mode dropdown working.

Known gotchas to preserve on upgrade (context in allurerc.mjs comments):

  • Dashboard chart type values must match ChartType in @allurereport/charts-api — the plugin README's trend/pie examples are stale and yield an empty dashboard (404 on widgets/charts.json).
  • historyPath must stay OUTSIDE allure-report/ (./.allure/history.jsonl) or test:clean erases trend history.
  • Multiple instances of one plugin need an explicit import: field — a custom key alone does not resolve (relevant only if a project deliberately adds extra report views).

Phase 1 — Execute

Preflight (always)

gh auth status
gh repo view --json name,owner
gh workflow list

If gh is not authenticated, stop and ask the user to run gh auth login. Do not proceed.

Write .session/regression-testing/<scope>/plan.md per agentic-qa-core/references/session-management.md §6 BEFORE the Trigger step below. Capture: Goal (suite + env + reason for run), Inputs (workflow file path, env vars, optional grep/test_file for sanity), Approach (subagent pattern per stage from the dispatch table above), Phase breakdown (Trigger → Monitor → Download → Classify → Compute → Report → Verdict), Risks, Verification checklist (all 3 artifacts download + verdict emitted), Cross-references (.context/reports/regression-<env>-<date>.md will hold the final verdict). RUN_ID lands in plan.md §Inputs AFTER the Trigger step captures it — append, do not rewrite the body.

Trigger

# Full regression
gh workflow run regression.yml \
  -f environment=staging \
  -f video_record=false \
  -f generate_allure=true

# Smoke
gh workflow run smoke.yml -f environment=staging -f generate_allure=true

# Sanity (grep OR test_file, never both)
gh workflow run sanity.yml -f environment=staging -f test_type=e2e -f grep="@auth"
gh workflow run sanity.yml -f environment=staging -f test_file="tests/e2e/auth/login.test.ts"

Capture run ID

# Wait 3-5 seconds for the run to register, then:
gh run list --workflow=regression.yml --limit=1 --json databaseId,status,createdAt -q '.[0].databaseId'

Store as RUN_ID. Every subsequent step uses it.

Progress checkpoint after Trigger: append RUN_ID to .session/regression-testing/<scope>/plan.md §Inputs (so resume can re-attach) AND append a phase entry ## Phase 1.Trigger — <ts> with status: completed, next: Phase 1.Monitor, notes: RUN_ID=<value> to progress.md. This is the critical persistence point — Trigger landing without RUN_ID persisted means resume cannot re-attach.

Monitor to completion

Use the dispatch defined in §Subagent Dispatch Strategy: Background. Delegate gh run watch <RUN_ID> to a Monitor subagent so the main thread is freed to prepare the report scaffold and load the classification rubric. See references/ci-cd-integration.md §"Monitoring the workflow run (Background dispatch)" for the full briefing.

Reference command (executed inside the subagent, not inline on the main thread):

gh run watch <RUN_ID> --exit-status
# Fallback polling (only if gh run watch is unavailable):
gh run view <RUN_ID> --json status,conclusion
# status: queued | in_progress | completed
# conclusion (only when completed): success | failure | cancelled | timed_out

Do not start Phase 2 until the Monitor returns status: completed.

Output of Phase 1

A short execution summary with: workflow name, run ID, environment, duration, conclusion, per-job status, artifact list, and the Allure URL pattern https://{owner}.github.io/{repo}/{environment}/{suite}/.

Read references/ci-cd-integration.md when configuring new workflows, debugging CI-only failures, tuning sharding / retries / timeouts, or wiring up secrets and variables.


Phase 2 — Analyze

Step 1: Collect data

Use the dispatch defined in §Subagent Dispatch Strategy: Parallel for the three artifact downloads (allure / evidence / playwright). Fan out three subagents in a single tool-call block — each owns one artifact, writes to its own directory, and reports back when its download is verified. The metadata reads (gh run view) stay inline because they are short.

Reference commands (the metadata reads run inline; the three gh run download calls live inside the parallel subagents):

# Inline (main thread): full run context
gh run view <RUN_ID> --json status,conclusion,jobs,createdAt,updatedAt,url,headBranch,event,actor

# Inline (main thread): failed logs only (much smaller than --log)
gh run view <RUN_ID> --log-failed

# Inline (main thread): list artifacts so the parallel dispatchers know what to fetch
gh run view <RUN_ID> --json artifacts --jq '.artifacts[].name'

# Parallel subagent A — allure results
gh run download <RUN_ID> -n merged-allure-results-staging -D ./analysis/

# Parallel subagent B — failure evidence (screenshots, traces, videos)
gh run download <RUN_ID> -n e2e-failure-evidence       -D ./analysis/evidence/

# Parallel subagent C — playwright HTML report
gh run download <RUN_ID> -n e2e-playwright-report      -D ./analysis/playwright/

Each subagent uses the briefing shape in agentic-qa-core/references/briefing-template.md §"Parallel — Download 3 CI artifacts in regression-testing". Cap the fan-out at 3 — there are only ever three artifact streams and GitHub's per-run rate limits are not a concern at that size.

Step 2: Parse results

Source of truth priority: Allure results JSON > Playwright report.json > raw logs. Each Allure result has status, statusDetails.message, statusDetails.trace, and labels[] (look for testId = ATC ID, suite, and severity).

The suite label is tag-derived — single source of truth. Allure suite/grouping labels are NOT a separate taxonomy: they derive from the Playwright tag (@smoke / @regression / @e2e / @integration / @critical) that also drives CI scope selection. A test tagged @integration reports suite: integration automatically. So the suite you read here is exactly the scope CI ran — never reconcile it against a parallel Allure label set. Convention owner: test-automation/references/ci-integration.md §3.2.1.

Step 3: Compute metrics

MetricFormula
Totalcount of results
Passed / Failed / Skipped / Brokencount by status
Pass RatePassed / Total * 100
Durationmax(stop) - min(start)
Trendcurrent pass rate − previous run pass rate

Exclude KNOWN-BLOCKED from the gating pass-rate. Tests classified KNOWN-BLOCKED (tagged @blocked:{BUG-KEY}, see Step 4) are parked behind an already-filed bug — they are NOT regression failures and must not depress the pass-rate that drives the GO/NO-GO score. Compute the gating Pass Rate over Total − KNOWN-BLOCKED, and report the blocked count separately (with each {BUG-KEY}) so the release decision is not gamed in either direction.

Previous-run comparison requires downloading artifacts of the previous run:

PREV=$(gh run list --workflow=regression.yml --limit=2 --json databaseId -q '.[1].databaseId')
gh run download $PREV -n merged-allure-results-staging -D ./analysis/previous/

Step 4: Classify every failure

Use the dispatch defined in §Subagent Dispatch Strategy: Parallel when the failure list has more than 10 entries. Shard the failures into chunks of ~10 (cap at 10 subagents) and fan out one classification subagent per chunk; merge their JSON reports in the main thread. For ≤10 failures, classify inline (the dispatch overhead is not justified). See references/failure-classification.md §"Parallel classification (default for >10 failures)" for the full briefing and merge protocol.

Apply this decision tree to each failed test (whether classified inline or inside a parallel subagent). Never mark a test REGRESSION without checking history first — that is the single most common misclassification.

Failed test
  │
  ├── Tagged @blocked:{BUG-KEY}? ────────────► KNOWN-BLOCKED
  │   (test asserts test.fail('Blocked by {BUG-KEY}') — a deliberately
  │    parked test, not a fresh regression; excluded from gating pass-rate)
  │
  ├── Linked to a known-issue ticket? ───────► KNOWN ISSUE
  │
  ├── Error matches environment pattern? ────► ENVIRONMENT ISSUE
  │   (ECONNREFUSED, ETIMEDOUT, net::ERR_, Navigation timeout,
  │    browserType.launch, 502/503, context deadline exceeded)
  │
  ├── No history (first-ever run)? ──────────► NEW TEST FAILURE
  │
  ├── Failure rate > 20% over last 10 runs? ─► FLAKY
  │
  └── Passed in last ≤ 5 runs, now fails? ───► REGRESSION   (release blocker)
CategoryImpactAction
KNOWN-BLOCKEDLOWAlready tracked by {BUG-KEY} — exclude from gating pass-rate, list in report with the blocking bug key. No new Jira bug (the marker already names the open bug)
REGRESSIONHIGHBlock release, file Jira Bug/Defect (Phase 3 §File defects in Jira, doctrine Part 1), assign
FLAKYMEDIUMSchedule stabilization, do not block — no Jira bug
KNOWN ISSUELOWDocument against existing ticket, do not block — no new Jira bug
ENVIRONMENTMEDIUMRe-run after infra check — no Jira bug
NEW TESTLOWManual verification → if a genuine product defect, file Jira Bug/Defect; else accept or fix

Shortened here. Read the whole file on GitHub.

Signals

GitHub stars
21
Forks
12
Last commit
Sep 2026

ahel review

  • K1binfo
    installs-packages

Automated review, not a security audit. Ruleset v1+k2.

Advanced
Catalog kind
skill
Gateway key
regression-testing-upex-galaxy
Source
github.com/upex-galaxy/agentic-qa-boilerplate