Skip to content

fix: Let collect's partial results through the upstream awaiting check - #1247

Merged
philippjfr merged 2 commits into
mainfrom
fix/collect-partial-views
Nov 24, 2026
Merged

philippjfr merged 2 commits into
mainfrom
fix/collect-partial-views

Conversation

@philippjfr

@philippjfr philippjfr commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Description

Since #1243, an operation whose upstream is still awaiting an async result is skipped. That walk went through collect nodes into their pending inputs, so anything downstream of collect, and any parameter with a ref to it, stopped receiving the partial results collect exists for. For example, a List(allow_refs=True) fed by collect(a, b).args.rx.pipe(list) went from [] straight to [1, 2] instead of [Undefined, Undefined], [1, Undefined], [1, 2] as in 2.5.0b5.

_upstream_awaiting now stops at collect nodes, since a collect node's value is current while its inputs are pending. Everything else about the #1243 check is unchanged.

I added a test that watches both a node downstream of collect and a parameter referencing it, and checks they get the partial result before the final one; it fails on main. The test suite passes, apart from test_no_blocklist_imports, which fails the same way on main in my environment, and so do the type checks.

AI Disclosure

Tool & Model: Claude Code + Claude Opus 5.5
Usage: Bisected the regression, implemented the fix and the test, and ran the suite and type checks.

  • I have tested all AI-generated content in my PR.
  • I take responsibility for all AI-generated content in my PR.

Checklist

  • Tests added and are passing

Skipping an operation whose upstream is awaiting also skipped every node
downstream of collect, and refs reading it, until all of collect's
inputs had settled, so the partial results collect exists for never
reached them. Stop the upstream walk at collect nodes.

Assisted-by: Claude Code:claude-opus-5-5
@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.78%. Comparing base (9ef17a9) to head (51d3f2b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1247      +/-   ##
==========================================
+ Coverage   89.76%   89.78%   +0.02%     
==========================================
  Files          10       10              
  Lines        7062     7076      +14     
==========================================
+ Hits         6339     6353      +14     
  Misses        723      723              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread param/reactive.py Resolved
Co-authored-by: Simon Høxbro Hansen <simon.hansen@me.com>
@philippjfr
philippjfr merged commit 9a34f82 into main Nov 24, 2026
18 checks passed
@philippjfr
philippjfr deleted the fix/collect-partial-views branch November 24, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants