Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

ci(verify): route all GPUI changes through engine suites

Richie McIlroy7ef9229f3078
diff --git a/crates/verify/README.md b/crates/verify/README.md
index 417426556..06939b30a 100644
--- a/crates/verify/README.md
+++ b/crates/verify/README.md
@@ -107,9 +107,11 @@ blessed failure is a bug that the suite keeps checking.
`.github/workflows/engine-verify.yml`:
- **Plan.** `scripts/verify/plan.py` maps the changed paths to suites through
- the workspace dependency graph (`cargo metadata`). A PR that changes only
- docs, the web app or GPUI UI code runs no suite, and the job finishes in
- seconds.
+ the root workspace dependency graph (`cargo metadata`). The standalone
+ GPUI app is outside that graph, so any change under `apps/desktop-gpui/`
+ conservatively selects every engine suite. This selection does not replace
+ the app's own tests or prove coverage of its orchestration. A PR that changes
+ only docs or the web app runs no engine suite.
- **Tiers.** FAST runs on every PR push. FULL runs when the PR has the
`verify-full` label, in the merge queue, and nightly.
- **Jobs.** One job per platform builds the selected tests with the
diff --git a/scripts/verify/plan.py b/scripts/verify/plan.py
index d0483b042..d6a039524 100755
--- a/scripts/verify/plan.py
+++ b/scripts/verify/plan.py
@@ -162,6 +162,8 @@ def affected(config, files, metadata, tier):
"""Returns (suite names, reason)."""
all_names = [s["name"] for s in config["suites"]]
for path in files:
+ if path.startswith("apps/desktop-gpui/"):
+ return all_names, f"{path} changes the standalone GPUI application"
for pattern in config["always"]:
if match(path, pattern):
return all_names, f"{path} affects every suite"
@@ -266,7 +268,11 @@ def cmd_test(_args):
(["crates/video-decode/src/ffmpeg.rs"], [s["name"] for s in config["suites"]]),
(["Cargo.lock"], [s["name"] for s in config["suites"]]),
(["scripts/verify/run.sh"], [s["name"] for s in config["suites"]]),
- (["apps/desktop-gpui/src/main.rs"], []),
+ (["apps/desktop-gpui/src/main.rs"], [s["name"] for s in config["suites"]]),
+ (["apps/desktop-gpui/src/editor.rs"], [s["name"] for s in config["suites"]]),
+ (["apps/desktop-gpui/src/recording.rs"], [s["name"] for s in config["suites"]]),
+ (["apps/desktop-gpui/src/upload/verify_tests.rs"], [s["name"] for s in config["suites"]]),
+ (["apps/desktop-gpui/Cargo.toml"], [s["name"] for s in config["suites"]]),
]
failed = 0
for files, expected in cases: