Project

General

Profile

Actions

Bug #52682

open

mgr/dashboard: mgr-dashboard-frontend-unittests fails in RbdTrashMoveModalComponent

Added by Brad Hubbard over 2 years ago. Updated over 2 years ago.

Status:
Triaged
Priority:
Normal
Category:
Testing & QA
Target version:
-
% Done:

0%

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

Description

Description of problem

# ctest -R mgr-dashboard-frontend-unittests --output-on-failure
Test project /working/ceph/build                           
    Start 162: mgr-dashboard-frontend-unittests                                                                       
1/1 Test #162: mgr-dashboard-frontend-unittests ...***Failed  383.70 sec
...
> ceph-dashboard@0.0.0 test:ci /working/ceph/src/pybind/mgr/dashboard/frontend                                                                                                                                                              
> jest --clearCache && JEST_SILENT_REPORTER_DOTS=true jest --coverage --reporters jest-silent-reporter                                                                                                                                      

Cleared /tmp/jest_0                                                                                                                                                                                                                         
Browserslist: caniuse-lite is outdated. Please run:                                                                                                                                                                                         
npx browserslist@latest --update-db                                                                                                                                                                                                         

Why you should do it regularly:                                                                                                                                                                                                             
https://github.com/browserslist/browserslist#browsers-data-updating                                                                                                                                                                         
Browserslist: caniuse-lite is outdated. Please run:                                                                                                                                                                                         
npx browserslist@latest --update-db                                                                                                                                                                                                         

Why you should do it regularly:                                                                                                                                                                                                             
https://github.com/browserslist/browserslist#browsers-data-updating                                                                                                                                                                         
Browserslist: caniuse-lite is outdated. Please run:                                                                                                                                                                                         
npx browserslist@latest --update-db                                                                                                                                                                                                         

Why you should do it regularly:                                                                                                                                                                                                             
https://github.com/browserslist/browserslist#browsers-data-updating                                                                                                                                                                         
Browserslist: caniuse-lite is outdated. Please run:                                                                                                                                                                                         
npx browserslist@latest --update-db                                                                                                                                                                                                         

Why you should do it regularly:                                                                                                                                                                                                             
https://github.com/browserslist/browserslist#browsers-data-updating                                                                                                                                                                         
.Browserslist: caniuse-lite is outdated. Please run:                                                                                                                                                                                        
npx browserslist@latest --update-db                                                                                                                                                                                                         

Why you should do it regularly:                                                                                                                                                                                                             
https://github.com/browserslist/browserslist#browsers-data-updating                                                                                                                                                                         
....................................................................................................                                                                                                                                        
  ● RbdTrashMoveModalComponent › should call moveImage › with delay < 0                                                                                                                                                                     

    expect(received).toBeGreaterThan(expected)                                                                                                                                                                                              

    Expected: > 76390                                      
    Received:   50399.618                                                                                             

      89 |       const req = httpTesting.expectOne('api/block/image/foo%2Fbar/move_trash');                           
      90 |       req.flush(null);                                                                                     
    > 91 |       expect(req.request.body.delay).toBeGreaterThan(76390);                                                                                                                                                                     
         |                                      ^                                                                                                                                                                                           
      92 |     });                                                                                                                                                                                                                          
      93 |   });                                                                                                                                                                                                                            
      94 | });                                                                                                                                                                                                                              

      at src/app/ceph/block/rbd-trash-move-modal/rbd-trash-move-modal.component.spec.ts:91:38                                                                                                                                               
      at ZoneDelegate.Object.<anonymous>.ZoneDelegate.invoke (node_modules/zone.js/dist/zone.js:386:30)                                                                                                                                     
      at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (node_modules/zone.js/dist/proxy.js:117:43)                                                                                                                                
      at ZoneDelegate.Object.<anonymous>.ZoneDelegate.invoke (node_modules/zone.js/dist/zone.js:385:36)                                                                                                                                     
      at Zone.Object.<anonymous>.Zone.run (node_modules/zone.js/dist/zone.js:143:47)                                                                                                                                                        

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

npm ERR! code ELIFECYCLE                                                                                                                                                                                                                    
npm ERR! errno 1
...
0% tests passed, 1 tests failed out of 1                                                                                                                                                                                                    

Total Test time (real) = 383.73 sec                                                                                                                                                                                                         

The following tests FAILED:                                                                                                                                                                                                                 
        162 - mgr-dashboard-frontend-unittests (Failed)                                                                                                                                                                                     
Errors while running CTest 

Environment

  • ceph version string: ecd57a59dfcbe256c1eb5291f5702c446c20b3b9
  • Platform (OS/distro/release): VERSION="20.04.3 LTS (Focal Fossa)" container
  • Cluster details (nodes, monitors, OSDs): n/a
  • Did it happen on a stable environment or after a migration/upgrade?: n/a
  • Browser used (e.g.: Version 86.0.4240.198 (Official Build) (64-bit)): n/a

How reproducible

Steps:

Start container.

  1. apt-get update
  2. cd /ceph
  3. ./install-deps.sh
  4. ./do_cmake.sh
  5. ninja -j8 all tests
  6. ctest -R mgr-dashboard-frontend-unittests --output-on-failure
Actions #1

Updated by Ernesto Puerta over 2 years ago

  • Status changed from New to Triaged
  • Assignee set to Alfonso Martínez
  • Source set to Development
Actions #2

Updated by Brad Hubbard over 2 years ago

Saw this again on commit 5dda7997733e0ccc66d1437ac9b5754be667c2fd (HEAD -> wip-yuriw-master-11.19.21, ceph-ci/wip-yuriw-master-11.19.21)

Same process to reproduce.

$ podman pull ubuntu:focal
$ podman run -it --rm --privileged -v./src/ceph:/working:z ubuntu:focal
# cd /working
# ./install-deps.sh
# ./do_cmake.sh
# ninja -j8 all tests
# ctest -R mgr-dashboard-frontend-unittests --output-on-failure

Actions #3

Updated by Ernesto Puerta over 2 years ago

This might be a timezone conversion issue (the received value is 14 hours while the original should be closer to 24 or 22 hours).

Actions #4

Updated by Brad Hubbard over 2 years ago

Interesting. When running install-deps.sh on Ubuntu containers you are prompted to select a timezone when it installs the tzdata package (we should make it so it doesn't prompt, but that's another story and not high on my priority list) and I usually select my location (Brisbane, Australia).

Actions

Also available in: Atom PDF