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

Drop incremental compilation state for Mill modules when version changes #3884

Merged
merged 4 commits into from
Nov 1, 2024

Conversation

lefou
Copy link
Member

@lefou lefou commented Nov 1, 2024

Mill used various tricks to map build scripts written by users to generated enhanced versions, including package objects and other stuff.
Since some of these techniques may result in Zinc undercompilation, we want avoid downstream issues,
especally in the methodCodeHashSignatures task, which is sensitive to inconsistent bytecode.

We trait potentially longer compilation against incorrect or too coarse code change detection, which may invalidate a lot more downstream tasks than needed due to invalid data.

Fix #3874

Mill used various tricks to map build scripts written by users to generated enhanced versions, including package objects and other stuff.
Since some of these techniques may result in Zinc undercompilation, we want avoid downstream issues,
especally in the `methodCodeHashSignatures` task, which is sensitive to inconsistent bytecode.

We trait potentially longer compilation against incorrect or too coarse code change detection, which may invalidate a lot more downstream tasks than needed due to invalid data.

Fix com-lihaoyi#3874
@lefou
Copy link
Member Author

lefou commented Nov 1, 2024

Since we don't have a reproducer, this PR comes without a new test.

@lefou lefou merged commit 405c8aa into com-lihaoyi:main Nov 1, 2024
24 checks passed
@lefou lefou deleted the mill-build-full-compile branch November 1, 2024 19:30
@lefou lefou added this to the 0.12.2 milestone Nov 1, 2024
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.

methodCodeHashSignatures throw a os.ResourceNotFoundException
2 participants