Author SHA1 Message Date
chrnx 202c4b2711 Merge pull request 'matcha create plugin, and scaffold core 26.9.0-beta.2' (#14) from feature/plugin-scaffold into develop
CI / installer (macos-14) (push) Successful in 3s
CI / starter (bun) (push) Successful in 31s
CI / starter (deno) (push) Successful in 34s
CI / check (push) Successful in 29s
Release / build (ubuntu-latest, aarch64-unknown-linux-musl) (push) Successful in 1m5s
Release / promote-tag (push) Successful in 6s
CI / installer (macos-14) (pull_request) Successful in 3s
CI / check (pull_request) Successful in 28s
CI / starter (edge) (push) Successful in 37s
CI / installer (ubuntu-latest) (push) Successful in 11s
CI / starter (node) (push) Successful in 35s
Release / build (macos-14, aarch64-apple-darwin) (push) Successful in 15s
CI / starter (bun) (pull_request) Successful in 31s
CI / starter (deno) (pull_request) Successful in 33s
CI / core-freshness (push) Has been skipped
Promote → GitHub / push-github (push) Successful in 6s
Release / build (ubuntu-latest, x86_64-unknown-linux-musl) (push) Successful in 1m5s
CI / starter (edge) (pull_request) Successful in 36s
Release / build (macos-14, x86_64-apple-darwin) (push) Successful in 13s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 10s
Release / publish-crate (push) Has been skipped
Release / prepare (push) Successful in 3s
CI / starter (node) (pull_request) Successful in 34s
Release / verify-linux-arm64 (push) Has been cancelled
2026-09-24 19:30:15 +00:00
chrnx 9e719b159d test(plugin): skip the rollback test where the user can write a read-only file
CI / installer (macos-14) (pull_request) Successful in 3s
CI / check (pull_request) Successful in 27s
CI / starter (bun) (pull_request) Successful in 31s
CI / starter (node) (pull_request) Successful in 32s
CI / installer (ubuntu-latest) (pull_request) Successful in 11s
CI / starter (deno) (pull_request) Successful in 31s
CI / starter (edge) (pull_request) Successful in 38s
CI / core-freshness (pull_request) Has been skipped
CI runs as root, which ignores a 0444 mode, so the entry write never
fails there and there is nothing to roll back. The test now says it
skipped instead of failing on a write that worked.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 13:28:05 -05:00
+6
View File
@@ -490,6 +490,12 @@ fn in_app_leaves_nothing_behind_when_the_entry_cannot_be_written() {
let d = project(APP);
let entry = d.path().join("src/app.ts");
std::fs::set_permissions(&entry, std::fs::Permissions::from_mode(0o444)).unwrap();
// Root ignores the mode (CI containers run as root), so there is no failed
// write to roll back from. Say so rather than pass on a write that worked.
if std::fs::OpenOptions::new().write(true).open(&entry).is_ok() {
eprintln!("skipped: this user can write a 0444 file, so the failure cannot be staged");
return;
}
matcha(d.path())
.args(["create", "plugin", "algo"])
.assert()