Skip to content

Conversation

@xinsong-cui
Copy link
Contributor

Issue #

Description of changes

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

@xinsong-cui xinsong-cui added the no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly. label Apr 30, 2025
@github-actions
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

@github-actions
Copy link

Affected Artifacts

No artifacts changed size

@xinsong-cui xinsong-cui marked this pull request as ready for review April 30, 2025 18:52
@xinsong-cui xinsong-cui requested a review from a team as a code owner April 30, 2025 18:53
@github-actions
Copy link

github-actions bot commented May 1, 2025

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

@xinsong-cui xinsong-cui requested a review from ianbotsf May 1, 2025 14:49
@github-actions
Copy link

github-actions bot commented May 1, 2025

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

@xinsong-cui xinsong-cui requested review from ianbotsf May 1, 2025 18:03
@github-actions
Copy link

github-actions bot commented May 1, 2025

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

Copy link
Contributor

@ianbotsf ianbotsf left a comment

Choose a reason for hiding this comment

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

Correctness: The test doesn't pass for me:

DokkaAwsTest > testLoadScripts() FAILED
    org.opentest4j.AssertionFailedError: Expected script awshome_s_code.js not found
        at app//org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:38)
        at app//org.junit.jupiter.api.Assertions.fail(Assertions.java:138)
        at app//kotlin.test.junit5.JUnit5Asserter.fail(JUnitSupport.kt:56)
        at app//kotlin.test.Asserter$DefaultImpls.assertTrue(Assertions.kt:694)
        at app//kotlin.test.junit5.JUnit5Asserter.assertTrue(JUnitSupport.kt:30)
        at app//kotlin.test.Asserter$DefaultImpls.assertTrue(Assertions.kt:704)
        at app//kotlin.test.junit5.JUnit5Asserter.assertTrue(JUnitSupport.kt:30)
        at app//kotlin.test.AssertionsKt__AssertionsKt.assertTrue(Assertions.kt:44)
        at app//kotlin.test.AssertionsKt.assertTrue(Unknown Source)
        at app//aws.sdk.kotlin.dokka.DokkaAwsTest.testLoadScripts(DokkaAwsTest.kt:49)

Comment on lines 19 to 29
@AfterAll
fun cleanup() {
if (dokkaOutputDir.exists()) {
try {
dokkaOutputDir.deleteRecursively()
println("Successfully deleted dokka folder")
} catch (e: Exception) {
println("Failed to delete dokka folder: ${e.message}")
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Correctness: We shouldn't delete the docs after the test run. Firstly, they're created by Gradle and we shouldn't be messing with Gradle's scope during our tests. More importantly, it makes debugging failures pretty difficult.

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 make sense, I will remove cleanup part.
Btw the test not pass is because api ref doc analytic not merged yet.

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 2, 2025

@github-actions
Copy link

github-actions bot commented May 2, 2025

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

@xinsong-cui xinsong-cui closed this May 2, 2025
@xinsong-cui xinsong-cui deleted the api-ref-docs-analytics-test branch August 21, 2025 20:54
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