Project

General

Profile

Actions

Bug #41814

closed

mgr-dashboard-frontend-unittests fails

Added by Kefu Chai over 4 years ago. Updated about 3 years ago.

Status:
Can't reproduce
Priority:
High
Assignee:
Category:
General
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

186/186 Test #137: mgr-dashboard-frontend-unittests ........***Failed  678.81 sec

> ceph-dashboard@0.0.0 build /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/frontend
> npm run env_build && ng build "--prod" "--progress=false" 

> ceph-dashboard@0.0.0 env_build /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/frontend
> cp src/environments/environment.tpl.ts src/environments/environment.prod.ts && cp src/environments/environment.tpl.ts src/environments/environment.ts  && node ./environment.build.js

Environment variables have been set

chunk {0} runtime-es2015.e835b1c049f7e358771d.js (runtime) 2.32 kB [entry] [rendered]
chunk {1} common-es2015.5092e61e584628dfece5.js (common) 2.96 kB  [rendered]
chunk {2} 2-es2015.68fb2d1261084387f201.js () 214 kB  [rendered]
chunk {3} main-es2015.a9d3a84eb1e5f8f61167.js (main) 6.39 MB [initial] [rendered]
chunk {4} polyfills-es2015.1d6e8462de8c8683f8e9.js (polyfills) 36.4 kB [initial] [rendered]
chunk {5} styles.f35d582a84756b843368.css (styles) 198 kB [initial] [rendered]
chunk {6} 6-es2015.f2abf695d6f73693e435.js () 231 kB  [rendered]
chunk {7} 7-es2015.fd25b5d776ae395e043c.js () 148 kB  [rendered]
chunk {8} 8-es2015.02fefea91d972f9c81b4.js () 156 kB  [rendered]
chunk {9} 9-es2015.8e0a0c0eebd6a5de3096.js () 51 kB  [rendered]
chunk {scripts} scripts.76632aba1e576c7cc54a.js (scripts) 205 kB [entry] [rendered]
Date: 2019-09-13T08:31:31.465Z - Hash: 9e4c082c18ec3a6022a8 - Time: 203114ms

chunk {0} common-es5.63d725207a1a9c207a16.js (common) 2.97 kB  [rendered]
chunk {1} runtime-es5.98265e3e91f314a01772.js (runtime) 2.32 kB [entry] [rendered]
chunk {2} 2-es5.f6e838ddfa546c74b087.js () 223 kB  [rendered]
chunk {3} main-es5.402fdeed06a03215865f.js (main) 6.54 MB [initial] [rendered]
chunk {4} polyfills-es5.3ba0a0da99f3fa085624.js (polyfills) 113 kB [initial] [rendered]
chunk {5} 5-es5.b381d8a6d394091a5d4c.js () 234 kB  [rendered]
chunk {6} 6-es5.6e2c94d729638f017c16.js () 149 kB  [rendered]
chunk {7} 7-es5.fa81e0ce7ed5e535f19a.js () 159 kB  [rendered]
chunk {8} 8-es5.c58c1bce633980121c61.js () 51.1 kB  [rendered]
chunk {scripts} scripts.76632aba1e576c7cc54a.js (scripts) 205 kB [entry] [rendered]
Date: 2019-09-13T08:34:26.219Z - Hash: 7d4b4ef7f1d8b7c894c0 - Time: 174268ms

> ceph-dashboard@0.0.0 test:ci /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/frontend
> npm run test:config && JEST_SILENT_REPORTER_DOTS=true jest --coverage --reporters jest-silent-reporter

> ceph-dashboard@0.0.0 test:config /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/frontend
> if [ ! -e 'src/unit-test-configuration.ts' ]; then cp 'src/unit-test-configuration.ts.sample' 'src/unit-test-configuration.ts'; fi

..........
  ● PoolDetailsComponent › Pool details tabset › current active status of tabs should not change when selection is same with previour selection

    HttpErrorResponse: Http failure response for api/summary: 0 Unknown Error

    Error: 

      72 |     });
      73 | 
    > 74 |     it('current active status of tabs should not change when selection is same with previour selection', () => {
         |     ^
      75 |       fixture.detectChanges();
      76 |       const tabs = poolDetailsComponent.tabsetChild.tabs;
      77 |       expect(tabs[0].active).toBeTruthy();

      at new Spec (node_modules/jest-jasmine2/build/jasmine/Spec.js:116:22)
      at env.(anonymous function) (node_modules/jest-preset-angular/zone-patch/index.js:84:27)
      at src/app/ceph/pool/pool-details/pool-details.component.spec.ts:74:5
      at ZoneDelegate.Object.<anonymous>.ZoneDelegate.invoke (node_modules/zone.js/dist/zone.js:391:26)
      at Zone.Object.<anonymous>.Zone.run (node_modules/zone.js/dist/zone.js:150:43)
      at Suite.<anonymous> (node_modules/jest-preset-angular/zone-patch/index.js:40:21)
      at env.(anonymous function) (node_modules/jest-preset-angular/zone-patch/index.js:69:27)
      at src/app/ceph/pool/pool-details/pool-details.component.spec.ts:36:3
      at ZoneDelegate.Object.<anonymous>.ZoneDelegate.invoke (node_modules/zone.js/dist/zone.js:391:26)
      at Zone.Object.<anonymous>.Zone.run (node_modules/zone.js/dist/zone.js:150:43)
      at Suite.<anonymous> (node_modules/jest-preset-angular/zone-patch/index.js:40:21)
      at env.(anonymous function) (node_modules/jest-preset-angular/zone-patch/index.js:69:27)
      at Object.<anonymous> (src/app/ceph/pool/pool-details/pool-details.component.spec.ts:12:1)

...............................................................................................................................................................................................................

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ceph-dashboard@0.0.0 test:ci: `npm run test:config && JEST_SILENT_REPORTER_DOTS=true jest --coverage --reporters jest-silent-reporter`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ceph-dashboard@0.0.0 test:ci script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jenkins-build/.npm/_logs/2019-09-13T08_37_53_051Z-debug.log
Linting "ceph-dashboard"...
no-use-before-declare is deprecated. Since TypeScript 2.9. Please use the built-in compiler checks instead.
All files pass linting.
Linting "ceph-dashboard-e2e"...
All files pass linting.
All files pass linting

Scanned 128 files, no errors found (247 ms).

> ceph-dashboard@0.0.0 i18n:extract /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/frontend
> ng xi18n --i18n-format xlf --i18n-locale en-US --output-path locale --progress=false && ngx-extractor -i 'src/**/*.ts' -f xlf -o src/locale/messages.xlf -l en-US
Actions #1

Updated by Tiago Melo over 4 years ago

  • Category set to 132
Actions #2

Updated by Kefu Chai over 4 years ago

  • Priority changed from Normal to High

i am seeing this more often recently.

Actions #3

Updated by Kefu Chai over 4 years ago

  • Assignee set to Ricardo Marques

Ricardo, could you take a look at this? or assign it to the guy who's more familiar with this part?

Actions #4

Updated by Ricardo Marques over 4 years ago

  • Assignee changed from Ricardo Marques to Tiago Melo

Assigned to Tiago Melo

Actions #5

Updated by Tiago Melo over 4 years ago

I have been running this test on a loop all afternoon and could not reproduce the error.
Could you share a link for a jenkins job where this has happened?

Actions #6

Updated by Kefu Chai over 4 years ago

  • Status changed from New to Need More Info
  • Assignee changed from Tiago Melo to Kefu Chai

Tiago, i will try to find a "make check" failure caused by this issue. and zip it and upload it.

Actions #7

Updated by Kefu Chai over 4 years ago

  • Status changed from Need More Info to Can't reproduce

i am closing this issue. as i cannot find a failure like this anymore.

Actions #8

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 132 to General
Actions

Also available in: Atom PDF