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

fix: enhance smoke test debuggability by echoing build output from inner Gradle runner #1519

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

ianbotsf
Copy link
Contributor

Issue #

(none)

Description of changes

Similar to #1515, enhancing smoke test debuggability by echoing build output from the inner Gradle runner to the outer Gradle process. Because the existing code waits for the inner process to exit before evaluating the output, I think we may be missing logs when the inner process exits abruptly.

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

@ianbotsf ianbotsf added the no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly. label Jan 31, 2025
@ianbotsf ianbotsf requested a review from a team as a code owner January 31, 2025 22:44
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

Copy link

Affected Artifacts

No artifacts changed size

Comment on lines -37 to -38
assertContains(smokeTestRunnerOutput, "#\tat aws.smithy.kotlin.runtime.http.interceptors.SmokeTestsInterceptor.readBeforeDeserialization(SmokeTestsInterceptor.kt:19)")
assertContains(smokeTestRunnerOutput, "#\tat aws.smithy.kotlin.runtime.http.interceptors.InterceptorExecutor.readBeforeDeserialization(InterceptorExecutor.kt:252)")
Copy link
Member

Choose a reason for hiding this comment

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

Did we lose the stack trace with this change?

Copy link
Contributor Author

@ianbotsf ianbotsf Feb 3, 2025

Choose a reason for hiding this comment

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

We lost the stack trace assertion with this change. Asserting on stack traces is brittle and adds no value to this test. I'd remove other parts of the exception message assertions as well but that would be a larger refactor so for now I'm just removing this.

@ianbotsf ianbotsf merged commit d6d8411 into main Feb 3, 2025
21 of 22 checks passed
@ianbotsf ianbotsf deleted the fix-enhance-smoke-test-debuggability branch February 3, 2025 16:58
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.

2 participants