Bug 1990464 - [e2e][automation] protractor tests are not able to run on release-4.8
Summary: [e2e][automation] protractor tests are not able to run on release-4.8
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.8.z
Assignee: Vojtech Szocs
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On: 1981399
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-05 13:09 UTC by Guohua Ouyang
Modified: 2023-09-15 01:13 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1981399
Environment:
Last Closed: 2021-09-29 07:44:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Guohua Ouyang 2021-08-05 13:09:44 UTC
+++ This bug was initially created as a clone of Bug #1981399 +++

Description of problem:
$ ./test-protractor.sh kubevirt
+ cd frontend
+ yarn install
yarn install v1.22.10
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "jquery.1" is incompatible with requested version "jquery@~3.4.1"
warning Resolution field "jquery.1" is incompatible with requested version "jquery@~3.4.1"
warning Resolution field "minimist.5" is incompatible with requested version "minimist.8"
warning Resolution field "minimist.5" is incompatible with requested version "minimist.8"
warning Resolution field "minimist.5" is incompatible with requested version "minimist@~0.0.1"
success Already up-to-date.
$ yarn generate
yarn run v1.22.10
$ yarn generate-graphql && yarn build-plugin-sdk
$ graphql-codegen --config graphql-codegen.yml
  ✔ Parse configuration
  ✔ Generate outputs
$ yarn --cwd packages/console-dynamic-plugin-sdk build
$ yarn clean && yarn validate && yarn generate && yarn tsc
$ rm -rf ./dist
$ yarn ts-node ./scripts/validate-extensions.ts
$ ts-node -O '{"module":"commonjs"}' ./scripts/validate-extensions.ts
Validating Console extension types
Warnings (30)
    Extension type 'PVCCreateProp' has no JSDoc comments
    Extension type 'PVCStatus' has no JSDoc comments
    Extension type 'PVCAlert' has no JSDoc comments
    Extension type 'PVCDelete' has no JSDoc comments
    Extension type 'AddAction' has no JSDoc comments
    Extension type 'AddActionGroup' has no JSDoc comments
    Extension type 'ClusterGlobalConfig' has no JSDoc comments
    Extension type 'HrefNavItem' has no JSDoc comments
    Extension type 'ResourceNSNavItem' has no JSDoc comments
    Extension type 'ResourceClusterNavItem' has no JSDoc comments
    Extension type 'Separator' has no JSDoc comments
    Extension type 'NavSection' has no JSDoc comments
    Extension type 'FileUpload' has no JSDoc comments
    Extension type 'AlertAction' has no JSDoc comments
    Extension type 'AlertAction' property 'alert' has no JSDoc comments
    Extension type 'AlertAction' property 'text' has no JSDoc comments
    Extension type 'AlertAction' property 'action' has no JSDoc comments
    Extension type 'StorageProvider' has no JSDoc comments
    Extension type 'StorageProvider' property 'name' has no JSDoc comments
    Extension type 'StorageProvider' property 'Component' has no JSDoc comments
    Extension type 'TelemetryListener' has no JSDoc comments
    Extension type 'CatalogItemType' has no JSDoc comments
    Extension type 'CatalogItemProvider' has no JSDoc comments
    Extension type 'CatalogItemFilter' has no JSDoc comments
    Extension type 'TopologyDisplayFilters' property 'getTopologyFilters' has no JSDoc comments
    Extension type 'TopologyDisplayFilters' property 'applyDisplayOptions' has no JSDoc comments
    Extension type 'TopologyDecoratorProvider' property 'id' has no JSDoc comments
    Extension type 'TopologyDecoratorProvider' property 'priority' has no JSDoc comments
    Extension type 'TopologyDecoratorProvider' property 'quadrant' has no JSDoc comments
    Extension type 'TopologyDecoratorProvider' property 'decorator' has no JSDoc comments
