agentleFS
CaduS0uzaCaduS0uza/qa-supreme/skills/ci-wiring/SKILL.md

ci-wiring

Skill1 starsChanged 2 months agoMITView on GitHub

Wire the test suite into CI so it is fast, parallel, and produces readable evidence — job tiering, sharding, caching, artifacts, required checks, and flake reporting. Use when asked to set up CI for tests, speed up the pipeline, or make failures debuggable.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Secrets: never in logs; use masked repository secrets.

    line 68

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

CI Wiring

A suite nobody can read the output of is a suite nobody will fix.

Job tiering (mirrors regression-curation)

name: qa
on: [push, pull_request]

jobs:
  smoke:                       # < 90s, blocks everything
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: 20, cache: npm }
      - run: npm ci
      - run: npm run test:smoke

  core:                        # < 8 min, sharded, required check
    needs: smoke
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix: { shard: [1, 2, 3, 4] }
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: 20, cache: npm }
      - run: npm ci
      - name: Cache Playwright browsers
        uses: actions/cache@v4
        with:
          path: ~/.cache/ms-playwright
          key: pw-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
      - run: npx playwright install --with-deps chromium
      - run: npx playwright test --shard=${{ matrix.shard }}/4
      - if: always()
        uses: actions/upload-artifact@v4
        with:
          name: report-shard-${{ matrix.shard }}
          path: |
            playwright-report/
            test-results/
          retention-days: 7

fail-fast: false matters: with it enabled you see one shard's failure and lose the other three, turning one CI run into four.

Non-negotiables

  • Artifacts on failure: trace, screenshot, video, server logs. Debugging a CI failure without a trace costs more than the whole pipeline.
  • if: always() on upload steps — the artifact you need most is from the run that failed.
  • Required checks on the protected branch, and the list reviewed when jobs are renamed. A renamed job silently stops being required.
  • Flake reporting: publish retried-but-passed tests to a dashboard or a comment. A flake that passes on retry and is never counted is a flake nobody will ever fix (flake-forensics).
  • Deterministic environment: pinned Node/Python, pinned browser version, TZ set explicitly (use a non-UTC one on at least one job — see i18n-l10n-testing), CI=true.
  • Secrets: never in logs; use masked repository secrets; a test environment token, never a production one.

Autonomous exploration in CI

The published action is the one-line form:

      - uses: CaduS0uza/qa-supreme@v1
        with:
          url: http://localhost:3000
          user: qa@example.com
          password: ${{ secrets.QA_PASSWORD }}
          fail-on: no-ship          # or `never` while you build trust

It writes a stage table to the job summary, exposes verdict, clicks and states as outputs, and uploads the evidence as an artifact. The manual form, if you want to control every step:

  explore:
    needs: smoke
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm ci && npx playwright install --with-deps chromium
      - run: npm start & npx wait-on http://localhost:3000
      - run: node runner/bin/qa-supreme.mjs run --url http://localhost:3000 --out .qa-supreme
      - if: always()
        uses: actions/upload-artifact@v4
        with: { name: qa-supreme-report, path: .qa-supreme/ }

Non-blocking at first: run it for a week, triage what it finds, then promote the stages you trust into required checks. A gate nobody trusts gets bypassed on day two.

Reporting

Publish a single comment per PR: stage table, verdict, links to artifacts. Twelve separate red checks is not a report, it is noise — and noise is how a red build becomes normal.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.