Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Smithy Rust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public Repositories
Smithy Rust
Commits
2986c93b
Unverified
Commit
2986c93b
authored
Jun 8, 2022
by
John DiSanti
Committed by
GitHub
Jun 8, 2022
Browse files
Options
Downloads
Patches
Plain Diff
Configure Gradle parallelism and Kotlin compiler in `sdk-sync` (#1448)
parent
2d5bf6fc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/sdk-sync/src/sync/gen.rs
+21
-0
21 additions, 0 deletions
tools/sdk-sync/src/sync/gen.rs
with
21 additions
and
0 deletions
tools/sdk-sync/src/sync/gen.rs
+
21
−
0
View file @
2986c93b
...
...
@@ -114,15 +114,36 @@ impl DefaultSdkGenerator {
#[instrument(skip(self))]
fn
aws_sdk_assemble
(
&
self
)
->
Result
<
()
>
{
info!
(
"Generating the SDK..."
);
let
mut
command
=
Command
::
new
(
"./gradlew"
);
command
.arg
(
"--no-daemon"
);
// Don't let Gradle continue running after the build
command
.arg
(
"--no-parallel"
);
// Disable Gradle parallelism
command
.arg
(
"--max-workers=1"
);
// Cap the Gradle workers at 1
command
.arg
(
"--info"
);
// Increase logging verbosity for failure debugging
// Customize the Gradle daemon JVM args (these are required even with `--no-daemon`
// since Gradle still forks out a daemon process that gets terminated at the end)
command
.arg
(
format!
(
"-Dorg.gradle.jvmargs={}"
,
[
// Retain default Gradle JVM args
"-Xmx512m"
,
"-XX:MaxMetaspaceSize=256m"
,
// Disable incremental compilation and caching since we're compiling exactly once per commit
"-Dkotlin.incremental=false"
,
"-Dkotlin.caching.enabled=false"
,
// Run the compiler in the gradle daemon process to avoid more forking thrash
"-Dkotlin.compiler.execution.strategy=in-process"
]
.join
(
" "
)
));
// Disable Smithy's codegen parallelism in favor of sdk-sync parallelism
command
.arg
(
format!
(
"-Djava.util.concurrent.ForkJoinPool.common.parallelism={}"
,
self
.smithy_parallelism
));
command
.arg
(
"-Paws.fullsdk=true"
);
command
.arg
(
format!
(
"-Paws.sdk.previous.release.versions.manifest={}"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment