You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/02/22 09:04:47 UTC

[GitHub] [cloudstack] utchoang opened a new pull request #4719: UI Test: Fix UI test failures in master

utchoang opened a new pull request #4719:
URL: https://github.com/apache/cloudstack/pull/4719


   ### Description
   
   Fixes #4711
   For Master branch
   <!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
   
   <!-- For new features, provide link to FS, dev ML discussion etc. -->
   <!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. -->
   
   <!-- When "Fixes: #<id>" is specified, the issue/PR will automatically be closed when this PR gets merged -->
   <!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
   <!-- Fixes: # -->
   
   <!--- ********************************************************************************* -->
   <!--- NOTE: AUTOMATATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE DOCUMENTATION. -->
   <!--- PLEASE PUT AN 'X' in only **ONE** box -->
   <!--- ********************************************************************************* -->
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [x] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   - [ ] Major
   - [x] Minor
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [x] Minor
   - [ ] Trivial
   
   
   ### Screenshots (if appropriate):
   UI test
   After fixes:
   ![image](https://user-images.githubusercontent.com/13766648/108686112-8e822400-7527-11eb-9e2a-1201c80addc9.png)
   
   
   ### How Has This Been Tested?
   <!-- Please describe in detail how you tested your changes. -->
   <!-- Include details of your testing environment, and the tests you ran to -->
   <!-- see how your change affects other areas of the code, etc. -->
   
   
   <!-- Please read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/master/CONTRIBUTING.md) document -->
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4719: UI Test: Fix UI test failures in master

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4719:
URL: https://github.com/apache/cloudstack/pull/4719#issuecomment-784110063


   UI build: :heavy_check_mark:
   Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/4719 (JID-3840)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd merged pull request #4719: UI Test: Fix UI test failures in master

Posted by GitBox <gi...@apache.org>.
rhtyd merged pull request #4719:
URL: https://github.com/apache/cloudstack/pull/4719


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on pull request #4719: UI Test: Fix UI test failures in master

