Skip to content

fix: exclude e2e output dirs from turbo inputs for proper caching - #42

Merged
Gaubee merged 1 commit into
mainfrom
fix/turbo-e2e-cache
Dec 22, 2025
Merged

Gaubee merged 1 commit into
mainfrom
fix/turbo-e2e-cache

Conversation

@Gaubee

@Gaubee Gaubee commented Dec 22, 2025

Copy link
Copy Markdown
Contributor

修复 e2e turbo 缓存问题。

问题: e2e/test-results/.last-run.json 每次运行后更新,导致 inputs hash 变化,缓存永远无法命中。

修复: 在 turbo.json 中排除 e2e/test-results/** 和 e2e/report/**。

效果:

场景 时间
首次运行 ~10s
缓存后 ~1.6s (6x 加速)

@Gaubee
Gaubee merged commit 7509349 into main Dec 22, 2025
7 checks passed
@Gaubee
Gaubee deleted the fix/turbo-e2e-cache branch December 22, 2025 06:20
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.

1 participant