Skip to content

Conversation

@ajantha-bhat
Copy link
Member

@ajantha-bhat ajantha-bhat commented Mar 8, 2023

Even after bumping the checkstyle in #7024, the same error happened with the new PR which was using the updated check style version.

Fix should help in reducing/avoiding these flaky failures.

Fixes #7023

@github-actions github-actions bot added the INFRA label Mar 8, 2023
with:
distribution: zulu
java-version: 8
# Setup Gradle properties, heap requirements are for `:iceberg-spark:iceberg-spark-3.3_2.12:checkstyleMain`.
Copy link
Member Author

Choose a reason for hiding this comment

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

Instead of updating the https://github.com/apache/iceberg/blob/master/gradle.properties, I have modified here because changing there will apply for all the tasks and other tasks doesn't have this requirement.

@ajantha-bhat ajantha-bhat marked this pull request as draft March 8, 2023 15:43
@ajantha-bhat ajantha-bhat marked this pull request as ready for review March 10, 2023 13:23
@ajantha-bhat
Copy link
Member Author

cc: @nastra, @jackye1995, @XN137, @Fokko

@ajantha-bhat ajantha-bhat changed the title Build: Increase gradle heap size java-ci Build: Increase gradle heap size for java-ci task Mar 10, 2023
- name: Setup gradle.properties
run: |
mkdir -p ~/.gradle
echo "org.gradle.jvmargs=-Xmx2048m" >> ~/.gradle/gradle.properties
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure about setting it here vs in gradle.properties. Curious to see what other people think about this

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 didn't want to increase it for all the tasks. Hence added it here. I am open to others' opinions too.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I am okay with a global setting, seems to be good to just have enough heap for all tasks. Is there any specific advantage for limiting to one task?

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 just wanted other tasks to run with a lower memory footprint (as they don't report this problem)

But as the majority is for having a global setting, I changed it to a global setting now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Once, I changed to global config. Task has failed again 😞

I don't see any log printing the gradle daemon configuration used to confirm it is using 2GB.

@ajantha-bhat
Copy link
Member Author

ajantha-bhat commented Mar 13, 2023

@github-actions github-actions bot added build and removed INFRA labels Mar 14, 2023
@ajantha-bhat ajantha-bhat changed the title Build: Increase gradle heap size for java-ci task Build: Increase gradle heap size Mar 14, 2023
@ajantha-bhat
Copy link
Member Author

closing as issue is fixed by #7321

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky checkstyle plugin run

3 participants