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

Happy path e2e test failed on Java LS validation step #18193

Closed
4 of 22 tasks
dmytro-ndp opened this issue Oct 26, 2020 · 4 comments
Closed
4 of 22 tasks

Happy path e2e test failed on Java LS validation step #18193

dmytro-ndp opened this issue Oct 26, 2020 · 4 comments
Labels
area/qe e2e-test/failure Issues that is related to a test failures reported by our CI platform and our QE. kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Milestone

Comments

@dmytro-ndp
Copy link
Contributor

dmytro-ndp commented Oct 26, 2020

Describe the bug

Happy path e2e test failed on Java LS validation step:
https://codeready-workspaces-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/basic-MultiUser-Che-check-e2e-tests-against-k8s/2584/

screenshot-Java_LS_initialization (1)

          ▼ MultiUserLoginPage.login
          ▼ CheLoginPage.waitEclipseCheLoginFormPage
          ▼ CheLoginPage.inputUserNameEclipseCheLoginPage username: "admin"
          ▼ CheLoginPage.inputPaswordEclipseCheLoginPage password: "admin"
          ▼ CheLoginPage.clickEclipseCheLoginButton
    ✓ Open workspace (4297ms)
          ▼ Ide.waitAndSwitchToIdeFrame
          ▼ Ide.waitPreloaderVisible
          ▼ Ide.waitPreloaderAbsent
          ▼ Ide.waitIde
          ▼ ProjectTree.openProjectTreeContainer
          ▼ Ide.waitLeftToolbarButton
          ▼ Ide.waitAndClickLeftToolbarButton
          ▼ ProjectTree.waitProjectTreeContainer
          ▼ ProjectTree.waitProjectImported "petclinic" rootSubItem: "src"
          ▼ ProjectTree.expandItem "petclinic"
          ▼ ProjectTree.waitItemExpanded "petclinic"
          ▼ ProjectTree.waitItemExpanded "petclinic"
    ✓ Wait for workspace readiness (67402ms)

  Language server validation
          ▼ ProjectTree.expandPathAndOpenFile "petclinic/src/main/java/org/springframework/samples/petclinic" filename: PetClinicApplication.java
          ▼ ProjectTree.expandPath "petclinic/src/main/java/org/springframework/samples/petclinic"
          ▼ ProjectTree.expandItem "petclinic"
          ▼ ProjectTree.waitItemExpanded "petclinic"
          ▼ ProjectTree.expandItem "petclinic/src"
          ▼ ProjectTree.waitItemExpanded "petclinic/src"
          ▼ ProjectTree.expandItem "petclinic/src/main"
          ▼ ProjectTree.waitItemExpanded "petclinic/src/main"
          ▼ ProjectTree.expandItem "petclinic/src/main/java"
          ▼ ProjectTree.waitItemExpanded "petclinic/src/main/java"
          ▼ ProjectTree.expandItem "petclinic/src/main/java/org"
          ▼ ProjectTree.waitItemExpanded "petclinic/src/main/java/org"
          ▼ ProjectTree.expandItem "petclinic/src/main/java/org/springframework"
          ▼ ProjectTree.waitItemExpanded "petclinic/src/main/java/org/springframework"
          ▼ ProjectTree.expandItem "petclinic/src/main/java/org/springframework/samples"
          ▼ ProjectTree.waitItemExpanded "petclinic/src/main/java/org/springframework/samples"
          ▼ ProjectTree.expandItem "petclinic/src/main/java/org/springframework/samples/petclinic"
          ▼ ProjectTree.waitItemExpanded "petclinic/src/main/java/org/springframework/samples/petclinic"
          ▼ ProjectTree.clickOnItem "petclinic/src/main/java/org/springframework/samples/petclinic/PetClinicApplication.java"
          ▼ ProjectTree.waitItemSelected "petclinic/src/main/java/org/springframework/samples/petclinic/PetClinicApplication.java"
          ▼ Editor.waitEditorOpened "PetClinicApplication.java"
          ▼ Editor.waitTab "PetClinicApplication.java"
          ▼ Editor.selectTab "PetClinicApplication.java"
          ▼ Editor.waitTab "PetClinicApplication.java"
          ▼ Editor.clickOnTab "PetClinicApplication.java"
          ▼ Editor.waitTabFocused "PetClinicApplication.java"
          ▼ Ide.checkLsInitializationStart
          ▼ Ide.waitStatusBarContains "Activating Language Support for Java"
