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: rebuild should reset module.preOrderIndex #8413

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Conversation

JSerFeng
Copy link
Contributor

@JSerFeng JSerFeng commented Nov 12, 2024

Summary

close #7031

mgm.preOrderIndex is set by buildChunkGraph, which is skipped during incremental rebuild.

When enable newIncremental.buildChunkGraph, preOrderIndex is wrong by design, I'll refactor module.preOrderIndex soon in another PR

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions github-actions bot added the release: bug fix release: bug related release(mr only) label Nov 12, 2024
Copy link

netlify bot commented Nov 12, 2024

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 730692a
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/674d1e5220f2a80007717a4c

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Nov 12, 2024
@JSerFeng JSerFeng force-pushed the fix/deterministic-hmr branch from 4eddc14 to 05dcb63 Compare November 12, 2024 11:03
@JSerFeng JSerFeng requested review from jerrykingxyz and ahabhgk and removed request for jerrykingxyz November 12, 2024 11:10
@JSerFeng JSerFeng enabled auto-merge (squash) November 12, 2024 11:10
jerrykingxyz
jerrykingxyz previously approved these changes Nov 12, 2024
@JSerFeng JSerFeng force-pushed the fix/deterministic-hmr branch 2 times, most recently from 52a1a7e to cf7146c Compare November 12, 2024 20:18
@ScriptedAlchemy
Copy link
Contributor

there is also a similar bug with [contenthash] in ark subspace if you use content hash the hash rendered in the js files is missmatched to what stats emits and the files emitted on disk.

Doesnt look related to this MR but seems to be from a similar possible cause?

ahabhgk
ahabhgk previously approved these changes Nov 13, 2024
@JSerFeng
Copy link
Contributor Author

there is also a similar bug with [contenthash] in ark subspace if you use content hash the hash rendered in the js files is missmatched to what stats emits and the files emitted on disk.

Do we have a issue about it ? Sounds like the issue of incremental rebuild

@ScriptedAlchemy
Copy link
Contributor

No i don't but I'll create one. Repo is bytedance internal so I will not share url publicly but can dm over lark. It's likely the same repo that you got the oncall about for this issue

@JSerFeng JSerFeng merged commit ee8979a into main Dec 2, 2024
31 checks passed
@JSerFeng JSerFeng deleted the fix/deterministic-hmr branch December 2, 2024 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: moduleIds: deterministic is not stable during rebuild
4 participants