$ yarn generate-schema && yarn generate-doc && yarn generate-pkg-assets
$ yarn ts-node ./scripts/generate-schema.ts
$ ts-node -O '{"module":"commonjs"}' ./scripts/generate-schema.ts
Generating Console plugin JSON schemas
schema/plugin-package.json
schema/plugin-package.js
schema/console-extensions.json
schema/console-extensions.js
schema/plugin-manifest.json
schema/plugin-manifest.js
$ yarn ts-node ./scripts/generate-doc.ts
$ ts-node -O '{"module":"commonjs"}' ./scripts/generate-doc.ts
Generating Console plugin documentation
dist/doc/console-extensions.md
$ yarn ts-node ./scripts/generate-pkg-assets.ts
$ ts-node -O '{"module":"commonjs"}' ./scripts/generate-pkg-assets.ts
Generating Console plugin package.json
dist/package.json
Copying schema, license, and readme files
$ /home/gouyang/console/frontend/node_modules/.bin/tsc
Done in 31.98s.
Done in 33.57s.
+ '[' '' == firefox ']'
+ '[' -n '' ']'
+ yarn run webdriver-update --gecko=false
yarn run v1.22.10
$ webdriver-manager update --gecko=false
[21:28:02] I/file_manager - creating folder /home/gouyang/console/frontend/node_modules/webdriver-manager/selenium
[21:28:02] I/config_source - curl -o/home/gouyang/console/frontend/node_modules/webdriver-manager/selenium/standalone-response.xml https://selenium-release.storage.googleapis.com/
[21:28:02] I/config_source - curl -o/home/gouyang/console/frontend/node_modules/webdriver-manager/selenium/chrome-response.xml https://chromedriver.storage.googleapis.com/
[21:28:04] I/downloader - curl -o/home/gouyang/console/frontend/node_modules/webdriver-manager/selenium/selenium-server-standalone-3.141.59.jar https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar
[21:28:04] I/downloader - curl -o/home/gouyang/console/frontend/node_modules/webdriver-manager/selenium/chromedriver_91.0.4472.101.zip https://chromedriver.storage.googleapis.com/91.0.4472.19/chromedriver_linux64.zip
[21:28:06] I/update - chromedriver: unzipping chromedriver_91.0.4472.101.zip
[21:28:06] I/update - chromedriver: setting permissions to 0755 for /home/gouyang/console/frontend/node_modules/webdriver-manager/selenium/chromedriver_91.0.4472.101
Done in 4.93s.
+ '[' 1 -gt 0 ']'
+ '[' -n kubevirt ']'
+ yarn run test-protractor-suite --suite kubevirt --params.openshift true
yarn run v1.22.10
$ yarn ts-node ./node_modules/.bin/protractor integration-tests/protractor.conf.ts --suite kubevirt --params.openshift true
$ ts-node -O '{"module":"commonjs"}' ./node_modules/.bin/protractor integration-tests/protractor.conf.ts --suite kubevirt --params.openshift true
Report destination:   gui_test_screenshots/protractor-report.html
[21:28:08] I/launcher - Running 1 instances of WebDriver
[21:28:08] I/direct - Using ChromeDriver directly...
I0712 21:28:20.896498   26146 request.go:621] Throttling request took 1.177971548s, request: GET:https://api.uit-01.cnv-qe.rhcloud.com:6443/apis/ceph.rook.io/v1?timeout=32s
[21:28:23] E/launcher - Error: Error [ERR_REQUIRE_ESM] [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/gouyang/console/frontend/node_modules/lodash-es/lodash.js
require() of ES modules is not supported.
require() of /home/gouyang/console/frontend/node_modules/lodash-es/lodash.js from /home/gouyang/console/frontend/public/module/k8s/k8s.ts is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename lodash.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/gouyang/console/frontend/node_modules/lodash-es/package.json.

    at Module._extensions..js (internal/modules/cjs/loader.js:1085:13)
    at Object.require.extensions.<computed> [as .js] (/home/gouyang/console/frontend/node_modules/ts-node/dist/index.js:229:20)
    at Module.load (/home/gouyang/console/frontend/node_modules/coffeescript/lib/coffee-script/register.js:45:36)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/home/gouyang/console/frontend/public/module/k8s/k8s.ts:3:11)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Module.m._compile (/home/gouyang/console/frontend/node_modules/ts-node/dist/index.js:234:29)
    at Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Object.require.extensions.<computed> [as .ts] (/home/gouyang/console/frontend/node_modules/ts-node/dist/index.js:236:16)
    at Module.load (/home/gouyang/console/frontend/node_modules/coffeescript/lib/coffee-script/register.js:45:36)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/home/gouyang/console/frontend/public/module/k8s/index.ts:7:10)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Module.m._compile (/home/gouyang/console/frontend/node_modules/ts-node/dist/index.js:234:29)
    at Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Object.require.extensions.<computed> [as .ts] (/home/gouyang/console/frontend/node_modules/ts-node/dist/index.js:236:16)
    at Module.load (/home/gouyang/console/frontend/node_modules/coffeescript/lib/coffee-script/register.js:45:36)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/home/gouyang/console/frontend/packages/kubevirt-plugin/src/models/kubevirtReferenceForModel.ts:4:15)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Module.m._compile (/home/gouyang/console/frontend/node_modules/ts-node/dist/index.js:234:29)
    at Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Object.require.extensions.<computed> [as .ts] (/home/gouyang/console/frontend/node_modules/ts-node/dist/index.js:236:16)
    at Module.load (/home/gouyang/console/frontend/node_modules/coffeescript/lib/coffee-script/register.js:45:36)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/home/gouyang/console/frontend/packages/kubevirt-plugin/src/selectors/vm/vmlike.ts:5:37)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Module.m._compile (/home/gouyang/console/frontend/node_modules/ts-node/dist/index.js:234:29)
    at Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Object.require.extensions.<computed> [as .ts] (/home/gouyang/console/frontend/node_modules/ts-node/dist/index.js:236:16)
    at Module.load (/home/gouyang/console/frontend/node_modules/coffeescript/lib/coffee-script/register.js:45:36)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/home/gouyang/console/frontend/packages/kubevirt-plugin/src/selectors/vm/devices.ts:7:18)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Module.m._compile (/home/gouyang/console/frontend/node_modules/ts-node/dist/index.js:234:29)
    at Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Object.require.extensions.<computed> [as .ts] (/home/gouyang/console/frontend/node_modules/ts-node/dist/index.js:236:16)
    at Module.load (/home/gouyang/console/frontend/node_modules/coffeescript/lib/coffee-script/register.js:45:36)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/home/gouyang/console/frontend/packages/kubevirt-plugin/integration-tests/tests/vm.detail.boot-order.scenario.ts:17:19)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Module.m._compile (/home/gouyang/console/frontend/node_modules/ts-node/dist/index.js:234:29)
    at Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Object.require.extensions.<computed> [as .ts] (/home/gouyang/console/frontend/node_modules/ts-node/dist/index.js:236:16)
    at Module.load (/home/gouyang/console/frontend/node_modules/coffeescript/lib/coffee-script/register.js:45:36)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at /home/gouyang/console/frontend/node_modules/jasmine/lib/jasmine.js:93:5
    at Array.forEach (<anonymous>:null:null)
    at Jasmine.loadSpecs (/home/gouyang/console/frontend/node_modules/jasmine/lib/jasmine.js:92:18)
    at Jasmine.execute (/home/gouyang/console/frontend/node_modules/jasmine/lib/jasmine.js:197:8)
    at /home/gouyang/console/frontend/node_modules/protractor/built/frameworks/jasmine.js:132:15
    at Function.promise (/home/gouyang/console/frontend/node_modules/protractor/node_modules/q/q.js:682:9)
    at /home/gouyang/console/frontend/node_modules/protractor/built/frameworks/jasmine.js:104:14
    at _fulfilled (/home/gouyang/console/frontend/node_modules/protractor/node_modules/q/q.js:834:54)
    at /home/gouyang/console/frontend/node_modules/protractor/node_modules/q/q.js:863:30
    at Promise.promise.promiseDispatch (/home/gouyang/console/frontend/node_modules/protractor/node_modules/q/q.js:796:13)
    at /home/gouyang/console/frontend/node_modules/protractor/node_modules/q/q.js:556:49
    at runSingle (/home/gouyang/console/frontend/node_modules/protractor/node_modules/q/q.js:137:13)
    at flush (/home/gouyang/console/frontend/node_modules/protractor/node_modules/q/q.js:125:13)
    at processTicksAndRejections (internal/process/task_queues.js:77:11)

