Skip to content

ci(workflows): fix triggers that skip the code they cover - #4098

Merged
kovtcharov-amd merged 4 commits into
mainfrom
claudia/task-a0168d0f
Sep 25, 2026
Merged

kovtcharov-amd merged 4 commits into
mainfrom
claudia/task-a0168d0f

Conversation

@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Three CI lanes were reporting green on changes they never ran. The chat-agent lane is the only place the chat registry assertions execute at all — yet edits to the registry or its test didn't trigger it, so those changes shipped unverified. The agent-behavior E2E suite had no pull_request trigger whatsoever, so it never gated a PR; and because roughly half of this repo's PRs come from a fork, whose pushes never reach these Actions, those PRs never exercised it in any form. Both now fire on the code they cover. A third workflow, the C++ email build, has been deleted: it waits on a directory that was never created, its tracking issue is closed, the surviving plan puts that module somewhere else entirely, and the existing C++ build would already cover it — 19 runs, zero successes, no path to a first one.

Test plan

  • python util/check_workflow_triggers.py passes — 72 workflows validated, no base-branch filter on either new pull_request trigger (fix(ci): a PR based on any branch but main runs no unit tests, no lint and no agent suites — and looks green #2767)
  • python util/lint.py --all — the two failures it reports (pylint os.killpg/geteuid on Windows, 5 ancestor-skip warnings) are pre-existing and in files this PR does not touch; the diff is YAML-only
  • Both edited workflows parse under yaml.safe_load
  • Every added paths: entry resolves to a git-tracked file or directory, checked by hand
  • tests/test_chat_sdk.py confirmed absent from origin/main before removing its entry
  • cpp/agents/email/ confirmed to have no history at all — git log --diff-filter=D and git log --all both empty
  • After merge: confirm Agent Behavior E2E appears on the next PR touching src/gaia/agents/base/agent.py, and that a draft PR skips it
  • After merge: confirm Chat Agent Tests fires on the next PR touching src/gaia/agents/registry.py

Ovtcharov added 3 commits September 17, 2026 15:06
The scorecard refresh ran the full eval 3x purely to compute a variance band.
That cost 346 of the 384 minutes of the only FULL run that has ever completed
(250 emails x 3 = 750 sequential classifications). The committed card shows what
it bought: within-one-bucket stdev 0.0023 (cv 0.27%), and urgent_recall /
personal_recall identical to the digit across all three runs.

Dropping to one run is not a one-line change. At experiments=1 the harness
records stdev 0.0 rather than omitting it, so the gate's k*stdev band collapses
to zero and the comparison silently becomes a strict '<' -- stricter than
before, tripping on sub-noise wobble. The band is now
max(k*stdev, --regression-floor-pp) with a 1.5pp default floor, sized against
the 1.16pp stdev this workflow's own comment cites from an earlier basis.
Absolute bars are unchanged and still enforce independently of the band.

Also adds a blocking LLM-coverage assert. EmailTriageAgent has a heuristic path
that classifies without calling the model, and on that path llm_classified_count
is absent from the scorecard rather than zero -- so a rules-only run produces a
complete, green, meaningless card. A PR-profile run triaged 20 messages in 14s
(0.7s/message) against the full profile's 27.7s/message, which is what prompted
looking. The assert runs before the judge steps so a void run costs no judge
spend.

Re-derives the timeout budget against measured numbers (benchmark ceiling
620 -> 210 min) and restores the tool-timeout-fires-first ordering on both
profiles. Corrects the "~10h" wall-clock figure repeated across four files: it
was a padded budget ceiling, never a measurement.

The committed card still records n_runs=3, so the basis guard will reject the
new 250/1 default until one deliberate rebaseline=true dispatch re-cuts it. The
guard's remediation text now leads with that path instead of steering back to
experiments=3.

Test file IO gains explicit utf-8: tests/unit/eval/test_scorecard_gate.py was
unrunnable on Windows (cp1252 vs the scorecard's sigma), which hid 29 failures.
The step that proves the eval actually reached the model had no timeout-minutes in the PR-gate workflow, while the identical step in email_scorecard_refresh.yml caps at 10. An infra hang (unresponsive filesystem, missing eval-out) would have burned the scarce serial Lemonade slot until the 90-minute job cap killed it anonymously, instead of failing at a named step.
Three lanes reported green on changes they never tested.

test_chat_agent.yml is the only job that installs the gaia-agent-chat wheel,
so it is the only place tests/unit/agents/test_registry.py runs its
importorskip("gaia_agent_chat") cases instead of silently skipping (#2240).
Neither that test nor src/gaia/agents/registry.py was in its paths:, so
editing either one shipped those assertions unrun. Both added, and the stale
tests/test_chat_sdk.py entry dropped — that file is gone from main.

test_agent_behavior_e2e.yml had an unfiltered push: trigger and no
pull_request trigger at all: 599 runs, none PR-gated. Roughly half of this
repo's PRs live on the kovtcharov fork, whose pushes never reach these
Actions, so those PRs never exercised the behavior suite in any form. Added
pull_request and scoped push to main. The unfiltered push runs were real
signal, but only for in-repo branches, and keeping them alongside
pull_request would double-book the ephemeral pool — the push and PR
concurrency groups differ (refs/heads/X vs X), so neither cancels the other.
Scoping push to main keeps the post-merge signal and costs in-repo branches
nothing. Also added the concurrency block and the draft-gating if: guard
every other devlab-dispatch lane already carries; without them a PR trigger
on a pool that hands out one ephemeral machine per job holds hardware on
every draft push.

build_cpp_email.yml deleted. cpp/agents/email/ was never removed — it never
existed: git log finds no commit adding or deleting it, and the file shipped
in #1362 as a scaffold for a module that has not landed. Nothing is there to
retarget, and three things say it should not be revived: its own tracking
pointer (#1110) is closed and about gaia-bash; the surviving plan puts the
module at hub/agents/email/cpp/, not cpp/agents/email/
(docs/plans/email-agent-packaging.mdx, #1543); and build_cpp.yml already
fires on cpp/** and runs the identical cmake configure/build/ctest on the
same ubuntu+windows matrix, so the scaffold would duplicate it on the very
day it activated. 19 runs, zero successes.
@github-actions github-actions Bot added documentation Documentation changes devops DevOps/infrastructure changes eval Evaluation framework changes tests Test changes performance Performance-critical changes agent::email Email agent changes sidecar Agent sidecar contract / harness labels Sep 22, 2026
# Conflicts:
#	.github/workflows/test_chat_agent.yml
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator Author

Merged main in — the one conflict was in this PR's own subject matter, the chat-agent workflow's paths: trigger, and both sides were adding coverage rather than replacing it. Resolved as the union, so neither the registry lane nor the web lane loses its trigger.

🔍 Technical details

.github/workflows/test_chat_agent.yml: this PR adds src/gaia/agents/registry.py + tests/unit/agents/test_registry.py (the #2240 rationale comment is kept); main added src/gaia/web/**. Both now present in the push and pull_request filters — 19 entries each, verified by parsing the YAML rather than eyeballing the diff.

pytest tests/unit/eval/test_scorecard_gate.py hub/agents/email/python/tests/test_assert_llm_coverage.py → 57 passed.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Sep 25, 2026
Merged via the queue into main with commit 35fff21 Sep 25, 2026
28 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the claudia/task-a0168d0f branch September 25, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent::email Email agent changes devops DevOps/infrastructure changes documentation Documentation changes eval Evaluation framework changes performance Performance-critical changes sidecar Agent sidecar contract / harness tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants