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

fix(cache): dont include file version in cache #6494

Merged
merged 2 commits into from
Oct 10, 2024
Merged

Conversation

liady
Copy link
Contributor

@liady liady commented Oct 8, 2024

Problem:
The current cache cached ParseFileResult, which contained the file version, which was incorrect when saving files from the vs code.

Fix:
Cache ParsedTextFile (which is only the parse result itself), which doesn't rely on the file version.

Manual Tests:
I hereby swear that:

  • I opened a hydrogen project and it loaded
  • I could navigate to various routes in Play mode

@liady liady changed the title fix(cache): dont cache parse result with cache version fix(cache): dont include file version in cache Oct 8, 2024
Copy link
Contributor

github-actions bot commented Oct 8, 2024

Try me

Copy link

relativeci bot commented Oct 8, 2024

#14637 Bundle Size — 57.74MiB (~+0.01%).

8e31149(current) vs 916e8b9 master#14635(baseline)

Warning

Bundle contains 70 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#14637
     Baseline
#14635
Regression  Initial JS 40.74MiB(~+0.01%) 40.74MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 17.97% 18.24%
No change  Chunks 21 21
No change  Assets 23 23
No change  Modules 4113 4113
No change  Duplicate Modules 213 213
No change  Duplicate Code 27.41% 27.41%
No change  Packages 475 475
No change  Duplicate Packages 70 70
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#14637
     Baseline
#14635
Regression  JS 57.73MiB (~+0.01%) 57.73MiB
Improvement  HTML 7.37KiB (-0.25%) 7.39KiB

Bundle analysis reportBranch fix/no-cache-file-versionProject dashboard


Generated by RelativeCIDocumentationReport issue

@liady liady merged commit 4eb10e3 into master Oct 10, 2024
16 checks passed
@liady liady deleted the fix/no-cache-file-version branch October 10, 2024 08:42
liady added a commit that referenced this pull request Dec 13, 2024
**Problem:**
The current cache cached `ParseFileResult`, which contained the file
version, which was incorrect when saving files from the vs code.

**Fix:**
Cache `ParsedTextFile` (which is only the parse result itself), which
doesn't rely on the file version.

**Manual Tests:**
I hereby swear that:

- [X] I opened a hydrogen project and it loaded
- [X] I could navigate to various routes in Play mode
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.

3 participants