Skip to content

perf(ci): claim more server paths in the e2e lane map - #14391

Merged
ChiragAgg5k merged 1 commit into
mainfrom
ci/narrow-e2e-map
Oct 12, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
ci/narrow-e2e-map

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

What

Follow-up to #14301. Any file .github/ci/e2e.json doesn'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.

Path Now runs
src/Appwrite/Databases/ (TransactionState), src/Appwrite/Utopia/Database/Validator/Indexes.php Every lane that already claims Modules/Databases/ (Databases, TablesDB, GraphQL, Realtime, Usage, Webhooks, Migrations)
src/Appwrite/Certificates/ Proxy, Projects, Functions (the Certificates worker, rule creates, Functions/Create)
packages/smtp/ Account, Teams, Users (Mails worker via the messaging SMTP adapter), Messaging, Notifications, Project (SMTP settings)
packages/detector/ Functions, Sites, VCSGitHub, VCSGitea (runtime detection)
packages/agents/ Databases, TablesDB (embeddings)
src/Appwrite/Migration/ Checks only, since only the migrate/install tasks and unit tests use it
src/Appwrite/SDK/Specification/Format*, packages/openapi/ Checks only; used by the specs/sdks tasks, which the Checks job already runs
packages/nats/, packages/orchestration/, packages/queue/src/Broker/Nats.php Checks only, since the server never uses them

These 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 backs publicHostname; cdn is used by the Deletes worker).

Impact

Replaying changes.mjs against the last 200 merged PRs:

Before After
PRs running every lane 123 112
PRs running some lanes 57 63
PRs running no e2e 20 25
Service lanes, total 4032 3714 (−8%)

Pushes to main still run every lane, so anything a PR skips is tested after merge.

Closes #14393

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%).
@luxor-code-review

luxor-code-review Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Review complete. 🟡 1 medium

💬 Inline comments (1)

  • 🟡 Checks-only entries never select any e2e lane — e2e.json:39
🧹 Nitpicks (1) — 🟢 1 low
  • 🟢 Add packages/smtp/ to the lanes that send mail (e2e.json:404) — The PR adds packages/smtp/ to the Account, Teams and Users lanes but not to lanes whose suites also exercise mail-sending flows: Migrations (.github/ci/e2e.json:404-410), whose worker enqueues export-complete mail (src/Appwrite/Platform/Workers/Migrations.php:1105); Projects, whose Workers/Certificates.php sends certificate-failure mail; and Webhooks/GraphQL, which include the same Account/Teams/Users modules.

The change maps recently added packages/ libraries and src/Appwrite/ paths into the appropriate e2e test lanes so CI runs relevant suites instead of the full fallback. The paths referenced all exist and autoload correctly; the reviewers flagged two coverage refinements only.

Files Change
.github/ci/e2e.json Adds packages/ and src/Appwrite/ paths to Databases, TablesDB, GraphQL, Realtime, Webhooks, Migrations, Functions, Sites, VCS, and mail-related lanes; adds checks-only entries for installer/spec files.

Reviewed commit: b86f407

@ghost

ghost commented Oct 12, 2026

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The new path claims align with the stated consumers and preserve checks coverage for paths that do not need an E2E lane.

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.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 1
File Change
.github/ci/e2e.json Adds E2E service claims for shared libraries and checks-only claims for tooling paths.

Reviewed b86f407 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@github-actions

Copy link
Copy Markdown

Security rules

No new WARNING or ERROR findings from security rules.

32 existing findings tracked in .semgrep/baseline.json
  • php.appwrite.guest-write-without-abuse-limit (17)
  • php.appwrite.permissive-write-permission (8)
  • php.appwrite.secret-compare-timing (5)
  • php.appwrite.weak-secret-env-default (2)

Posted by Checks / Rules. Re-runs update this comment in place. Rule details and baseline: .semgrep/README.md.

@luxor-code-review luxor-code-review Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread .github/ci/e2e.json
Comment on lines +39 to +44
"src/Appwrite/Migration/",
"src/Appwrite/SDK/Specification/Format",
"packages/openapi/",
"packages/nats/",
"packages/orchestration/",
"packages/queue/src/Broker/Nats.php"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

@github-actions

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → ci/narrow-e2e-map (after).

Metric Before After Change
🚀 Requests/sec 199.9 219.42 🟢 +9.8%
⏱️ Latency P50 86.62 ms 80.66 ms 🟢 -6.9%
⏱️ Latency P95 196.6 ms 175.88 ms 🟢 -10.5%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 80.66 175.88 13,680 219.42 -20.73
Account 142.08 252.61 720 12.05 -57.09
TablesDB 78.14 137.16 7,440 120.73 -14.07
Storage 76.34 161.39 3,600 60.59 -2.63
Functions 110.08 212.77 1,920 33.12 -49.3

Top API waits (after)

API request Max wait (ms)
functions.variables.update 482.48
storage.files.create 437.79
account.prefs.update 417.37
storage.buckets.create 395.67
account.name.update 389.74

@ChiragAgg5k
ChiragAgg5k merged commit 97676bf into main Oct 12, 2026
76 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the ci/narrow-e2e-map branch October 12, 2026 15:32
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.

Claim more server paths in the e2e lane map

1 participant