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

split the publish-snapshot job into smaller steps, with gradle/gradle-build-action #972

Merged
merged 2 commits into from
Mar 20, 2023

Conversation

RBusarow
Copy link
Collaborator

We've been getting timeouts at the 35 minute mark. A single step was doing all the work, running ./gradlew build and then ./gradlew publish. The build task runs all checks, including Android Lint, so it ran for too long. And none of it was using a build cache.

With the way gradle/gradle-build-action works, nothing is actually uploaded until after the step has completed successfully. So if a step times out, all the incremental progress it made will be lost. For this reason, it's best to break very long-running steps down into smaller ones. That way, even if the very first run times out, subsequent runs will save time by using its cache.

…dle-build-action`

We've been getting timeouts at the 35 minute mark.  A single step was doing all the work, running `./gradlew build` and then `./gradlew publish`.  The build task runs all checks, including Android Lint, so it ran for too long.  And none of it was using a build cache.

With the way `gradle/gradle-build-action` works, nothing is actually uploaded until after the step has completed successfully.  So if a step times out, all the incremental progress it made will be lost.  For this reason, it's best to break very long-running steps down into smaller ones.  That way, even if the very first run times out, subsequent runs will save time by using its cache.
@RBusarow RBusarow marked this pull request as ready for review March 19, 2023 18:24
@RBusarow RBusarow requested review from a team and zach-klippenstein as code owners March 19, 2023 18:25
@@ -132,7 +135,7 @@ jobs :
name : Check with Gradle
with :
arguments : |
allTests test apiCheck checkVersionIsSnapshot lint lintKotlin jvmWorkflowNodeBenchmarkJar --stacktrace --continue
allTests test apiCheck checkVersionIsSnapshot lint lintKotlin jvmWorkflowNodeBenchmarkJar --continue
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we running checkVersionIsSnapshot twice?

@RBusarow RBusarow merged commit 93f4bac into main Mar 20, 2023
@RBusarow RBusarow deleted the rick/split_up_publish_snapshot_workflow branch March 20, 2023 14:29
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.

3 participants