Repository navigation
ci(workflows): fix triggers that skip the code they cover - #4098
Merged
Merged
Conversation
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.
# Conflicts: # .github/workflows/test_chat_agent.yml
Collaborator
Author
|
Merged 🔍 Technical details
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_requesttrigger 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.pypasses — 72 workflows validated, no base-branch filter on either newpull_requesttrigger (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 (pylintos.killpg/geteuidon Windows, 5 ancestor-skip warnings) are pre-existing and in files this PR does not touch; the diff is YAML-onlyyaml.safe_loadpaths:entry resolves to a git-tracked file or directory, checked by handtests/test_chat_sdk.pyconfirmed absent fromorigin/mainbefore removing its entrycpp/agents/email/confirmed to have no history at all —git log --diff-filter=Dandgit log --allboth emptysrc/gaia/agents/base/agent.py, and that a draft PR skips itsrc/gaia/agents/registry.py