refactor(dfir_lang): remove stratum, add push codegen, test reduce, reduce_keyed, reduce_no_replay#2966
Open
MingweiSamuel wants to merge 1 commit into
Open
refactor(dfir_lang): remove stratum, add push codegen, test reduce, reduce_keyed, reduce_no_replay#2966MingweiSamuel wants to merge 1 commit into
reduce, reduce_keyed, reduce_no_replay#2966MingweiSamuel wants to merge 1 commit into
Conversation
Deploying hydro with
|
| Latest commit: |
d69aa91
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4d9d7437.hydroflow.pages.dev |
| Branch Preview URL: | https://mingwei-newpush-reduce.hydroflow.pages.dev |
MingweiSamuel
added a commit
that referenced
this pull request
Jun 19, 2026
… `reduce_keyed`, `reduce_no_replay` PR: #2966
909fde1 to
ecf3876
Compare
93d6298 to
a23896f
Compare
ecf3876 to
f810461
Compare
d8a1f65 to
870055e
Compare
f810461 to
571efde
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot couldn't run its full agentic review because no GitHub Actions runner was available. Make sure your repository has a runner available to run Copilot's review, or add a copilot-setup-steps.yml file specifying one with the runs-on attribute. See the docs for more details.
Refactors dfir_lang reduce-family operators to remove stratum-based delay typing and adds push-side codegen paths, with new/updated tests to validate push behavior (including no-replay semantics).
Changes:
- Add push-side surface tests for
reduce,reduce_keyed, andreduce_no_replay. - Update
reduce,reduce_keyed, andreduce_no_replayoperator codegen to support push outputs and removeDelayType::Stratum. - Refresh compile-fail
.stderrexpectations forreduce_keyedbad-type cases.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| dfir_rs/tests/surface_push_blocking.rs | Adds new push-side tests for reduce, reduce_keyed, and reduce_no_replay. |
| dfir_rs/tests/compile-fail/stable/surface_reduce_keyed_badtype_option.stderr | Updates expected compiler output for keyed-reduce bad option input. |
| dfir_rs/tests/compile-fail/stable/surface_reduce_keyed_badtype_int.stderr | Updates expected compiler output for keyed-reduce bad int input. |
| dfir_lang/src/graph/ops/reduce_no_replay.rs | Removes stratum delay typing and adds push codegen that attempts “no replay” gating. |
| dfir_lang/src/graph/ops/reduce_keyed.rs | Removes stratum delay typing and adds push codegen path for keyed reduce. |
| dfir_lang/src/graph/ops/reduce.rs | Removes stratum delay typing and adds push codegen that forwards output when downstream exists. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
571efde to
36df39f
Compare
e565624 to
c8d8e3a
Compare
18965f1 to
d0bf7c3
Compare
bc727b8 to
8a2b324
Compare
d0bf7c3 to
618e6fc
Compare
86682ff to
f836d0e
Compare
618e6fc to
8614b49
Compare
… `reduce_keyed`, `reduce_no_replay` PR: #2966 Handle outputs.is_empty() in reduce_keyed push path Restructured the write_iterator logic in reduce_keyed.rs to follow the standard pattern: `if is_pull { ... } else if outputs.is_empty() { ... } else { ... }`. Previously, the `!is_pull` branch unconditionally accessed `outputs[0]`, which would panic if reduce_keyed was used as a terminal push operator with no downstream outputs (e.g., as a singleton reference target). The new `outputs.is_empty()` branch generates a `for_each`-style sink that accumulates into the hashtable without forwarding downstream, matching the pattern used by reduce, fold, reduce_no_replay, and fold_no_replay. Co-authored-by: Infinity 🤖 <infinity@hydro.run> PR: #2966
f836d0e to
d69aa91
Compare
8614b49 to
23dee17
Compare
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.
No description provided.