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

devEnv: Fix Dev Env timeout + logs #4980

Merged
merged 3 commits into from
May 16, 2024

Conversation

nkomonen-amazon
Copy link
Contributor

Problem:

We only tried to start the activity heartbeat on extension startup. So if
that failed due to something like an invalid connection, the heartbeat mechanism
would not start

Solution:

  • Try and start the heartbeat mechanism when the CC connection changes as well.
    But if it is already running then we just skip it.
  • Also added better logs to help debug this issue. The user should see codecatalyst: DevEnvActivity: heartbeat sent at ... in the logs, which indicates we called the Dev Env /activity api

License

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

@nkomonen-amazon nkomonen-amazon requested a review from a team as a code owner May 13, 2024 14:57
@@ -714,47 +712,6 @@ const Panel = VueWebview.compilePanel(AuthWebview)
let activePanel: InstanceType<typeof Panel> | undefined
let subscriptions: vscode.Disposable[] | undefined

let showManageConnections: RegisteredCommand<any> | undefined
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved this code to login/commands.ts due to circular dependency issues

@nkomonen-amazon nkomonen-amazon force-pushed the devEnvLogs branch 5 times, most recently from 88ab7b5 to cb68c51 Compare May 14, 2024 20:55
@nkomonen-amazon
Copy link
Contributor Author

@justinmk3 could you give this a final look when you have time

We want more logs to help determine if the dev env
heartbeat is working as expected

Signed-off-by: Nikolas Komonen <nkomonen@amazon.com>
The command that shows the login vue was having circular
dependency issues.

This moves that logic in to its own file to fix this.

Signed-off-by: Nikolas Komonen <nkomonen@amazon.com>
Problem:

We only tried to start the activity heartbeat on extension startup. So if
that failed due to something like an invalid connection, the heartbeat mechanism
would not start

Solution:

Try and start the heartbeat mechanism when the CC connection changes as well.
But if it is already running then we just skip it.

Signed-off-by: Nikolas Komonen <nkomonen@amazon.com>
@nkomonen-amazon nkomonen-amazon merged commit 4512e20 into aws:master May 16, 2024
14 checks passed
@nkomonen-amazon nkomonen-amazon deleted the devEnvLogs branch May 16, 2024 17:19
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.

None yet

2 participants