Repository navigation
perf(ci): claim more server paths in the e2e lane map - #14391
Conversation
Files the map does not claim run every lane, and several narrow ones did: transaction state, the index validator, certificates, upgrade migrations, the spec formatter and single-consumer packages. Each now runs only the lanes that reach it, or only the checks when no e2e lane does (upgrade migrations, spec formats, openapi, nats, orchestration). Replayed against the last 200 merged PRs, full runs drop from 123 to 112 and service lanes from 4032 to 3714 (-8%).
|
Review complete. 🟡 1 medium 💬 Inline comments (1)
🧹 Nitpicks (1) — 🟢 1 low
The change maps recently added
Reviewed commit: b86f407 |
🟢 Tier S · Ready to merge
Extends the E2E lane map for shared database, certificate, SMTP, detector, and agent code. It also routes migration, SDK/OpenAPI, and NATS/orchestration paths to Checks-only coverage.
📂 Walkthrough · 1
Reviewed |
Security rulesNo new WARNING or ERROR findings from security rules. 32 existing findings tracked in
|
There was a problem hiding this comment.
This PR extends the CI e2e lane-coverage map in .github/ci/e2e.json with newly added source paths, plus two coverage suggestions for mail-adjacent lanes.
Key findings
- 🟡 Checks-only entries never select any e2e lane — e2e.json:39
| "src/Appwrite/Migration/", | ||
| "src/Appwrite/SDK/Specification/Format", | ||
| "packages/openapi/", | ||
| "packages/nats/", | ||
| "packages/orchestration/", | ||
| "packages/queue/src/Broker/Nats.php" |
There was a problem hiding this comment.
🟡 bug · medium
Checks-only entries never select any e2e lane
Files claimed only by paths.checks short-circuit in .github/scripts/changes.mjs:94 (else if sets server = true and skips owner selection), so zero e2e lanes run for them. The PR adds runtime-relevant libraries to checks only: src/Appwrite/Migration/ (.github/ci/e2e.json:39) despite an existing Migrations lane, and packages/nats/, packages/orchestration/, packages/queue/src/Broker/Nats.php (e2e.json:42-44). Changes to these files get no e2e coverage even though the Migrations lane exists for exactly this domain and the packages contain runtime code.
📋 Prompt for AI Agents
In .github/ci/e2e.json, add "src/Appwrite/Migration/" to the "Migrations" service's paths array (~lines 404-410) so migration-library changes select that lane — currently the entry sits only in paths.checks (line 39), and changes.mjs' checks branch (changes.mjs:94) sets server=true without selecting any service. Also claim "packages/nats/", "packages/orchestration/" and "packages/queue/src/Broker/Nats.php" (lines 42-44) in the lane(s) whose runtime uses them, for the same reason.
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
What
Follow-up to #14301. Any file
.github/ci/e2e.jsondoesn't claim runs every e2e lane. Since that PR merged, 61% of PR runs still ran every lane, often for a narrow file. This PR adds those files to the map, checking each one's call sites first.src/Appwrite/Databases/(TransactionState),src/Appwrite/Utopia/Database/Validator/Indexes.phpModules/Databases/(Databases, TablesDB, GraphQL, Realtime, Usage, Webhooks, Migrations)src/Appwrite/Certificates/Functions/Create)packages/smtp/packages/detector/packages/agents/src/Appwrite/Migration/migrate/installtasks and unit tests use itsrc/Appwrite/SDK/Specification/Format*,packages/openapi/specs/sdkstasks, which the Checks job already runspackages/nats/,packages/orchestration/,packages/queue/src/Broker/Nats.phpThese stay on every lane on purpose, because nearly everything depends on them: response models, collection config,
composer.lock,app/init/*,packages/{cache,dns,cdn,balancer}(dns backspublicHostname; cdn is used by the Deletes worker).Impact
Replaying
changes.mjsagainst the last 200 merged PRs:Pushes to main still run every lane, so anything a PR skips is tested after merge.
Closes #14393