Skip to content

ci(review): add core non-e2e CI gate, SHA-pin workflows, and add review rules - #16

Merged
pctablet505 merged 3 commits into
mainfrom
ci/core-test-gate-and-egm-review
Nov 18, 2026
Merged

pctablet505 merged 3 commits into
mainfrom
ci/core-test-gate-and-egm-review

Conversation

@pctablet505

@pctablet505 pctablet505 commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds a core non-e2e GitHub Actions CI gate, isolates PR concurrency and adds job timeouts while SHA-pinning pages.yml actions, and adds self-contained public review rules (4 files):

  • .github/workflows/ci.yml: runs on push (main) and pull_request with permissions: { contents: read }, PR-aware concurrency, timeout-minutes: 15, SHA-pinned actions/checkout@v7.0.1 (persist-credentials: false) and actions/setup-python@v7.1.0, installing -e ".[dev]" into a repo-local .venv (so tests/test_cli_control.py executes all 16 console-script tests instead of skipping), executing all 35 non-e2e pytest modules (-q -rs -n auto --maxprocesses=12 -p no:cacheprovider), and running out-of-tree .venv/bin/python -m mkdocs build --strict -d "${RUNNER_TEMP:?RUNNER_TEMP must be set}/site" (so rendered site/ HTML cannot trip tests/test_hygiene.py).
  • .github/workflows/pages.yml: isolates PR concurrency (pages-pr-{number}, cancel-in-progress: true) from main/workflow_dispatch deploy concurrency (pages, cancel-in-progress: false), adds explicit timeout-minutes (15 on build, 10 on deploy), and pins actions/checkout (v7.0.1, persist-credentials: false), actions/setup-python (v7.1.0), actions/upload-pages-artifact (v5.0.0), and actions/deploy-pages (v5.0.1) to verified 40-char commit SHAs.
  • AGENTS.md: adds self-contained public agent card (Servedeck casing, .venv/bin/python, out-of-tree mkdocs build --strict -d <out-dir>, exact servedeck/units.py _NAME_RE boundary refusing servedeck, pgrep/pkill AST ban covering all invocations, sd-test- e2e namespace plus read-only sd-netns-probe-<pid> in tests/conftest.py, maintainer vs external contributor commit-identity scoping, zero private references or host-specific paths).
  • CONTRIBUTING.md: appends three-stage Review & Verification Gate (Blocker: / Warning: / Nit: severity taxonomy) and two-column ### Negative-Rule Ledger:
    • Row 1 separates manual operator systemctl --user for persistent servedeck.service from servedeck/units.py (model-* / sd-test-* only; explicitly refuses servedeck), plus read-only journalctl -k -b all --no-pager, and blocks sudo/su, non---user systemctl/systemd-run, widening _NAME_RE, and wildcard stop globs (systemctl --user stop 'sd-test-*').
    • Row 2 covers sd-test- transient e2e units (test_app_e2e.py, test_control_e2e.py, test_e2e_real.py) plus read-only sd-netns-probe-<pid> (tests/conftest.py), and blocks mutating any live model-* or non-test production user unit (servedeck, lfm2-350m, qwen-vllm, *-reasoning-proxy).
    • Row 3 covers the 4 excluded fixed-port/GPU e2e modules and hardware/cache-gated skips surfaced by -rs, and blocks module-/dependency-level skips (e.g., omitting .venv or mkdocs).

Verification

  • Remote GitHub Actions CI (ci.yml, run 44246262327 on 6ad389d): GREEN (38s) — 1285 passed, 23 skipped, 4 warnings in 20.15s (tests/test_cli_control.py ran 16/16 with zero skips; remaining 23 skips are GPU/HF cache/multi-filesystem host probes) + out-of-tree mkdocs build --strict -d "${RUNNER_TEMP:?RUNNER_TEMP must be set}/site" PASSED (0.16s).
  • Remote GitHub Actions Docs site (pages.yml, run 44246262299 on 6ad389d): GREEN (18s) — build PASSED, deploy properly skipped on pull_request.
  • Local hygiene/packaging/site verification: PYTHONDONTWRITEBYTECODE=1 python3 -m pytest -q -rs -n auto --maxprocesses=12 -p no:cacheprovider tests/test_hygiene.py tests/test_packaging.py tests/test_site.py: 112 passed, 7 skipped in 1.47s (7 skips are TestTheBuiltSite due to missing local mkdocs).
  • Strict YAML validation (UniqueKeyLoader), upstream SHA verification (git ls-remote & gh api), and mutant-kill probes on AGENTS.md, CONTRIBUTING.md, and site/index.html confirmed passing.

COULD NOT VERIFY (not_checked)

  • Local mkdocs build --strict and TestTheBuiltSite (mkdocs verified on GitHub Actions ci.yml run 44246262327 and pages.yml run 44246262299).
  • GPU/systemd e2e modules (test_e2e_real.py, test_app_e2e.py, test_control_e2e.py, test_gateway_e2e.py).

…ew rules

- Create .github/workflows/ci.yml running all 35 non-e2e pytest modules
  (-n auto --maxprocesses=12) and strict mkdocs build on push/pull_request.
- Pin all actions in .github/workflows/pages.yml to verified 40-char SHAs
  with persist-credentials: false on actions/checkout.
- Add self-contained public AGENTS.md and append the three-stage Review &
  Verification Gate plus two-column Negative-Rule Ledger to CONTRIBUTING.md.
…indings

- Create repo-local .venv in ci.yml so tests/test_cli_control.py executes all
  16 console-script tests instead of silently skipping, add -rs to pytest,
  build docs out-of-tree (-d "${RUNNER_TEMP}/site") so rendered site/ HTML
  cannot trip tests/test_hygiene.py, and add concurrency + timeout-minutes
- Isolate pull_request concurrency group in pages.yml so PR builds never cancel
  or queue behind main deploys
- Fix CONTRIBUTING.md Negative-Rule Ledger row 2 (test_e2e_real.py instead of
  test_gateway_e2e.py for sd-test- transient units), expand row 1 to cover
  systemd-run --user and read-only journalctl -k Xid polling, remove orphaned
  Stage A label, and define Blocker/Warning/Nit severity labels
- Align AGENTS.md casing (Servedeck), .venv/bin/python commands, out-of-tree
  mkdocs build warning, and systemd/journalctl invariants
@pctablet505
pctablet505 marked this pull request as ready for review November 18, 2026 06:56
@pctablet505
pctablet505 merged commit 19ce8da into main Nov 18, 2026
3 checks passed
@pctablet505
pctablet505 deleted the ci/core-test-gate-and-egm-review branch November 18, 2026 06:56
pctablet505 added a commit that referenced this pull request Dec 3, 2026
Both sides appended at the same places: the Nemotron entry and the KB pair are both kept in models.toml, discovery's architecture map and their tests; the registry now has 10 models and wire lists 12 ids (the KB pooling models never).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant