Repository navigation
test(engine): env-var driven E2E spill integration test (STN-14 #2348) - #4408
Merged
Merged
Conversation
oferchen
force-pushed
the
feature/stn-14-integration-test
branch
2 times, most recently
from
May 18, 2026 01:14
94dc086 to
adc8aac
Compare
Adds `spill_env_e2e_engages_spill_layer` under `crates/engine/tests/spill_env_e2e.rs`. The test seeds 10 MiB of mixed pseudo-random content into a `TempDir`, runs `LocalCopyPlan::execute` with `OC_RSYNC_SPILL_THRESHOLD_BYTES=131072` and `OC_RSYNC_SPILL_DIR` pointed at a scratch tempdir, then asserts at least one `.tmp` file landed in the spill directory. Marked `#[ignore]` until env-var wiring (STN-8 parse, STN-9/STN-10 engine plumbing) lands. The file compiles, the inline `EnvGuard` serialises env mutation via a per-process `Mutex`, and an inline xorshift PRNG keeps the corpus deterministic without adding `rand` as a dev-dependency. Gated on `cfg(unix)` because env-var semantics differ on Windows. Closes #2348.
oferchen
force-pushed
the
feature/stn-14-integration-test
branch
from
May 18, 2026 01:16
adc8aac to
10a569f
Compare
oferchen
added a commit
that referenced
this pull request
May 18, 2026
#4408) Adds `spill_env_e2e_engages_spill_layer` under `crates/engine/tests/spill_env_e2e.rs`. The test seeds 10 MiB of mixed pseudo-random content into a `TempDir`, runs `LocalCopyPlan::execute` with `OC_RSYNC_SPILL_THRESHOLD_BYTES=131072` and `OC_RSYNC_SPILL_DIR` pointed at a scratch tempdir, then asserts at least one `.tmp` file landed in the spill directory. Marked `#[ignore]` until env-var wiring (STN-8 parse, STN-9/STN-10 engine plumbing) lands. The file compiles, the inline `EnvGuard` serialises env mutation via a per-process `Mutex`, and an inline xorshift PRNG keeps the corpus deterministic without adding `rand` as a dev-dependency. Gated on `cfg(unix)` because env-var semantics differ on Windows. Closes #2348.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
#4408) Adds `spill_env_e2e_engages_spill_layer` under `crates/engine/tests/spill_env_e2e.rs`. The test seeds 10 MiB of mixed pseudo-random content into a `TempDir`, runs `LocalCopyPlan::execute` with `OC_RSYNC_SPILL_THRESHOLD_BYTES=131072` and `OC_RSYNC_SPILL_DIR` pointed at a scratch tempdir, then asserts at least one `.tmp` file landed in the spill directory. Marked `#[ignore]` until env-var wiring (STN-8 parse, STN-9/STN-10 engine plumbing) lands. The file compiles, the inline `EnvGuard` serialises env mutation via a per-process `Mutex`, and an inline xorshift PRNG keeps the corpus deterministic without adding `rand` as a dev-dependency. Gated on `cfg(unix)` because env-var semantics differ on Windows. Closes #2348.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
#4408) Adds `spill_env_e2e_engages_spill_layer` under `crates/engine/tests/spill_env_e2e.rs`. The test seeds 10 MiB of mixed pseudo-random content into a `TempDir`, runs `LocalCopyPlan::execute` with `OC_RSYNC_SPILL_THRESHOLD_BYTES=131072` and `OC_RSYNC_SPILL_DIR` pointed at a scratch tempdir, then asserts at least one `.tmp` file landed in the spill directory. Marked `#[ignore]` until env-var wiring (STN-8 parse, STN-9/STN-10 engine plumbing) lands. The file compiles, the inline `EnvGuard` serialises env mutation via a per-process `Mutex`, and an inline xorshift PRNG keeps the corpus deterministic without adding `rand` as a dev-dependency. Gated on `cfg(unix)` because env-var semantics differ on Windows. Closes #2348.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
spill_env_e2e_engages_spill_layerdrivesLocalCopyPlan::executeover 10 MiB of mixed pseudo-random content withOC_RSYNC_SPILL_THRESHOLD_BYTES=131072andOC_RSYNC_SPILL_DIR=<tempdir>set; asserts at least one.tmpfile lands in the spill directory.tempfile::TempDirhandles; env vars are wrapped in an inlineEnvGuardand serialised by a per-processMutexso failing assertions still restore prior state on drop.#[ignore](blocked on STN-8 env parse + STN-9/STN-10 engine wiring). The file compiles cleanly today and the test runs end-to-end the moment those land.rand; no#[allow(clippy::...)]waivers.#![cfg(unix)]because env-var semantics differ on Windows.Test plan
cargo fmt --allcleanTempDirrootCloses #2348.