Skip to content

upload: Propagate PUSHED status down relative review graph#273

Open
Abhishek21g wants to merge 1 commit into
Skydio:mainfrom
Abhishek21g:fix/upload-pushed-propagation-163
Open

upload: Propagate PUSHED status down relative review graph#273
Abhishek21g wants to merge 1 commit into
Skydio:mainfrom
Abhishek21g:fix/upload-pushed-propagation-163

Conversation

@Abhishek21g

Copy link
Copy Markdown

Summary

Fixes #163.

When rebase detection marks a topic as PUSHED, also promote dependent topics in the relative graph from REBASE to PUSHED by walking both ancestors (relative_topic) and descendants (review.children).

Problem

After rebasing a stack and modifying a leaf topic, only one branch of the graph was promoted. Sibling children of a shared parent could remain REBASE, producing stale forge diffs.

Verification

python3 -m pip install -e '.[dev]'
python3 -m pytest tests/test_upload.py::TestRebaseDetection::test_rebase_pushed_propagates_to_sibling_children -q

When a topic must push after rebase detection, promote dependent ancestor
and descendant reviews from REBASE to PUSHED so sibling branches in the
same graph are not left stale.

Fixes Skydio#163
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.

[upload] rebase detection does not propagate PUSHED back down a related graph

1 participant