[WIP based on PR #16032] - Issue #16003: add kafka to no-error testing#16395
[WIP based on PR #16032] - Issue #16003: add kafka to no-error testing#16395dejan2609 wants to merge 6 commits intocheckstyle:masterfrom
Conversation
|
@dejan2609 , I appreciate your help. |
|
I made some limited progress; will try to compare build environment configurations (i.e. Apache Kafka Github Actions vs. Checkstyle Travis CI). Herewith an error from Travis CI: |
|
@romani just for the recored: is Travis CI usage mandatory for Checkstyle team? |
|
we can use any CI , github action is ok. |
|
Ok then, let's wait with moving to GA or Circle CI (I think I can solve this on Travis CI). |
|
Some updates: it seems that CircleCI somehow fails to honor Kafka Gradle settings/options/memory limits (and hence Gradle build on CircleCI fails due to lack of resources). I'm experimenting with replicating Kafka Gradle settings onto Circle CI (here is the resource: https://circleci.com/docs/java-oom/#using-java-environment-variables-to-set-memory-limits). |
|
@romani I'm back, hopefully will be able to solve this in the foreseeable future 🛠️ 🙂 |
|
I will have a bit more time in winter too, so we can collaborate. We can make github action for this task, if circleci is so capricious. |
|
We have a deal @romani ! Github Actions it is then 🤝 Incoming shameless plug 😎: I spent some time camping in Kafka's corner and scored a few wins there (Gradle 9 upgrade and Java 25 build). |
@dejan2609 Do you remember if the message mentioned what the memory tipping point was? |
|
@stoyanK7 Здравей, Стоян, поздрави от Белград ! Things have changed on Kafka side quite a bit: both Gradle and Java versions are upgraded and you also have to factor in that my attempt was made on CircleCI (and CheckStyle team now opts exclusively for Github Actions) so those errors are kind of obsolete. Also: given a fact that Kafka CI build is also using Github Actions we can be 💯 percent sure that build should (must) work fine in CheckStyle setup. From where I see this one should execute following (or similar) Gradle command via CheckStyle GA worklow: Related notable comments:
|
|
One more thing to add: I will put this stalled PR to rest 🙂 @stoyanK7 feel free to add me to your future PR (I can provide some non-binding review). |
|
@dejan2609 Поздрави от София, Деян! Thanks for the detailed response.
I'll first do my best to make it work on CircleCI. If I see it's a hassle, I'll opt for GitHub Actions. I'm curious to find out what's wrong with the memory usage 🤔
Of course! I'll open a PR in the following days and tag you 🚀 |
|
@stoyanK7 for all I know (please read this: for all I can remember): we (both @romani and me) had issues with CircleCI Gradle build that would just stop (best bet: due to lack of memory): #16032 (comment) Question is: do you want to utilize Gradle daemon build in a first place ? Now, given a fact that Kafka is building against two Java versions (17 and 25, at the moment) answer is probably yes. Here me out: if you want to try your luck with Circle CI my suggestion would be to:
That would be my 2 cents on this 🪙 🪙 Off topic: Levski or CSKA ? ⚽ 😃 |
On January I will merge jdk21 migration. So better to target jdk25 execution for Kafka. Off topic: не знал что ЦСКА существует в других странах. :) |
See this PR for prologue: #16032 (comment)
Related issue: #16003