Skip to content

Conversation

@0marperez
Copy link
Contributor

Issue #

Description of changes

Reintroduces support for smoke tests which was reverted in #1421. With the addition of smoke test e2e tests running with aws.kotlin.native turned off.

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

0marperez and others added 30 commits August 23, 2024 10:16
@0marperez 0marperez added the no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly. label Oct 3, 2024
@github-actions
Copy link

github-actions bot commented Oct 3, 2024

A new generated diff is ready to view.

val sdkRootDir = System.getProperty("user.dir") + "/../../../"
val runner = GradleRunner.create()
.withProjectDir(File(sdkRootDir))
.withArguments(listOf("-Paws.kotlin.native=false", ":tests:codegen:smoke-tests:services:$service:smokeTest"))
Copy link
Member

Choose a reason for hiding this comment

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

Nice find!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

@github-actions

This comment has been minimized.

@0marperez 0marperez marked this pull request as ready for review October 3, 2024 16:03
@0marperez 0marperez requested a review from a team as a code owner October 3, 2024 16:03
val runner = GradleRunner.create()
.withProjectDir(File(sdkRootDir))
.withArguments(":tests:codegen:smoke-tests:services:$service:smokeTest")
.withArguments(listOf("-Paws.kotlin.native=false", ":tests:codegen:smoke-tests:services:$service:smokeTest"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: A vararg overload of withArguments exists so listOf could be removed.

.withArguments("-Paws.kotlin.native=false", ":tests:codegen:smoke-tests:services:$service:smokeTest")

val runner = GradleRunner.create()
.withProjectDir(File(sdkRootDir))
.withArguments(":tests:codegen:smoke-tests:services:$service:smokeTest")
.withArguments(listOf("-Paws.kotlin.native=false", ":tests:codegen:smoke-tests:services:$service:smokeTest"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: Do we have a task or something that tracks removing all the places we've disabled native builds? If not, I suggest we add a FIXME or something else here to increase the likelihood we remember to remove this once Kotlin/Native is ready.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good point. I added a subtask to our Kotlin Native task so we remember.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 4, 2024

@github-actions
Copy link

github-actions bot commented Oct 4, 2024

A new generated diff is ready to view.

@github-actions
Copy link

github-actions bot commented Oct 4, 2024

Affected Artifacts

Changed in size
Artifact Pull Request (bytes) Latest Release (bytes) Delta (bytes) Delta (percentage)
sagemaker-jvm.jar closure 26,562,957 26,564,365 -1,408 -0.01%
sagemaker-jvm.jar 18,764,936 18,766,342 -1,406 -0.01%
appstream-jvm.jar closure 10,578,983 10,580,117 -1,134 -0.01%
iotdeviceadvisor-jvm.jar closure 8,349,844 8,350,809 -965 -0.01%
bedrockagentruntime-jvm.jar closure 9,469,927 9,471,830 -1,903 -0.02%
ivsrealtime-jvm.jar closure 9,242,378 9,245,708 -3,330 -0.04%
appstream-jvm.jar 2,780,962 2,782,094 -1,132 -0.04%
codepipeline-jvm.jar closure 10,574,082 10,580,176 -6,094 -0.06%
ec2-jvm.jar closure 35,554,714 35,577,040 -22,326 -0.06%
s3-jvm.jar closure 12,147,420 12,156,960 -9,540 -0.08%
ec2-jvm.jar 27,756,693 27,779,017 -22,324 -0.08%
bedrockagentruntime-jvm.jar 1,587,636 1,589,537 -1,901 -0.12%
iotdeviceadvisor-jvm.jar 551,823 552,786 -963 -0.17%
iot-jvm.jar closure 16,942,787 16,975,546 -32,759 -0.19%
mediapackagev2-jvm.jar closure 8,970,527 8,988,315 -17,788 -0.20%
codepipeline-jvm.jar 2,776,061 2,782,153 -6,092 -0.22%
s3-jvm.jar 4,265,129 4,274,667 -9,538 -0.22%
ivsrealtime-jvm.jar 1,444,357 1,447,685 -3,328 -0.23%
iot-jvm.jar 9,144,766 9,177,523 -32,757 -0.36%
quicksight-jvm.jar closure 25,623,851 25,717,483 -93,632 -0.36%
bedrockruntime-jvm.jar closure 8,962,490 8,997,091 -34,601 -0.38%
quicksight-jvm.jar 17,825,830 17,919,460 -93,630 -0.52%
mediapackagev2-jvm.jar 1,172,506 1,190,292 -17,786 -1.49%
bedrockruntime-jvm.jar 1,080,199 1,114,798 -34,599 -3.10%
b2bi-jvm.jar closure 8,811,543 9,120,310 -308,767 -3.39%
b2bi-jvm.jar 1,013,522 1,322,287 -308,765 -23.35%
marketplacereporting-jvm.jar (does not exist) 116,395 -116,395 -100.00%
marketplacereporting-jvm.jar closure (does not exist) 7,914,418 -7,914,418 -100.00%

@0marperez 0marperez merged commit 1750f5b into main Oct 4, 2024
17 checks passed
@0marperez 0marperez deleted the smoke-tests-trait branch October 4, 2024 14:26
0marperez added a commit that referenced this pull request Oct 4, 2024
0marperez added a commit that referenced this pull request Oct 4, 2024
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