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

Update KGP to 1.8.20 #2989

Merged
merged 14 commits into from
May 17, 2023
Merged

Update KGP to 1.8.20 #2989

merged 14 commits into from
May 17, 2023

Conversation

vmishenev
Copy link
Member

@vmishenev vmishenev commented May 1, 2023

KGP 1.8.20 have increased memory consumption in Dokka project a little (10-20%), It causes memory exhaustion of free GitHub runners in GitHub Actions. (publishing coroutines ##[debug]Node Action run completed with exit code 143 and the unit tests on Windows Native memory allocation (malloc) failed to allocate). The --no-daemon flag does not help anymore in Windows.
So stricter memory constraints have been applied to GH actions.

It is based on #2972

@vmishenev vmishenev changed the title Update KGP 1.8.20 Update KGP to 1.8.20 May 1, 2023
@vmishenev vmishenev force-pushed the update-kgp-1.8.20 branch 2 times, most recently from 8548f18 to 665f71d Compare May 1, 2023 20:34
@vmishenev vmishenev force-pushed the update-kgp-1.8.20 branch 6 times, most recently from 44fcaff to bac97d8 Compare May 4, 2023 19:11
@vmishenev vmishenev force-pushed the update-kgp-1.8.20 branch 5 times, most recently from 554e695 to e0d6f7a Compare May 5, 2023 13:32
@vmishenev vmishenev force-pushed the update-kgp-1.8.20 branch 2 times, most recently from 3345075 to 168d4e8 Compare May 8, 2023 14:00
@vmishenev vmishenev marked this pull request as ready for review May 8, 2023 14:59
@@ -5,10 +5,11 @@ import org.jetbrains.dokka.model.Documentable
import org.jetbrains.dokka.model.properties.WithExtraProperties

internal fun WithExtraProperties<out Documentable>.hasJvmSynthetic(): Boolean {
@Suppress("TYPE_MISMATCH_WARNING_FOR_INCORRECT_CAPTURE_APPROXIMATION")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a a comment about this in the draft, and I was under the impression you'd figure it out - any luck?

I personally don't feel comfortable suppressing our own API faults (see the get() operator implementation) without a plan, given that it will be reported as error in Kotlin 2.0

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is not relevant to get(). Here we have a covariant out Documentable (in a particular case with some Captured(out Documentable) type). So there are ExtraProperty.Key<Captured(out Documentable), T> and ExtraProperty.Key<AnnotationTarget, Annotations> at the same time.

Dokka suppresses source sets that do no have compilation since such configuration is invalid, it reports a warning or an error
@IgnatBeresnev
Copy link
Member

IgnatBeresnev commented May 17, 2023

I triggered thorough tests manually, but for some reason GitHub is not reporting them as pending / in progress for this PR

Let's wait for these to pass before the merge: https://github.com/Kotlin/dokka/actions/runs/5004525443

@vmishenev
Copy link
Member Author

vmishenev commented May 17, 2023

for some reason GitHub is not reporting them as pending / in progress for this PR

They are triggered only for push into master

@vmishenev vmishenev merged commit a9b3ee1 into master May 17, 2023
21 checks passed
@vmishenev vmishenev deleted the update-kgp-1.8.20 branch May 17, 2023 18:07
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.

None yet

2 participants