-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[build] Disable cleaning sourcekit-lsp by default, rather than having the flag do nothing #75053
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won’t this break the indexstore-db build, which would now pass
--no-clean
, which isn’t accepted by thebuild-script-helper.py
?My proposal would be to just remove the cleaning step from SourceKit-LSP’s
build-script-helper.py
, never pass--no-clean
and remove theclean
parameter here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might, haven't tried that recently.
That would defeat my purpose of optionally being able to clean sourcekit-lsp by manually overriding these flags when wanted.
Do you not want that cleaning step at all in the sourcekit-lsp
build-script-helper.py
? I would prefer to resurrect it in some way, but disabled in these scripts by default.Let me know which approach you want and I will change these two pulls to do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to not have the
clean
step as it prevents us from re-using build artifacts from eg. thebuild
phase in thetest
phase, which increases build time. If cleaning is required between builds, I think it should be done on a higher level.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was asking a different question, I think. I see two options here:
sourcekit-lsp
builds.sourcekit-lsp
repo, but disable using it for all build actions by default.I have now implemented 2. here and in swiftlang/sourcekit-lsp#1558, as it's the route I prefer. Let me know what you think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer option (1). Other build scripts (eg. indexstore-db, swift-syntax) also don’t have a clean option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think most have a way to clean the build as part of the
build-script
and they're usually enabled by default, whether in their build-script-helper script or the bash portion of the overallbuild-script
. I know because I added a lot of the flags to disable them when wanted. 😉There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don’t think we should need it but I don’t feel super strongly about it. If you have strong opinions on it being useful, feel free to add it.
But still, is anything ever passing
True
toindexstoredb.run_build_script_helper
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to have it, in case I need to turn on cleaning for my local builds at some point, as I did recently.
No this cleaning flag is set to false in this pull. The idea is just to have the flag available and working, so I can set it to true manually when I need it for my local builds.
If you're okay with that, please review and we can get these two pulls in.