Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor cell reading to handle removed cells #8819

Merged
merged 5 commits into from
Jul 24, 2024
Merged

Conversation

sokra
Copy link
Member

@sokra sokra commented Jul 23, 2024

Description

Refactor cell reading to handle removed cells

handle recomputation of cells on read

use start event instead of done event when waiting for task reading

That's how the Cell state changes:

image

Testing Instructions

Copy link

vercel bot commented Jul 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 24, 2024 3:39pm
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 24, 2024 3:39pm
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2024 3:39pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2024 3:39pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2024 3:39pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2024 3:39pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2024 3:39pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2024 3:39pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2024 3:39pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2024 3:39pm

@sokra sokra marked this pull request as ready for review July 23, 2024 12:47
@sokra sokra requested a review from a team as a code owner July 23, 2024 12:47
Copy link
Contributor

github-actions bot commented Jul 23, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

✅ This change can build next-swc

Copy link
Contributor

github-actions bot commented Jul 23, 2024

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (mac/win, non-blocking)

See workflow summary for details

@sokra sokra force-pushed the sokra/refactor-read-cell branch from af360db to 561efca Compare July 24, 2024 15:36
@arlyon
Copy link
Contributor

arlyon commented Jul 24, 2024

does it make sense to formalize the cell state machine using some rust library? There are a lot of types of transitions so it may clean up the logic

@sokra sokra merged commit 64e670f into main Jul 24, 2024
57 of 59 checks passed
@sokra sokra deleted the sokra/refactor-read-cell branch July 24, 2024 18:51
sokra added a commit to vercel/next.js that referenced this pull request Jul 25, 2024
* vercel/turborepo#8812 <!-- Benjamin Woodruff -
Simplify some of the syntax used with VcRead<T> -->
* vercel/turborepo#8823 <!-- hrmny -
feat(turbopack): support analysing string concatenation -->
* vercel/turborepo#8828 <!-- Tobias Koppers - change
from failsafe_analyse to failsafe_parse -->
* vercel/turborepo#8831 <!-- Alexander Lyon - make
sure that all the taiki-e/install-action calls use our env -->
* vercel/turborepo#8819 <!-- Tobias Koppers -
Refactor cell reading to handle removed cells -->
* vercel/turborepo#8038 <!-- Alexander Lyon - add
tags to turbo tasks -->
* vercel/turborepo#8807 <!-- Tobias Koppers - box
Scheduled task state to save memory -->
* vercel/turborepo#8170 <!-- Tobias Koppers - Drop
excessive cells after task reexecution -->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
### Description

Refactor cell reading to handle removed cells

handle recomputation of cells on read

use start event instead of done event when waiting for task reading

That's how the Cell state changes:


![image](https://github.com/user-attachments/assets/7e9ff129-1169-433f-a0be-dae90af014e2)


### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

Refactor cell reading to handle removed cells

handle recomputation of cells on read

use start event instead of done event when waiting for task reading

That's how the Cell state changes:


![image](https://github.com/user-attachments/assets/7e9ff129-1169-433f-a0be-dae90af014e2)


### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

Refactor cell reading to handle removed cells

handle recomputation of cells on read

use start event instead of done event when waiting for task reading

That's how the Cell state changes:


![image](https://github.com/user-attachments/assets/7e9ff129-1169-433f-a0be-dae90af014e2)


### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
### Description

Refactor cell reading to handle removed cells

handle recomputation of cells on read

use start event instead of done event when waiting for task reading

That's how the Cell state changes:


![image](https://github.com/user-attachments/assets/7e9ff129-1169-433f-a0be-dae90af014e2)


### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 14, 2024
* vercel/turborepo#8812 <!-- Benjamin Woodruff -
Simplify some of the syntax used with VcRead<T> -->
* vercel/turborepo#8823 <!-- hrmny -
feat(turbopack): support analysing string concatenation -->
* vercel/turborepo#8828 <!-- Tobias Koppers - change
from failsafe_analyse to failsafe_parse -->
* vercel/turborepo#8831 <!-- Alexander Lyon - make
sure that all the taiki-e/install-action calls use our env -->
* vercel/turborepo#8819 <!-- Tobias Koppers -
Refactor cell reading to handle removed cells -->
* vercel/turborepo#8038 <!-- Alexander Lyon - add
tags to turbo tasks -->
* vercel/turborepo#8807 <!-- Tobias Koppers - box
Scheduled task state to save memory -->
* vercel/turborepo#8170 <!-- Tobias Koppers - Drop
excessive cells after task reexecution -->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 15, 2024
* vercel/turborepo#8812 <!-- Benjamin Woodruff -
Simplify some of the syntax used with VcRead<T> -->
* vercel/turborepo#8823 <!-- hrmny -
feat(turbopack): support analysing string concatenation -->
* vercel/turborepo#8828 <!-- Tobias Koppers - change
from failsafe_analyse to failsafe_parse -->
* vercel/turborepo#8831 <!-- Alexander Lyon - make
sure that all the taiki-e/install-action calls use our env -->
* vercel/turborepo#8819 <!-- Tobias Koppers -
Refactor cell reading to handle removed cells -->
* vercel/turborepo#8038 <!-- Alexander Lyon - add
tags to turbo tasks -->
* vercel/turborepo#8807 <!-- Tobias Koppers - box
Scheduled task state to save memory -->
* vercel/turborepo#8170 <!-- Tobias Koppers - Drop
excessive cells after task reexecution -->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 16, 2024
* vercel/turborepo#8812 <!-- Benjamin Woodruff -
Simplify some of the syntax used with VcRead<T> -->
* vercel/turborepo#8823 <!-- hrmny -
feat(turbopack): support analysing string concatenation -->
* vercel/turborepo#8828 <!-- Tobias Koppers - change
from failsafe_analyse to failsafe_parse -->
* vercel/turborepo#8831 <!-- Alexander Lyon - make
sure that all the taiki-e/install-action calls use our env -->
* vercel/turborepo#8819 <!-- Tobias Koppers -
Refactor cell reading to handle removed cells -->
* vercel/turborepo#8038 <!-- Alexander Lyon - add
tags to turbo tasks -->
* vercel/turborepo#8807 <!-- Tobias Koppers - box
Scheduled task state to save memory -->
* vercel/turborepo#8170 <!-- Tobias Koppers - Drop
excessive cells after task reexecution -->
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