这是indexloc提供的服务,不要输入任何密码
Skip to content

Asynchronous log replay can result in impossible sequences #939

@gsoltis

Description

@gsoltis

What version of Turborepo are you using?

1.2.0-canary.0

What package manager are you using / does the bug impact?

pnpm

What operating system are you using?

Mac

Describe the Bug

Tasks execution is synchronous during the graph traversal, the log replay is not. This can result in logs from a cache hit on a dependency appearing after the logs from the dependent.

Expected Behavior

Logs should appear in an order that is a possible sequence of execution.

To Reproduce

Cache a dependency, run an un-cached task that depends on it. It's a race condition, logs may appear in the wrong order.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions