-
-
Notifications
You must be signed in to change notification settings - Fork 636
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 Scala using add_dependencies_on_all_siblings=True
#14382
Comments
I've experimented with removing this flag on our codebase, which required some more improvements to scala parser, after those improvements (PR is coming), the number of coarsened targets increased from 80 to around 800. It also allowed us to reduce The best benefit for us would be less cache invalidation of test results. I would like to contribute a PR to address this. Should I remove the flag or allow it to be configurable? |
Thanks a ton! It will need to be configurable for sure, in order to allow folks to migrate from the existing default. But I expect that we can begin deprecating the existing value immediately. |
Awesome! For other languages, we set it dynamically based on if dependency inference is enabled: pants/src/python/pants/backend/python/target_types_rules.py Lines 77 to 82 in c1b1eaa
We will want to preserve that. Without dependency inference, it is incredibly tedious to specify "sibling" dependencies and you have to do it via the So, I suspect we maybe also have a temporary option like |
…it defaulting to true (pantsbuild#15841) Fixes pantsbuild#14382
After dependency inference was improved for Scala,
add_dependencies_on_all_siblings
was not removed:pants/src/python/pants/backend/scala/target_types.py
Line 233 in c2f6404
We should fix this (or drive it via an option), but it will definitely impact compilation success rates, and might also impact performance. We should test out the impact in our testbed repositories.
The text was updated successfully, but these errors were encountered: