Skip to content

[do not merge] CI trigger probe: docs-only change - #5515

Closed
kovtcharov-amd wants to merge 1 commit into
ci/path-filtersfrom
ci/probe-docs
Closed

kovtcharov-amd wants to merge 1 commit into
ci/path-filtersfrom
ci/probe-docs

Conversation

@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Probe for #5514: changes one file under docs only, to show which workflows the new path filters run. Will be closed without merging.

@github-actions github-actions Bot added the documentation Documentation changes label Oct 21, 2026
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator Author

Probe for #5514 done; closing without merge.

@kovtcharov-amd
kovtcharov-amd deleted the ci/probe-docs branch October 21, 2026 16:19
grtninja pushed a commit to grtninja/gaia that referenced this pull request Oct 22, 2026
The scarce Strix Halo pool was running hardware tests on almost every
PR, because those lanes triggered on all of `src/**` and `tests/**`,
including docs, the Agent UI frontend, and tests they never run. At the
same time, several lanes missed files that decide their result. The
worst case: the first-run `gaia init` hardware test didn't trigger on
the model-pull client, which is the path amd#1655 broke. Each lane now
triggers on what it actually runs, imports, installs or reads, and a new
lint check keeps it that way. Replaying the last 14 days of PR and
main-push runs through the new filters skips about **35k Strix Halo
minutes (28% of PR-lane Halo time, roughly 290 hours a week), 2.8k Strix
Point and 3.0k hosted**, net of the runs the fixes add.

## Test plan
- [x] `python util/lint.py --all`: every check passes, including the new
`CI Path Coverage`. `Tool Descriptions` fails locally only because that
shell's `gaia` resolves to a site-packages install; CI uses the editable
one.
- [x] The 32 test files that read workflow files pass: `pytest $(grep
-rl .github/workflows tests/unit hub/agents/*/python/tests)` (968
passed).
- [x] `pytest tests/unit/test_check_ci_path_coverage.py
tests/unit/test_flagship_ci.py` (83 passed). The last class pins the
policy: docs-only runs only the docs lanes, website-only only
`website-ci`, TUI runs `build_tui`, and a frontend `.tsx` runs no
hardware lane.
- [x] Probe PRs amd#5515 (docs-only), amd#5516 (website-only) and amd#5517
(tui-only) fired exactly the predicted lanes; results are in the PR
comments. All three are closed and their branches deleted.
- [ ] Merges through the merge queue.

<details>
<summary>🔍 Technical details</summary>

**Under-triggering found (a PR changing only this file skipped the
lane):**
- `test_gaia_init_hw` (Halo, 150 min/run):
`src/gaia/llm/lemonade_client.py` and `lemonade_choice.py`, the
model-pull path `gaia init --force-models` takes.
- Six Strix lanes (agent SDK, CLI Windows, API, embeddings, NPU
embedder, RAG, C++ integration) never triggered on
`installer/scripts/start-lemonade.ps1`, which they run.
`test_npu_embedder` also missed the `install-lemonade` action, so a
Lemonade pin bump never ran it.
- `.github/actions/setup-venv` is used by about 12 lanes, and almost
none listed it.
- The root `conftest.py`, `tests/conftest.py` and `pyproject.toml`
(pytest config) were missing from most pytest lanes. `setup.py` was
missing from `test_sd`.
- `test_unit`: about 20 `util/` scripts its tests import
(`release_tag.py`, `eval_lane_matrix.py`, …), 9 workflow files read by
contract tests (`publish.yml`, `release_components.yml`, …), 13 doc
pages checked for drift, `hub/agents/*/python`,
`installer/{debian,nsis,README.md}`, `scripts/dev`, and
`website/src/scripts/download-target.ts`.
- `test_email_agent` / `test_email_agent_unit` / `test_chat_agent`:
about 10 `src/gaia` packages their tests import directly (connectors,
hub, skills, ui, eval, …) plus fixtures (`tests/fixtures/email/**`).
- `test_gaia_agent`: `build_flagship_sidecar.yml` and
`docs/guides/starter-skills.mdx`, both read by its tests. `build_tui`:
the flagship pins and `util/` scripts its called installer workflows
run.
- `docs.yml` missed `util/release_tag.py` (imported by
`validate_release_notes.py`). `test_electron` missed the root
`package.json`/lock its `npm ci` installs.

**Over-triggering removed:**

| Workflow | Runs on | Before | Now |
|---|---|---|---|
| `test_lemonade_server` | Halo, 72 min | `src/gaia/llm/**`,
`installer/**`, tests | Lemonade pin, `*lemonade*.ps1`, install action,
manifests. It runs no GAIA Python. |
| `test_examples` (integration) | Halo, 34 min | all of `src/gaia/**` |
`examples/**`, the packages examples import, the LLM client stack |
| `test_agent_sdk`, `test_gaia_cli_windows` | Halo | `src/**`,
`tests/**` | the client stack, plus chat/rag or audio/talk/schedule,
plus the tests they run |
| `test_embeddings` | Halo, 78 min | `src/gaia/rag/**` (never imported)
| client stack + its three tests |
| `test_gaia_cli_linux` | hosted | no filter | `src/gaia/**` minus
frontend trees, plus its tests |
| `test_gaia_agent` | hosted | `tests/**` | the tests it names; frontend
trees excluded |
| `dependency-review` | hosted | no filter | dependency manifests and
Actions references |
| `pypi`, `docs` | hosted | push on every branch | push on `main`;
`pypi` scoped to what the wheel packages + `README.md` |

The "LLM client stack" shared by the hardware lanes is
`src/gaia/llm/**`, the 12 daemon modules `lemonade_client` imports,
`installer/init_command.py` (the minimum Lemonade version), `utils/**`,
and the leaf modules (`config`, `env`, `logger`, `ports`, `version`).

**Merge queue:** `main` has no required status checks, and since March
the queue merges in about 20s without dispatching `merge_group` runs. A
skipped path-filtered check can't leave a PR pending. If a check becomes
required, it needs either no filter (like `skill_audit.yml`) or a
job-level filter with an always-running summary job.

**Guard** (`util/check_ci_path_coverage.py`, `lint.py --ci-paths`). It
builds on amd#4124's run-step parser. For each PR-triggered workflow, it
derives what the workflow runs, imports, installs and reads, following
called workflows and local actions, and fails when the filter misses
one. It also fails on a source file no path-scoped lane covers, and on
allowlist entries that excuse nothing. `--changed` lists the workflows a
change triggers: `git diff --name-only origin/main... | python
util/check_ci_path_coverage.py --changed -`. Known limits are stated in
its docstring: transitive `src` imports aren't required (the unit and
import-every-module lanes cover import-time breakage), and lanes that
drive the CLI end to end are scoped by hand.

**Estimate method:** 28,342 Actions runs from Oct 7–20, with each PR run
mapped to its PR's changed files (fork runs mapped by head branch, main
pushes by the squash commit's `(#N)`). Each run was replayed through the
old and new filters, then costed at that workflow's mean job minutes per
pool from about 4,000 sampled jobs. Release and eval workflows were left
untouched.
</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant