Skip to content

Conversation

@dhasani23
Copy link
Contributor

@dhasani23 dhasani23 commented Feb 21, 2025

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Pass in the -DskipTests flag when users choose to skip tests, so that they are actually skipped locally.

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dhasani23 dhasani23 requested review from a team as code owners February 21, 2025 20:57
FormItemOption(
label = message("codemodernizer.chat.message.skip_tests_form.skip"),
value = message("codemodernizer.chat.message.skip_tests_form.skip"),
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just switch the order of these 2 options so that "skip tests" is the default

} else {
} else if (CodeModernizerSessionState.getInstance(context.project).currentJobId != null) {
val downloadResult = artifactHandler.downloadArtifact(
CodeModernizerSessionState.getInstance(context.project).currentJobId as JobId,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Before attempting download, make sure that a job ID exists (job may not have started otherwise, so nothing to download)

sourceFolder: File,
destinationDir: File,
buildlogBuilder: StringBuilder,
logBuilder: StringBuilder,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got a detekt error elsewhere because a line was too long, so just shortened this name everywhere in this file

@dhasani23 dhasani23 enabled auto-merge (squash) February 21, 2025 23:44
@dhasani23 dhasani23 merged commit f8fa131 into aws:main Feb 22, 2025
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants