Skip to content

Conversation

fzhinkin
Copy link
Collaborator

@fzhinkin fzhinkin commented Jun 5, 2024

To handle cases when a dump containing declarations for Apple targets is validated on hosts not supporting these targets, BCV filters out a golden dump committed to the repo.

Unfortunately, the filtration logic was invalid. Instead of filtering out targets known to be unsupported, the corresponding task was filtering out everything except supported targets. If a target was removed from the config, it could no longer make it to a set of supported/enabled targets, and the aforementioned task would filter it out.

Fix changes the filtration logic only to remove targets that were defined in a project but are known to be unsupported.

Fixes #234

@fzhinkin fzhinkin added bug Something isn't working klib labels Jun 5, 2024
@fzhinkin fzhinkin linked an issue Jun 5, 2024 that may be closed by this pull request
@fzhinkin fzhinkin requested a review from shanshin June 5, 2024 09:33
@fzhinkin fzhinkin force-pushed the make-tasks-public branch from 2b7b900 to 4de527a Compare June 6, 2024 10:18
@fzhinkin fzhinkin force-pushed the make-tasks-public branch from 8b0f562 to d8271ab Compare June 21, 2024 11:32
Base automatically changed from make-tasks-public to develop June 24, 2024 12:43
@fzhinkin fzhinkin force-pushed the 234-correctly-handle-disappeared-targets branch from 130eeff to 3ed0bf9 Compare June 24, 2024 12:51
@fzhinkin fzhinkin merged commit db8c335 into develop Jun 24, 2024
@fzhinkin fzhinkin deleted the 234-correctly-handle-disappeared-targets branch June 24, 2024 13:17
shanshin pushed a commit to JetBrains/kotlin that referenced this pull request Oct 28, 2024
* Improve exception message
* Added a test reproducing the issue from Kotlin/binary-compatibility-validator#234 (p. 1 & 2)
* Removed native targets should trigger validation failure

Fixes Kotlin/binary-compatibility-validator#234
Pull request Kotlin/binary-compatibility-validator#236
shanshin pushed a commit to JetBrains/kotlin that referenced this pull request Dec 3, 2024
* Improve exception message
* Added a test reproducing the issue from Kotlin/binary-compatibility-validator#234 (p. 1 & 2)
* Removed native targets should trigger validation failure

Fixes Kotlin/binary-compatibility-validator#234
Pull request Kotlin/binary-compatibility-validator#236
shanshin pushed a commit to JetBrains/kotlin that referenced this pull request Dec 13, 2024
* Improve exception message
* Added a test reproducing the issue from Kotlin/binary-compatibility-validator#234 (p. 1 & 2)
* Removed native targets should trigger validation failure

Fixes Kotlin/binary-compatibility-validator#234
Pull request Kotlin/binary-compatibility-validator#236
shanshin pushed a commit to JetBrains/kotlin that referenced this pull request Dec 23, 2024
* Improve exception message
* Added a test reproducing the issue from Kotlin/binary-compatibility-validator#234 (p. 1 & 2)
* Removed native targets should trigger validation failure

Fixes Kotlin/binary-compatibility-validator#234
Pull request Kotlin/binary-compatibility-validator#236

Moved from Kotlin/binary-compatibility-validator@db8c335
KotlinBuild pushed a commit to JetBrains/kotlin that referenced this pull request Jan 3, 2025
* Improve exception message
* Added a test reproducing the issue from Kotlin/binary-compatibility-validator#234 (p. 1 & 2)
* Removed native targets should trigger validation failure

Fixes Kotlin/binary-compatibility-validator#234
Pull request Kotlin/binary-compatibility-validator#236

Moved from Kotlin/binary-compatibility-validator@db8c335
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.

Removing native targets did not cause API check to fail
2 participants