summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 270c81e..127c5a3 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -55,6 +55,10 @@ pub struct Config {
pub publish_fault: Option<String>,
/// Test hook: the named shim must fail, e.g. `makechrootpkg`.
pub shim_fail: Option<String>,
+ /// Test hook: the named shim SIGKILLs its parent, i.e. the process running
+ /// the pipeline, mid-step. This is how a real crash is reproduced for I5 —
+ /// not a caught error, an uncatchable death. Never set in production.
+ pub shim_kill_parent: Option<String>,
/// How many builds may run at once (§8.2 backpressure). Default 1, which
/// also means the chroot pool only needs one warm root.
pub max_concurrent_builds: usize,
@@ -93,6 +97,7 @@ impl Default for Config {
shim_dir: None,
publish_fault: None,
shim_fail: None,
+ shim_kill_parent: None,
max_concurrent_builds: 1,
lease_secs: 90,
min_free_disk_mb: 1024,
@@ -143,6 +148,9 @@ impl Config {
if let Some(f) = &self.shim_fail {
cmd.env("AUR_SHIM_FAIL", f);
}
+ if let Some(k) = &self.shim_kill_parent {
+ cmd.env("AUR_SHIM_KILL_PARENT", k);
+ }
}
/// Create the directory tree the server needs. Idempotent.