Known flakiness has occurred https://github.com/eclipse/che/issues/17864
          ▼ Ide.waitStatusBarContains "Activating Java Test Runner"
    1) Java LS initialization


  2 passing (5m)
  1 failing

  1) Language server validation
       Java LS initialization:
     TimeoutError: Wait timed out after 181107ms
      at /tmp/e2e/node_modules/selenium-webdriver/lib/promise.js:2201:17
      at ManagedPromise.invokeCallback_ (/tmp/e2e/node_modules/selenium-webdriver/lib/promise.js:1376:14)
      at TaskQueue.execute_ (/tmp/e2e/node_modules/selenium-webdriver/lib/promise.js:3084:14)
      at TaskQueue.executeNext_ (/tmp/e2e/node_modules/selenium-webdriver/lib/promise.js:3067:27)
      at asyncRun (/tmp/e2e/node_modules/selenium-webdriver/lib/promise.js:2927:27)
      at /tmp/e2e/node_modules/selenium-webdriver/lib/promise.js:668:7
      at <anonymous>
  From: Task: <anonymous wait>
      at scheduleWait (/tmp/e2e/node_modules/selenium-webdriver/lib/promise.js:2188:20)
      at ControlFlow.wait (/tmp/e2e/node_modules/selenium-webdriver/lib/promise.js:2517:12)
      at thenableWebDriverProxy.wait (/tmp/e2e/node_modules/selenium-webdriver/lib/webdriver.js:934:29)
      at Ide.waitStatusBarContains (/tmp/e2e/pageobjects/ide/Ide.ts:214:45)
      at Context.test (/tmp/e2e/tests/e2e_happy_path/HappyPath.spec.ts:90:23)
      at <anonymous>

Test workspace devfile: https://github.com/eclipse/che/blob/60566a14a5c76b4d1b842daf17a9bee1e74b2f2a/tests/e2e/files/happy-path/happy-path-workspace.yaml

Che version

  • latest
  • nightly
  • other: please specify

Screencast

https://youtu.be/MzHjXG4rRSY

Steps to reproduce

https://github.com/eclipse/che/blob/60566a14a5c76b4d1b842daf17a9bee1e74b2f2a/tests/e2e/tests/e2e_happy_path/HappyPath.spec.ts

Expected behavior

There is Activating Java Test Runner or Activating Java Test Runner messages in IDE status bar.

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube 1.1.1
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

Installation method

  • chectl/0.0.20201022-next.2bbd800 linux-x64 node-v10.22.1
chectl server:start --k8spodreadytimeout=180000 --listr-renderer=verbose --platform=minikube --che-operator-cr-patch-yaml=custom-resource-patch.yaml --chenamespace=eclipse-che

where custom-resource-patch.yaml:

spec:
  server:
    cheImage: 'quay.io/eclipse/che-server'
    cheImageTag: 'nightly'
    customCheProperties:
      CHE_LIMITS_USER_WORKSPACES_RUN_COUNT: '-1'
  auth:
    updateAdminPassword: false
  • OperatorHub
  • I don't know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • other: please specify

Eclipse Che Logs

Additional context

@dmytro-ndp dmytro-ndp added kind/bug Outline of a bug - must adhere to the bug report template. e2e-test/failure Issues that is related to a test failures reported by our CI platform and our QE. labels Oct 26, 2020
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Oct 26, 2020
@svor
Copy link
Contributor

svor commented Oct 26, 2020

Hello, it could be happened because redhat/java and redhat/java11 plugins were updated to use latest VSCode java extension. To start Java LS initialization automatically we have to change tested devfile by adding a preference:

preferences:
      java.server.launchMode: Standard

like it was done here: https://github.com/eclipse/che-devfile-registry/pull/297/files#diff-c7c09a22f504c0bad1296d688b29f24ff78dd7cd55dd913765928bbc694b9050R17

@dmytro-ndp dmytro-ndp changed the title Happy path e2e test failed on Java LS validation step because of unexpected popup to import java projects Happy path e2e test failed on Java LS validation step Oct 26, 2020
@dmytro-ndp
Copy link
Contributor Author

@svor: thank you for information!

@dmytro-ndp dmytro-ndp added severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. area/qe and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Oct 26, 2020
@dmytro-ndp dmytro-ndp added this to the 7.21 milestone Oct 26, 2020
@l0rd
Copy link
Contributor

l0rd commented Oct 27, 2020

@svor if that's the default behavior can't we set it at the meta.yaml level?

@benoitf
Copy link
Contributor

benoitf commented Oct 27, 2020

@l0rd #17975

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/qe e2e-test/failure Issues that is related to a test failures reported by our CI platform and our QE. kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Projects
None yet
Development

No branches or pull requests

5 participants