Posted by GitBox <gi...@apache.org>.
rhtyd commented on pull request #4719:
URL: https://github.com/apache/cloudstack/pull/4719#issuecomment-784110977


   @utchoang same as the other PR, go to Travis's first job -> see the install.sh... block:
   
   ```
   > cloudstack-ui@1.0.0 lint /home/travis/build/apache/cloudstack/ui
   > vue-cli-service lint
    DONE  No lint errors found!
   > cloudstack-ui@1.0.0 test:unit /home/travis/build/apache/cloudstack/ui
   > vue-cli-service test:unit
   Browserslist: caniuse-lite is outdated. Please run:
   npx browserslist@latest --update-db
   [vue-jest]: Less are not currently compiled by vue-jest
    FAIL  tests/unit/views/AutogenView.spec.js (22.379s)
     ● Console
       console.error node_modules/vue/dist/vue.runtime.common.dev.js:621
         [Vue warn]: Error in nextTick: "Error: expect(received).toEqual(expected) // deep equality
         
         - Expected
         + Received
         
           Array [
             Object {
         -     "name": "id",
         +     "name": "column1",
               "type": "string",
             },
             Object {
         -     "name": "name",
         +     "name": "column2",
               "type": "string",
             },
             Object {
         -     "name": "column1",
         +     "name": "column3",
               "type": "string",
             },
             Object {
         -     "name": "column2",
         +     "name": "name",
               "type": "string",
             },
             Object {
         -     "name": "column3",
         +     "name": "id",
               "type": "string",
             },
           ]"
         
         found in
         
         ---> <Resource>
                <Root>
       console.error node_modules/vue/dist/vue.runtime.common.dev.js:1884
         { Error: expect(received).toEqual(expected) // deep equality
         
         - Expected
         + Received
         
           Array [
             Object {
         -     "name": "id",
         +     "name": "column1",
               "type": "string",
             },
             Object {
         -     "name": "name",
         +     "name": "column2",
               "type": "string",
             },
             Object {
         -     "name": "column1",
         +     "name": "column3",
               "type": "string",
             },
             Object {
         -     "name": "column2",
         +     "name": "name",
               "type": "string",
             },
             Object {
         -     "name": "column3",
         +     "name": "id",
               "type": "string",
             },
           ]
             at VueComponent.call (/home/travis/build/apache/cloudstack/ui/tests/unit/views/AutogenView.spec.js:1080:51)
             at Array.<anonymous> (/home/travis/build/apache/cloudstack/ui/node_modules/vue/dist/vue.runtime.common.dev.js:1976:12)
             at flushCallbacks (/home/travis/build/apache/cloudstack/ui/node_modules/vue/dist/vue.runtime.common.dev.js:1902:5)
           matcherResult:
            { actual: [ [Object], [Object], [Object], [Object], [Object] ],
              expected: [ [Object], [Object], [Object], [Object], [Object] ],
              message: [Function],
              name: 'toEqual',
              pass: false } }
       console.error node_modules/vue/dist/vue.runtime.common.dev.js:621
         [Vue warn]: Error in nextTick: "Error: expect(received).toEqual(expected) // deep equality
         
         - Expected
         + Received
         
           Array [
             Object {
         -     "name": "id",
         +     "name": "column1",
               "type": "string",
             },
             Object {
         -     "name": "name",
         +     "name": "column2",
               "type": "string",
             },
             Object {
         -     "name": "column1",
         +     "name": "column3",
               "type": "string",
             },
             Object {
         -     "name": "column2",
         +     "name": "name",
               "type": "string",
             },
             Object {
         -     "name": "column3",
         +     "name": "id",
               "type": "string",
             },
           ]"
         
         found in
         
         ---> <Resource>
                <Root>
       console.error node_modules/vue/dist/vue.runtime.common.dev.js:1884
         { Error: expect(received).toEqual(expected) // deep equality
         
         - Expected
         + Received
         
           Array [
             Object {
         -     "name": "id",
         +     "name": "column1",
               "type": "string",
             },
             Object {
         -     "name": "name",
         +     "name": "column2",
               "type": "string",
             },
             Object {
         -     "name": "column1",
         +     "name": "column3",
               "type": "string",
             },
             Object {
         -     "name": "column2",
         +     "name": "name",
               "type": "string",
             },
             Object {
         -     "name": "column3",
         +     "name": "id",
               "type": "string",
             },
           ]
             at VueComponent.call (/home/travis/build/apache/cloudstack/ui/tests/unit/views/AutogenView.spec.js:1129:51)
             at Array.<anonymous> (/home/travis/build/apache/cloudstack/ui/node_modules/vue/dist/vue.runtime.common.dev.js:1976:12)
             at flushCallbacks (/home/travis/build/apache/cloudstack/ui/node_modules/vue/dist/vue.runtime.common.dev.js:1902:5)
           matcherResult:
            { actual: [ [Object], [Object], [Object], [Object], [Object] ],
              expected: [ [Object], [Object], [Object], [Object], [Object] ],
              message: [Function],
              name: 'toEqual',
              pass: false } }
     ● Views > AutogenView.vue › Methods › execAction() › check currentAction params and paramsField when execAction() is called with args is exists
       expect(received).toEqual(expected) // deep equality
       - Expected
       + Received
         Array [
           Object {
       -     "name": "id",
       +     "name": "column1",
             "type": "string",
           },
           Object {
       -     "name": "name",
       +     "name": "column2",
             "type": "string",
           },
           Object {
       -     "name": "column1",
       +     "name": "column3",
             "type": "string",
           },
           Object {
       -     "name": "column2",
       +     "name": "name",
             "type": "string",
           },
           Object {
       -     "name": "column3",
       +     "name": "id",
             "type": "string",
           },
         ]
         1078 |           })
         1079 | 
       > 1080 |           expect(wrapper.vm.currentAction.params).toEqual([
              |                                                   ^
         1081 |             { name: 'id', type: 'string' },
         1082 |             { name: 'name', type: 'string' },
         1083 |             { name: 'column1', type: 'string' },
         at VueComponent.call (tests/unit/views/AutogenView.spec.js:1080:51)
         at Array.<anonymous> (node_modules/vue/dist/vue.runtime.common.dev.js:1976:12)
         at flushCallbacks (node_modules/vue/dist/vue.runtime.common.dev.js:1902:5)
     ● Views > AutogenView.vue › Methods › execAction() › check currentAction paramsField and listUuidOpts() is called when execAction() is called
       expect(received).toEqual(expected) // deep equality
       - Expected
       + Received
         Array [
           Object {
       -     "name": "id",
       +     "name": "column1",
             "type": "string",
           },
           Object {
       -     "name": "name",
       +     "name": "column2",
             "type": "string",
           },
           Object {
       -     "name": "column1",
       +     "name": "column3",
             "type": "string",
           },
           Object {
       -     "name": "column2",
       +     "name": "name",
             "type": "string",
           },
           Object {
       -     "name": "column3",
       +     "name": "id",
             "type": "string",
           },
         ]
         1127 |           })
         1128 | 
       > 1129 |           expect(wrapper.vm.currentAction.params).toEqual([
              |                                                   ^
         1130 |             { name: 'id', type: 'string' },
         1131 |             { name: 'name', type: 'string' },
         1132 |             { name: 'column1', type: 'string' },
         at VueComponent.call (tests/unit/views/AutogenView.spec.js:1129:51)
         at Array.<anonymous> (node_modules/vue/dist/vue.runtime.common.dev.js:1976:12)
         at flushCallbacks (node_modules/vue/dist/vue.runtime.common.dev.js:1902:5)
    PASS  tests/unit/views/compute/MigrateWizard.spec.js
    PASS  tests/unit/components/widgets/Status.spec.js
    PASS  tests/unit/components/view/ActionButton.spec.js
   =============================== Coverage summary ===============================
   Statements   : 4.64% ( 712/15335 )
   Branches     : 5.68% ( 439/7725 )
   Functions    : 2.48% ( 125/5049 )
   Lines        : 4.64% ( 708/15250 )
   ================================================================================
   Test Suites: 1 failed, 3 passed, 4 total
   Tests:       2 failed, 134 passed, 136 total
   Snapshots:   0 total
   Time:        82.054s
   Ran all test suites.
   ```
   
   The other bug of course is that on failure of npm run:unit, does not actually fail the first job ^^, something needs fixing at:https://github.com/apache/cloudstack/blob/4.15/tools/travis/install.sh#L41 (for 4.15 branch, don't raise PR for both master and 4.15, raise just for 4.15 branch, we'll fwd merge such PRs to master which will get the same fixes). cc @shwstppr @DaanHoogland 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on pull request #4719: UI Test: Fix UI test failures in master

