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

E2E Happy path test failed when build application #14486

Closed
4 of 23 tasks
dmytro-ndp opened this issue Sep 9, 2019 · 3 comments
Closed
4 of 23 tasks

E2E Happy path test failed when build application #14486

dmytro-ndp opened this issue Sep 9, 2019 · 3 comments
Assignees
Labels
e2e-test/failure Issues that is related to a test failures reported by our CI platform and our QE. kind/enhancement A feature request - must adhere to the feature request template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.

Comments

@dmytro-ndp
Copy link
Contributor

dmytro-ndp commented Sep 9, 2019

Describe the bug

There is Happy path test which validates workspace build and run. It failed on waiting of [INFO] BUILD SUCCESS in build output. Build didn't start because there was additional popup appeared on screen after the task che: build-file-output had entered:
screenshot-Build_application_2019-09-09

Happy path tests log
################## Launch Information ##################
  TS_SELENIUM_BASE_URL: http://che-che.10.0.151.28.nip.io
  TS_SELENIUM_HEADLESS: true

  TS_SELENIUM_DEFAULT_ATTEMPTS: 5
  TS_SELENIUM_DEFAULT_POLLING: 1000
  TS_SELENIUM_DEFAULT_TIMEOUT: 300000

  TS_SELENIUM_LANGUAGE_SERVER_START_TIMEOUT: 180000
  TS_SELENIUM_LOAD_PAGE_TIMEOUT: 240000
  TS_SELENIUM_START_WORKSPACE_TIMEOUT: 240000
  TS_SELENIUM_WORKSPACE_STATUS_ATTEMPTS: 90
  TS_SELENIUM_WORKSPACE_STATUS_POLLING: 20000
  TS_SELENIUM_PLUGIN_PRECENCE_ATTEMPTS: 20
  TS_SELENIUM_PLUGIN_PRECENCE_POLLING: 2000
  TS_SELENIUM_HAPPY_PATH_WORKSPACE_NAME: petclinic-dev-environment
  TS_SELENIUM_USERNAME: che
  TS_SELENIUM_PASSWORD: 
  TS_SELENIUM_DELAY_BETWEEN_SCREENSHOTS: 1000
  TS_SELENIUM_REPORT_FOLDER: ./report
  TS_SELENIUM_EXECUTION_SCREENCAST: true
  DELETE_SCREENCAST_IF_TEST_PASS: true
  TS_SELENIUM_REMOTE_DRIVER_URL: 

########################################################

Validation of workspace start
(node:100) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
✓ Open workspace (768ms)
✓ Wait workspace running state (103473ms)
✓ Wait until project is imported (14463ms)

Language server validation
✓ Java LS initialization (140616ms)
✓ Error highlighting (5526ms)
✓ Autocomplete (4684ms)
✓ Suggestion (5040ms)
✓ Codenavigation (6075ms)
- Yaml LS initialization

Validation of workspace build and run
1) Build application

8 passing (10m)
1 pending
1 failing

  1. Validation of workspace build and run
    Build application:
    TimeoutError: Waiting for element to be located By(css selector, div[id='/projects/petclinic:/projects/petclinic/build-output.txt'])
    Wait timed out after 300009ms
    at /home/e2e/node_modules/selenium-webdriver/lib/promise.js:2201:17
    at ManagedPromise.invokeCallback_ (/home/e2e/node_modules/selenium-webdriver/lib/promise.js:1376:14)
    at TaskQueue.execute_ (/home/e2e/node_modules/selenium-webdriver/lib/promise.js:3084:14)
    at TaskQueue.executeNext_ (/home/e2e/node_modules/selenium-webdriver/lib/promise.js:3067:27)
    at asyncRun (/home/e2e/node_modules/selenium-webdriver/lib/promise.js:2927:27)
    at /home/e2e/node_modules/selenium-webdriver/lib/promise.js:668:7
    at process._tickCallback (internal/process/next_tick.js:68:7)
    From: Task: Waiting for element to be located By(css selector, div[id='/projects/petclinic:/projects/petclinic/build-output.txt'])
    at scheduleWait (/home/e2e/node_modules/selenium-webdriver/lib/promise.js:2188:20)
    at ControlFlow.wait (/home/e2e/node_modules/selenium-webdriver/lib/promise.js:2517:12)
    at thenableWebDriverProxy.wait (/home/e2e/node_modules/selenium-webdriver/lib/webdriver.js:934:29)
    at DriverHelper. (/home/e2e/utils/DriverHelper.ts:84:62)
    at Generator.next ()
    at /home/e2e/dist/utils/DriverHelper.js:19:71
    at new Promise ()
    at __awaiter (/home/e2e/dist/utils/DriverHelper.js:15:12)
    at DriverHelper.waitVisibility (/home/e2e/dist/utils/DriverHelper.js:78:16)
    at DriverHelper. (/home/e2e/utils/DriverHelper.ts:185:52)
    at Generator.next ()
    at /home/e2e/dist/utils/DriverHelper.js:19:71
    at new Promise ()
    at __awaiter (/home/e2e/dist/utils/DriverHelper.js:15:12)
    at DriverHelper.waitAndClick (/home/e2e/dist/utils/DriverHelper.js:171:16)
    at ProjectTree. (/home/e2e/pageobjects/ide/ProjectTree.ts:79:33)
    at Generator.next ()
    at fulfilled (/home/e2e/dist/pageobjects/ide/ProjectTree.js:16:58)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Build details: https://codeready-workspaces-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/Che-Theia-PR-check-E2E-Happy-path-tests-against-K8S__reserved/90/

Screencast: https://youtu.be/lPz_Gg2PpJU

Che version

  • latest
  • nightly
  • other: please specify

E2E happy path tests

from https://github.com/eclipse/che master

Che-Theia version

from https://github.com/eclipse/che-theia master

Steps to reproduce

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

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • 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:next
  • che-operator
  • minishift-addon
  • I don't know

Environment

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

Additional context

@dmytro-ndp dmytro-ndp added kind/bug Outline of a bug - must adhere to the bug report template. area/editor/theia Issues related to the che-theia IDE of Che labels Sep 9, 2019
@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 Sep 9, 2019
@rhopp
Copy link
Contributor

rhopp commented Sep 9, 2019

Cause: eclipse-theia/theia#5877 -> We need to adapt to this in our tests.

@dmytro-ndp dmytro-ndp added team/che-qe e2e-test/failure Issues that is related to a test failures reported by our CI platform and our QE. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. and removed area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template. labels Sep 9, 2019
@ibuziuk ibuziuk removed the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Sep 9, 2019
@l0rd
Copy link
Contributor

l0rd commented Sep 9, 2019

Yes I agree with @rhopp here: this looks like an enhancement. We should adapt tests.

@rhopp
Copy link
Contributor

rhopp commented Sep 9, 2019

Assigning Maxim, as he is already working on this. What's the status & estimate, @musienko-maxim ?

@dmytro-ndp dmytro-ndp added the kind/enhancement A feature request - must adhere to the feature request template. label Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e-test/failure Issues that is related to a test failures reported by our CI platform and our QE. kind/enhancement A feature request - must adhere to the feature request 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

6 participants