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

Correctly handle compilations without sources #200

Merged
merged 8 commits into from
Mar 27, 2024

Conversation

fzhinkin
Copy link
Collaborator

BCV's Klib-validation part does not handle compilations without any sources properly, as a result tasks manipulating dumps might expect a dump for a target that doesn't have any compiled klibs.

Such targets/compilations occur when, for example, a project consists only of test sources.

Verified the fix locally using both projects mentioned in the original bug report.

Fixes #199

@fzhinkin fzhinkin added bug Something isn't working klib labels Mar 21, 2024
@fzhinkin fzhinkin marked this pull request as ready for review March 21, 2024 14:17
@fzhinkin fzhinkin requested a review from shanshin March 21, 2024 14:17
@fzhinkin fzhinkin linked an issue Mar 21, 2024 that may be closed by this pull request
@fzhinkin fzhinkin force-pushed the 199-disable-tasks-for-empty-projects branch from 1d933c4 to ac77421 Compare March 25, 2024 16:40
@fzhinkin fzhinkin requested a review from shanshin March 26, 2024 19:07
@fzhinkin fzhinkin merged commit e478dd6 into develop Mar 27, 2024
3 checks passed
@fzhinkin fzhinkin deleted the 199-disable-tasks-for-empty-projects branch March 27, 2024 14:36
fzhinkin added a commit that referenced this pull request Apr 3, 2024
* Rollback task skipping logic based on srcset emptyness check for JVM tasks
shanshin pushed a commit to JetBrains/kotlin that referenced this pull request Oct 28, 2024
* Correctly handle targets with a main compilation resulting in no compiled artifacts
* Postpone source directories check by wrapping it into a provider

Fixes Kotlin/binary-compatibility-validator#199 
Pull request Kotlin/binary-compatibility-validator#200
shanshin pushed a commit to JetBrains/kotlin that referenced this pull request Oct 28, 2024
shanshin pushed a commit to JetBrains/kotlin that referenced this pull request Dec 3, 2024
* Correctly handle targets with a main compilation resulting in no compiled artifacts
* Postpone source directories check by wrapping it into a provider

Fixes Kotlin/binary-compatibility-validator#199 
Pull request Kotlin/binary-compatibility-validator#200
shanshin pushed a commit to JetBrains/kotlin that referenced this pull request Dec 3, 2024
shanshin pushed a commit to JetBrains/kotlin that referenced this pull request Dec 13, 2024
* Correctly handle targets with a main compilation resulting in no compiled artifacts
* Postpone source directories check by wrapping it into a provider

Fixes Kotlin/binary-compatibility-validator#199 
Pull request Kotlin/binary-compatibility-validator#200
shanshin pushed a commit to JetBrains/kotlin that referenced this pull request Dec 13, 2024
shanshin pushed a commit to JetBrains/kotlin that referenced this pull request Dec 23, 2024
* Correctly handle targets with a main compilation resulting in no compiled artifacts
* Postpone source directories check by wrapping it into a provider

Fixes Kotlin/binary-compatibility-validator#199 
Pull request Kotlin/binary-compatibility-validator#200

Moved from Kotlin/binary-compatibility-validator@e478dd6
shanshin pushed a commit to JetBrains/kotlin that referenced this pull request Dec 23, 2024
KotlinBuild pushed a commit to JetBrains/kotlin that referenced this pull request Jan 3, 2025
* Correctly handle targets with a main compilation resulting in no compiled artifacts
* Postpone source directories check by wrapping it into a provider

Fixes Kotlin/binary-compatibility-validator#199 
Pull request Kotlin/binary-compatibility-validator#200

Moved from Kotlin/binary-compatibility-validator@e478dd6
KotlinBuild pushed a commit to JetBrains/kotlin that referenced this pull request Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working klib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Klib validation failing on CI but not locally
3 participants