Posted by GitBox <gi...@apache.org>.
rhtyd commented on pull request #4719:
URL: https://github.com/apache/cloudstack/pull/4719#issuecomment-784927740


   In line with https://github.com/apache/cloudstack/pull/4718 assuming  will merge/fwd merge.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] utchoang edited a comment on pull request #4719: UI Test: Fix UI test failures in master

Posted by GitBox <gi...@apache.org>.
utchoang edited a comment on pull request #4719:
URL: https://github.com/apache/cloudstack/pull/4719#issuecomment-784728690


   @rhtyd All test passed.
   ![image](https://user-images.githubusercontent.com/13766648/108944076-a1facf80-768c-11eb-9b3a-ffa4b37711b7.png)
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] utchoang commented on pull request #4719: UI Test: Fix UI test failures in master

Posted by GitBox <gi...@apache.org>.
utchoang commented on pull request #4719:
URL: https://github.com/apache/cloudstack/pull/4719#issuecomment-784728690


   @rhtyd All test passed.
   ![Uploading image.png…]()
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] DaanHoogland commented on pull request #4719: UI Test: Fix UI test failures in master

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on pull request #4719:
URL: https://github.com/apache/cloudstack/pull/4719#issuecomment-784104018


   @blueorangutan ui


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on pull request #4719: UI Test: Fix UI test failures in master

Posted by GitBox <gi...@apache.org>.
rhtyd commented on pull request #4719:
URL: https://github.com/apache/cloudstack/pull/4719#issuecomment-784101036


   LGTM, job #1 passing on Travis


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4719: UI Test: Fix UI test failures in master

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4719:
URL: https://github.com/apache/cloudstack/pull/4719#issuecomment-784104902


   @DaanHoogland a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org