Skip to content

Conversation

@0marperez
Copy link
Contributor

Issue #

N/A

Description of changes

Uses a ProcessBuilder instead of a GradleRunner to run the tests. Assures already running Gradle instance is used instead of starting up a new one.

This should lower memory usage of the tests and brings test run times from ~3 min to ~30 sec

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@0marperez 0marperez added the no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly. label Feb 27, 2025
@github-actions
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

@github-actions
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

@github-actions

This comment has been minimized.

@github-actions
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

@github-actions

This comment has been minimized.

@github-actions
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

@github-actions

This comment has been minimized.

"-Paws.kotlin.native=false", // FIXME: Remove `-Paws.kotlin.native=false` when Kotlin Native is ready
val processBuilder =
ProcessBuilder(
if (System.getProperty("os.name").contains("Windows", ignoreCase = true)) ".\\gradlew.bat" else "./gradlew",
Copy link
Member

Choose a reason for hiding this comment

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

You should re-use PlatformProvider.System which already offers utilities for this

@github-actions
Copy link

github-actions bot commented Mar 3, 2025

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

@github-actions

This comment has been minimized.

@0marperez 0marperez marked this pull request as ready for review March 3, 2025 22:53
@0marperez 0marperez requested a review from a team as a code owner March 3, 2025 22:53

processBuilder.environment().putAll(envVars)

val buildResult = if (expectingFailure) task.buildAndFail() else task.build()
Copy link
Member

Choose a reason for hiding this comment

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

Are we no longer asserting that the Gradle task fails? ProcessBuilder should have an option to get the exit error code which could be processed in a similar way to buildAndFail()

@github-actions
Copy link

github-actions bot commented Mar 4, 2025

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 4, 2025

@github-actions
Copy link

github-actions bot commented Mar 4, 2025

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

@github-actions
Copy link

github-actions bot commented Mar 4, 2025

Affected Artifacts

No artifacts changed size

@0marperez 0marperez merged commit 809cc19 into main Mar 6, 2025
19 checks passed
@0marperez 0marperez deleted the fix-smoke-e2e-tests branch March 6, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants