Skip to content

Remove progressed work - #10008

Merged
acdlite merged 7 commits into
react:masterfrom
acdlite:removeprogressedwork
Jul 1, 2017
Merged

acdlite merged 7 commits into
react:masterfrom
acdlite:removeprogressedwork

Conversation

@acdlite

@acdlite acdlite commented Jun 19, 2017

Copy link
Copy Markdown
Collaborator

The current implementation of resuming work is buggy. The underlying model is also flawed. Rather than attempt to fix a flawed model, we'll scrap the feature entirely and add it back later.

The triangle fuzz tester is now passing. By keeping this test green, we should have greater confidence that changes do not introduce regressions.

See #8830 for the larger plan.

@acdlite
acdlite requested a review from sebmarkbage June 19, 2017 23:29
@acdlite acdlite mentioned this pull request Jun 19, 2017
8 of 17 tasks
@acdlite
acdlite force-pushed the removeprogressedwork branch 2 times, most recently from 276c65a to 4e2f445 Compare June 30, 2017 22:38
Comment thread src/renderers/noop/ReactNoopEntry.js Outdated

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.

This branch is now always dead. Might be better to just comment it out so we know what it is supposed to do.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed

@acdlite
acdlite force-pushed the removeprogressedwork branch from 4e2f445 to 9713bd4 Compare June 30, 2017 23:22

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.

I'm having a hard time convincing myself this isn't needed anymore.

Copy link
Copy Markdown
Collaborator 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
Contributor

Choose a reason for hiding this comment

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

So this is re-reading the updateQueue, is that the purpose? Why this change?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

beginUpdateQueue sometimes clones workInProgress.updateQueue, so we need to point to the latest version.

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.

Can we re-enable this?

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.

This one is similar. We might be able to just change the test a bit?

@acdlite
acdlite force-pushed the removeprogressedwork branch 2 times, most recently from bff5bdc to 19eca82 Compare July 1, 2017 00:53
@acdlite

acdlite commented Jul 1, 2017

Copy link
Copy Markdown
Collaborator Author

@sebmarkbage Re-enabled those tests

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why do we need to disable this? I don't think it tests specifically progressed work.

@sebmarkbage sebmarkbage 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.

Ok, let's try it. :)

@acdlite
acdlite force-pushed the removeprogressedwork branch from 19eca82 to 4b9775e Compare July 1, 2017 01:38
acdlite added 7 commits June 30, 2017 18:39
Neglected to fix this earlier because these tests were ignored.
The current implementation of resuming work is buggy. The underlying
model is also flawed. Rather than attempt to fix a flawed model, we'll
scrap the feature entirely and add it back later.
When we create a new work-in-progress, the existing pending props are
no longer valid.
Now that we've removed the buggy implementation of resuming work, the
fuzz tester passes consistently.
When an error in thrown in the begin phase, we begin work on the
error boundary a second time to unmount the children. This is a special
case of "resuming" work that we need to account for. The children are
set to the current children so that we can delete them.
it -> xit

The diff looks messier than it actually is because of Prettier.
To make sure we don't reset the priority of a down-prioritized fiber,
we compare the priority we're currently rendering at to the fiber's
work priority. If the work priority is lower, then we know not to reset
the work priority.
@acdlite
acdlite force-pushed the removeprogressedwork branch from 4b9775e to f9af9aa Compare July 1, 2017 01:39
@acdlite
acdlite merged commit f9af9aa into react:master Jul 1, 2017
acdlite added a commit that referenced this pull request Jul 7, 2017
This fixes a snapshot test regression introduced by #10008. I had
noticed this change and believe the new behavior was correct, but upon
further investigation I was wrong. This reverts the snapshot test and
fixes it accordingly.
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
This fixes a snapshot test regression introduced by react#10008. I had
noticed this change and believe the new behavior was correct, but upon
further investigation I was wrong. This reverts the snapshot test and
fixes it accordingly.
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
This fixes a snapshot test regression introduced by react#10008. I had
noticed this change and believe the new behavior was correct, but upon
further investigation I was wrong. This reverts the snapshot test and
fixes it accordingly.
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.

4 participants