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

Github Actions Remove --max-workers gradle param #1444

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

Scottmitch
Copy link
Member

Motivation:
Our github action scripts explicitly set --max-workers but gradle can
automatically infer the value based upon number of processors [1].

[1] https://docs.gradle.org/current/userguide/command_line_interface.html

Default is number of processors.

Modifications:

  • Remove --max-workers param from github action scripts

Result:
Gradle will automatically determine the number of workers to use based
upon available processors.

Motivation:
Our github action scripts explicitly set --max-workers but gradle can
automatically infer the value based upon number of processors [1].

[1] https://docs.gradle.org/current/userguide/command_line_interface.html
> Default is number of processors.

Modifications:
- Remove --max-workers param from github action scripts

Result:
Gradle will automatically determine the number of workers to use based
upon available processors.
@Scottmitch Scottmitch requested a review from bondolo March 16, 2021 23:16
@@ -63,7 +63,7 @@ jobs:
fi

# Execute the gradlew command to publish the build
./gradlew --parallel --max-workers=4$FIRST_GRADLE_TARGETS && ./gradlew$SECOND_GRADLE_TARGETS
./gradlew --parallel$FIRST_GRADLE_TARGETS && ./gradlew$SECOND_GRADLE_TARGETS
Copy link
Member Author

Choose a reason for hiding this comment

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

note the lack of space is intentional as the variable value always starts with a space

@Scottmitch
Copy link
Member Author

I've done 3-4 builds and build time doesn't seem to be impacted. I'll merge and observe if build times change at all over time.

@Scottmitch Scottmitch merged commit bc810aa into apple:main Mar 17, 2021
@Scottmitch Scottmitch deleted the gha_max_workers branch March 17, 2021 00:44
bondolo pushed a commit to bondolo/servicetalk that referenced this pull request Mar 18, 2021
Motivation:
Our github action scripts explicitly set --max-workers but gradle can
automatically infer the value based upon number of processors [1].

[1] https://docs.gradle.org/current/userguide/command_line_interface.html
> Default is number of processors.

Modifications:
- Remove --max-workers param from github action scripts

Result:
Gradle will automatically determine the number of workers to use based
upon available processors.
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.

2 participants