Skip to content

Gitpod tests taking long to run and fails to respond further #14155

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

Closed
ArbeenaAzeeb1 opened this issue Oct 25, 2022 · 13 comments
Closed

Gitpod tests taking long to run and fails to respond further #14155

ArbeenaAzeeb1 opened this issue Oct 25, 2022 · 13 comments
Assignees
Labels
editor: code (browser) meta: 🤔 reporter-feedback-needed cannot process further since we need more info from the reporter team: IDE type: bug Something isn't working

Comments

@ArbeenaAzeeb1
Copy link

ArbeenaAzeeb1 commented Oct 25, 2022

Bug description

When a user tries to run tests via Gitpod, it shows that the tests are running for a long duration. However, they are not able to receive the response of the test run. It stops responding further.

Steps to reproduce

Write a test code and try running it using the 'Run' icon

Workspace affected

All workspaces

Expected behavior

Tests should run without any lag

Example repository

Our repo is private as of now. We are working on some student submitting assignments and we have tests written as a part of it. These unit tests are taking long to run

@ArbeenaAzeeb1 ArbeenaAzeeb1 added the type: bug Something isn't working label Oct 25, 2022
@akosyakov akosyakov added the meta: 🤔 reporter-feedback-needed cannot process further since we need more info from the reporter label Oct 25, 2022
@akosyakov
Copy link
Member

Which repo? Which tests? Sounds like an issue with a project setup.

@ArbeenaAzeeb1
Copy link
Author

Hey, we are trying to use the extension 'https://github.com/Microsoft/vscode-java-test' to run the java tests, which seems to run take a long execution time. You can replicate this issue by running the tests in this example repo - https://github.com/gitpod-io/spring-petclinic - given by gitpod itself using the above extension.

@mustard-mh
Copy link
Contributor

@andreafalzetti Could you try to reproduce it since you're on-call this week 🙏

@mustard-mh mustard-mh moved this to Scheduled in 🚀 IDE Team Nov 14, 2022
@andreafalzetti andreafalzetti self-assigned this Nov 14, 2022
@andreafalzetti
Copy link
Contributor

from initial tests, I can reproduce, and I believe the extension gets stuck in detecting the environment (eg maven home) properly. I've tried passing custom settings but didn't work what I tried.

Screenshot 2022-11-15 at 06 15 33

@andreafalzetti
Copy link
Contributor

@mustard-mh @jeanp413 is there a way to see logs for vscode extensions? I suspect it gets stuck at detecting the maven home or some other param from the workspace, but without logs it's hard to say.

@jeanp413
Copy link
Member

@ArbeenaAzeeb1 could you try again, we just did some updates related to java extension, can you still reproduce?

@akosyakov akosyakov moved this from Scheduled to In Progress in 🚀 IDE Team Nov 17, 2022
@akosyakov
Copy link
Member

@ArbeenaAzeeb1 @LorenzoBettini if you have a reproducible repo it would be helpful that we can confirm exactly for your case 🙏

@LorenzoBettini
Copy link

@akosyakov I did some experiments some time ago in this repo https://github.com/LorenzoBettini/maven-gitpod-example I'm trying to reopen it right now... apparently, installing Java extension pack is taking ages so I still can't verify that the problem is fixed. Is https://github.com/gitpod-io/spring-petclinic working?

@LorenzoBettini
Copy link

and while installing the extension I get a popup on the right-bottom saying "missing gallery"

@akosyakov
Copy link
Member

apparently, installing Java extension pack is taking ages so I still can't verify that the problem is fixed.

yes, there is a bug in VS Code taking it forever, you can work around by reloading the page

and while installing the extension I get a popup on the right-bottom saying "missing gallery"

Ouch, I have not seen such. Could you share a screenshot or collect logs https://www.gitpod.io/docs/help/troubleshooting#gitpod-logs-in-vs-code-browser-and-desktop 🙏

@LorenzoBettini
Copy link

@akosyakov yes, reloading seems to fix the problem with Java extensions being installed.

I confirm that now I can run the tests:

image

:)

@akosyakov
Copy link
Member

akosyakov commented Nov 18, 2022

@jeanp413 @mustard-mh it seems to be another follow up of a root cause for #14626? Closing as a dup?

Can we cherry pick a fix in other version of VS Code to unblock VS Code browser users?

@jeanp413
Copy link
Member

apparently, installing Java extension pack is taking ages so I still can't verify that the problem is fixed.

yep this is duplicate of #14626

Original issue about running java test should be fixed now

Repository owner moved this from In Progress to Done in 🚀 IDE Team Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor: code (browser) meta: 🤔 reporter-feedback-needed cannot process further since we need more info from the reporter team: IDE type: bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

8 participants