Skip to content

[DevTools] Throw an error when attempting to clone non-existent node#35702

Merged
hoxyq merged 1 commit intomainfrom
devtools/error-on-invalid-clone
Feb 5, 2026
Merged

[DevTools] Throw an error when attempting to clone non-existent node#35702
hoxyq merged 1 commit intomainfrom
devtools/error-on-invalid-clone

Conversation

@hoxyq
Copy link
Contributor

@hoxyq hoxyq commented Feb 5, 2026

There is an existing issue with serialisation logic for the traces from Profiler panel.

I've discovered that TREE_OPERATION_UPDATE_TREE_BASE_DURATION operation for some reason appears earlier in a sequence of operations, before the TREE_OPERATION_ADD that registers the new node. It ends up cloning non-existent node, which just creates an empty object and adds it to the map of nodes.

This change only adds additional layer of validation to cloning logic, so we don't swallow the error, if we attempt to clone non-existent node.

@hoxyq hoxyq requested a review from eps1lon February 5, 2026 16:02
@meta-cla meta-cla bot added the CLA Signed label Feb 5, 2026
@hoxyq hoxyq merged commit b932350 into main Feb 5, 2026
240 checks passed
@hoxyq hoxyq deleted the devtools/error-on-invalid-clone branch February 5, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants