Skip to content

Add an executor update that doesn't free orphaned nodes, and track async sources in the borrow tree - #5002

Merged
timon-schelling merged 1 commit into
masterfrom
executor-non-freeing-update
Nov 22, 2026
Merged

timon-schelling merged 1 commit into
masterfrom
executor-non-freeing-update

Conversation

@timon-schelling

Copy link
Copy Markdown
Member

@TrueDoctor needed for #4992, I think this is the most minimal thing we can do. Also saves on full network walk.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment on lines +276 to +278
source_nodes: Vec<NodeId>,
/// The async source of each node in `source_nodes`, in the same order.
sources: Vec<SourceId>,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does seeem a bit fragile, would Vec<(NodeId, SourceId)> also work?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to be able to get out a &[source], or we return an impl Iterator?

what do you prefer?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think returing impl Iterator is fine if this is sufficient for the consumers. That also allows us to change the internal representation later

@timon-schelling
timon-schelling force-pushed the executor-non-freeing-update branch from 4d6261b to 74685e4 Compare November 22, 2026 21:43
@timon-schelling timon-schelling changed the title Add a non-freeing executor update Add a non-freeing executor update fix Nov 22, 2026
@timon-schelling timon-schelling changed the title Add a non-freeing executor update fix Add an executor update that doesn't free orphaned nodes, and track async sources in the borrow tree Nov 22, 2026
@timon-schelling
timon-schelling added this pull request to the merge queue Nov 22, 2026
Merged via the queue into master with commit 23f3a03 Nov 22, 2026
15 of 17 checks passed
@timon-schelling
timon-schelling deleted the executor-non-freeing-update branch November 22, 2026 21:48

This branch was successfully deployed

1 active deployment
graphite-dev (Preview) — 74685e4d Deployed Nov 22, 2026 by github-actions[bot]
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