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

changes after 2 PRs #4939

Draft
wants to merge 103 commits into
base: auto-trigger-revamp
Choose a base branch
from
Draft

changes after 2 PRs #4939

wants to merge 103 commits into from

Conversation

andrewyuq
Copy link
Contributor

Types of changes

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

Description

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.

aws-toolkit-automation and others added 12 commits October 3, 2024 19:48
For testing it is very helpful to isolate sandbox changes to `~/.aws` from the host
…rd events for telemetry. (aws#4951)

* Adding Acceptance metrics for UTG
* fix(dev): add error messages for upload URL expiry

* Update .changes/next-release/bugfix-caf370b9-c943-4ece-a4c0-81bcefa7a4f5.json

Co-authored-by: Richard Li <[email protected]>

---------

Co-authored-by: Richard Li <[email protected]>
* Add signout metric

* Fix broken sign out
…n OS CPU load is high (aws#4952)

* upgrade lsp to 0.1.13

* Update .changes/next-release/feature-ac28b77d-4b47-4312-afe7-ece71de355ed.json

Co-authored-by: Richard Li <[email protected]>

* Update .changes/next-release/feature-ac28b77d-4b47-4312-afe7-ece71de355ed.json

Co-authored-by: Richard Li <[email protected]>

---------

Co-authored-by: Richard Li <[email protected]>
* Add metadata to authAddConnection metrics

* detekt
* raise max indexing size to 4GB

* change log

* Update bugfix-e76aa3d8-3d9a-4887-8ce6-018ed4c7c443.json

---------

Co-authored-by: Richard Li <[email protected]>
@andrewyuq andrewyuq force-pushed the main branch 2 times, most recently from 5a466c4 to 5016751 Compare October 10, 2024 09:48
ctidd and others added 12 commits October 10, 2024 09:34
…servability (aws#4953)

**Problem:** Feature dev instrumentation 1) records all failures as `FeatureDevException`, losing information about the specific exception type, and 2) lacks annotation of `reasonDesc` and the operation related to the error. (By operation, although we do capture `amazonq_codeGenerationInvoke`,  we're missing the subprocess name such as `StartCodeGeneration`.) As a result, we do not have insight into feature dev failures in JetBrains.


**Solution:** 1) Update exception modeling pattern for feature dev functionality to derive subclasses of `FeatureDevException`, providing a meaningful class name when inspected as error `reason`. 2) On `FeatureDevException`, accept an `operation` and `desc` to provide further annotation (merged when logged as `reasonDesc`).

This change will have conflicts with aws#4938 and aws#4949. I'll rebase on top of those and reconcile any drift in a subsequent revision.
* Fix lint errors

* Fix lint errors for plugin-amazonq:chat

* Fix lint errors for plugin-toolkit:jetbrains-core
`CodeWhispererStatusBarWidget#getSelectedValue` is called under EDT, but may cause `ProfileWatcher` to be indirectly initialized on the background through `ToolkitConnectionManager#activeConnectionForFeature`. However `ProfileWatcher` requires EDT to initialize correctly since it relies on VFS events to propagate on EDT before it returns
rli and others added 25 commits November 6, 2024 08:16
In CI, the override just drops all the source because all paths contain `/codebuild`

```
> Task :plugin-amazonq:codewhisperer:jetbrains-community:detektMain NO-SOURCE
Skipping task ':plugin-amazonq:codewhisperer:jetbrains-community:detektMain' as it has no source files and no previous output files.
Resolve mutations for :plugin-core:jetbrains-community:compileTestFixturesJava (Thread[aws#144,Execution worker Thread 4,5,main]) started.
:plugin-core:jetbrains-community:compileTestFixturesJava (Thread[aws#144,Execution worker Thread 4,5,main]) started.
```
…ws#5027)

* Depends on aws#4982
* Depends on aws/aws-toolkit-common#899
* Rename Unit -> MetricUnit directly in SDK codegen
* Use newer provider convention syntax for input/output in generator task
* expose `passive`/`unit`/`value` as special fields
* add smoke test for `validateRequiredAttributes`
This PR transforms OTel spans to the format expected by the current telemetry service
* improve indexing auto start stop

* lsp 0.1.26
* Add session_start telemetry to startup activities

* use runOnceUtil

* remove hardcoding of class name

* remove order first

* internal class
* Fix popup not init in EDT for remote

1. BackendComponentBePopupBuilder.createPopup somehow needs
to be executed in EDT while recent changes made our initPopup()
to happen in BGT.

* Update plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/service/CodeWhispererService.kt

Co-authored-by: Richard Li <[email protected]>

* change log

---------

Co-authored-by: Richard Li <[email protected]>
* add authScopes to emitUserState telemetry

* add authScopes to emitUserState telemetry

* Replace userState function with direct TelemetryService record function to capture authScopes

* add value parameter

* fix whitespace

* Update plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/gettingstarted/GettingStartedAuthUtils.kt

Co-authored-by: Richard Li <[email protected]>

* Check current explorerConnection for scopes only

* Add function to grab scopes from each activeConnection used that is connected/expired.

* remove TelemetryOverride definition and use common's telemetry function instead

* remove unused imports

* Change the way explorer connection scope is checked

* remove check for CodeWhispererConnection: merged into qConnection & qScopes

* add common logic to one function

* Update telemetryOverride.json

missed {

---------

Co-authored-by: Richard Li <[email protected]>
* change log to info

* lazyLog
* Scrub names from messages in logging/telemetry

* removing commented code

* feedback

* detekt
* initial commit

* add source to loading metrics

* detekt

* fix tests

* fix more tests
…hen indexing finished (aws#5062)

* adjust LSP API timeout

* update time
Per product request. Tested in internal branch
zixlin7 and others added 4 commits November 12, 2024 12:22
…ws#5076)

Only allow invoking inline chat if it's from regular file editor
* patch for aws#5076

* Update plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/inline/OpenChatInputAction.kt

Co-authored-by: Richard Li <[email protected]>

---------

Co-authored-by: Richard Li <[email protected]>
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.