Skip to content

Conversation

@ashishrp-aws
Copy link
Contributor

@ashishrp-aws ashishrp-aws commented Feb 11, 2025

Types of changes

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

Description

Q Test Generation is seeing quite a few job failures due to unauthorized API calls to service. Q Test workflow's existing checks are for older version of Q. Updated the auth checks to re-authenticate in chat like other features.

Testing: tested with credential state set to Re-Auth to check the re-prompt to browser re-auth.

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.

@ashishrp-aws ashishrp-aws requested a review from a team as a code owner February 11, 2025 00:43
import software.aws.toolkits.jetbrains.services.amazonqCodeTest.storage.ChatSessionStorage
import software.aws.toolkits.jetbrains.services.cwc.messages.ChatMessageType
import software.aws.toolkits.jetbrains.services.cwc.messages.FollowUp
import software.aws.toolkits.resources.message

Check warning

Code scanning / QDJVMC

Usage of redundant or deprecated syntax or deprecated symbols Warning

Remove deprecated symbol import

suspend fun sendChatInputEnabledMessage(isEnabled: Boolean) {
if (isInvalidSession()) return
messagePublisher.publish(ChatInputEnabledMessage(activeCodeTestTabId as String, enabled = isEnabled))

Check warning

Code scanning / QDJVMC

Usage of redundant or deprecated syntax or deprecated symbols Warning

No cast needed
tabId = tabId,
messageId = messageId ?: UUID.randomUUID().toString(),
messageType = ChatMessageType.Answer,
message = message("amazonqFeatureDev.follow_instructions_for_authentication"),

Check warning

Code scanning / QDJVMC

Usage of redundant or deprecated syntax or deprecated symbols Warning

'message(String, vararg Any): String' is deprecated. Use extension-specific localization bundle instead
Copy link
Contributor

@laileni-aws laileni-aws left a comment

Choose a reason for hiding this comment

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

LGTM

@ashishrp-aws ashishrp-aws enabled auto-merge (squash) February 12, 2025 00:32
@ashishrp-aws ashishrp-aws merged commit b440147 into aws:main Feb 12, 2025
11 of 13 checks passed
samgst-amazon pushed a commit that referenced this pull request Feb 12, 2025
* Correcting auth checks for /test workflow
@ashishrp-aws ashishrp-aws deleted the auth branch February 18, 2025 19:52
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.

2 participants