Closing report
[21:28:23] E/launcher - Process exited with error code 100
error Command failed with exit code 4.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 4.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


Version-Release number of selected component (if applicable):
release-4.8 and master

How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from Yaacov Zamir on 2021-07-12 22:05:18 CST ---

blocker -
It's an automation blocker, but not a release blocker

--- Additional comment from OpenShift Automated Release Tooling on 2021-08-04 13:36:00 CST ---

Elliott changed bug status from MODIFIED to ON_QA.

Comment 1 Yaacov Zamir 2021-08-05 13:15:49 UTC
automation blocker, set blocker flag to (-) because it's testing only issue

Comment 2 Motty Sisam 2021-08-05 14:15:01 UTC
Hello @yzamir 

Because its currently blocking 4.8 for us, is there any workaround for now that could be advised to temp solve it?

Comment 3 Yaacov Zamir 2021-08-05 15:07:12 UTC
(In reply to Motty Sisam from comment #2)
> Hello @yzamir 
> 
> Because its currently blocking 4.8 for us, is there any workaround for now
> that could be advised to temp solve it?

Not that I know of.

We tried to automatically backport the fix [1], but it will need to be done manually.

Adding vszocs who worked on the fix [2] for current master branch.


[1] https://github.com/openshift/console/pull/9646#issuecomment-893440948
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1981399

Comment 4 Motty Sisam 2021-08-21 13:55:52 UTC
Hey @yzamir / @vszocs

I see the changes were merged, could you tell us in which build it should be available for 4.8.1 ?

Thank you

Comment 5 Red Hat Bugzilla 2023-09-15 01:13:14 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


Note You need to log in before you can comment on or make changes to this bug.