Skip to content
Failed

Console Output

Started by user Samih Mustafa
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building in workspace /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests
The recommended git tool is: NONE
No credentials specified
 > git rev-parse --resolve-git-dir /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/.git # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/UstadMobile/ZIM2Xapi.git # timeout=10
Fetching upstream changes from https://github.com/UstadMobile/ZIM2Xapi.git
 > git --version # timeout=10
 > git --version # 'git version 2.43.0'
 > git fetch --tags --force --progress -- https://github.com/UstadMobile/ZIM2Xapi.git +refs/heads/*:refs/remotes/origin/* # timeout=10
Seen branch in repository origin/main
Seen branch in repository origin/shrink-xapi
Seen branch in repository origin/xapi-statements
Seen 3 remote branches
 > git show-ref --tags -d # timeout=10
Checking out Revision f061c3bb1f09a442fbd47cef01e2c7adfc20dc47 (origin/xapi-statements)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f f061c3bb1f09a442fbd47cef01e2c7adfc20dc47 # timeout=10
Commit message: "no color test for jenkins"
 > git rev-list --no-walk 676bd35e0ae04cce910a56d32e8a55d8a2471829 # timeout=10
[Gradle] - Launching build.
[Zim2Xapi Cypress Tests] $ "/home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/gradlew" -Pktorbundleproductionjs=true clean build
> Task :app:clean
> Task :app:checkKotlinGradlePluginConfigurationErrors SKIPPED
> Task :app:processResources
> Task :app:processTestResources NO-SOURCE
> Task :app:compileKotlin
> Task :app:compileJava NO-SOURCE
> Task :app:classes
> Task :app:jar
> Task :app:startScripts
> Task :app:distTar
> Task :app:distZip
> Task :app:assemble
> Task :app:copyJarToJsTests
> Task :app:compileTestKotlin
> Task :app:compileTestJava NO-SOURCE
> Task :app:testClasses UP-TO-DATE
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
> Task :app:test
> Task :app:check
> Task :app:build

BUILD SUCCESSFUL in 9s
10 actionable tasks: 10 executed
Build step 'Invoke Gradle script' changed build result to SUCCESS
[Zim2Xapi Cypress Tests] $ /bin/sh -xe /tmp/jenkins1773328703489666398.sh
+ cd js-tests
+ npm install

up to date, audited 638 packages in 1s

74 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
+ npm run test:e2e

> js-tests@1.0.0 test:e2e
> start-server-and-test start-server http://localhost:8082 cypress:run

1: starting server using command "npm run start-server"
and when url "[ 'http://localhost:8082' ]" is responding with HTTP status code 200
running tests using command "npm run cypress:run"


> js-tests@1.0.0 prestart-server
> mkdir -p e2e/temp-content


> js-tests@1.0.0 start-server
> http-server e2e/temp-content -p 8082

Starting up http-server, serving e2e/temp-content

http-server version: 14.1.1

http-server settings: 
CORS: disabled
Cache: 3600 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none

Available on:
  http://127.0.0.1:8082
  http://116.202.128.173:8082
Hit CTRL-C to stop the server

[2024-11-14T13:06:46.662Z]  "HEAD /" "axios/1.7.7"
(node:41875) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)

> js-tests@1.0.0 cypress:run
> NO_COLOR=1 cypress run

MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)
glx: failed to create drisw screen

DevTools listening on ws://127.0.0.1:41497/devtools/browser/b98ee645-7d24-4d29-a36d-7ac3a568d1c4
[41911:1114/140648.711013:ERROR:object_proxy.cc(577)] Failed to call method: org.freedesktop.DBus.StartServiceByName: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        13.15.0                                                                        │
  │ Browser:        Electron 118 (headless)                                                        │
  │ Node Version:   v18.20.4 (/usr/bin/node)                                                       │
  │ Specs:          6 found (dropdown.cy.js, input-number.cy.js, matcher.cy.js, orderer.cy.js, rad │
  │                 io.cy.js, sorter-radio-categorizer.cy.js)                                      │
  │ Searched:       e2e/cypress/integration/**/*.cy.{js,jsx,ts,tsx}                                │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

Temporary content folder cleaned before all tests.

────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  dropdown.cy.js                                                                  (1 of 6)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        2                                                                                │
  │ Passing:      0                                                                                │
  │ Failing:      1                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      1                                                                                │
  │ Screenshots:  1                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     dropdown.cy.js                                                                   │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


  (Screenshots)

  -  /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/js-tests/e2e/cypress/scr     (1280x720)
     eenshots/dropdown.cy.js/Dropdown Tests -- completes the dropdown exercise and ve               
     rifies all xAPI statements -- before all hook (failed).png                                     


  (Video)

  -  Video output: /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/js-tests/e2e/cypress/videos/dropdown.cy.js.mp4


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  input-number.cy.js                                                              (2 of 6)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        2                                                                                │
  │ Passing:      0                                                                                │
  │ Failing:      1                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      1                                                                                │
  │ Screenshots:  1                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     input-number.cy.js                                                               │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


  (Screenshots)

  -  /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/js-tests/e2e/cypress/scr     (1280x720)
     eenshots/input-number.cy.js/Input Number Tests -- completes the input number exe               
     rcise and verifies all xAPI statements -- before all hook (failed).png                         


  (Video)

  -  Video output: /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/js-tests/e2e/cypress/videos/input-number.cy.js.mp4


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  matcher.cy.js                                                                   (3 of 6)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        2                                                                                │
  │ Passing:      0                                                                                │
  │ Failing:      1                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      1                                                                                │
  │ Screenshots:  1                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     matcher.cy.js                                                                    │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


  (Screenshots)

  -  /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/js-tests/e2e/cypress/scr     (1280x720)
     eenshots/matcher.cy.js/Matcher Tests -- completes the matcher exercise and verif               
     ies all xAPI statements -- before all hook (failed).png                                        


  (Video)

  -  Video output: /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/js-tests/e2e/cypress/videos/matcher.cy.js.mp4


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  orderer.cy.js                                                                   (4 of 6)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        1                                                                                │
  │ Passing:      0                                                                                │
  │ Failing:      1                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  1                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     orderer.cy.js                                                                    │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


  (Screenshots)

  -  /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/js-tests/e2e/cypress/scr     (1280x720)
     eenshots/orderer.cy.js/Orderer Tests -- attempts to fail the orderer exercise an               
     d verifies failing xAPI statements -- before all hook (failed).png                             


  (Video)

  -  Video output: /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/js-tests/e2e/cypress/videos/orderer.cy.js.mp4


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  radio.cy.js                                                                     (5 of 6)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        2                                                                                │
  │ Passing:      0                                                                                │
  │ Failing:      1                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      1                                                                                │
  │ Screenshots:  1                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     radio.cy.js                                                                      │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


  (Screenshots)

  -  /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/js-tests/e2e/cypress/scr     (1280x720)
     eenshots/radio.cy.js/Radio Tests -- completes the radio exercise and verifies al               
     l xAPI statements -- before all hook (failed).png                                              


  (Video)

  -  Video output: /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/js-tests/e2e/cypress/videos/radio.cy.js.mp4


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  sorter-radio-categorizer.cy.js                                                  (6 of 6)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        1                                                                                │
  │ Passing:      0                                                                                │
  │ Failing:      1                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  1                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     sorter-radio-categorizer.cy.js                                                   │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


  (Screenshots)

  -  /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/js-tests/e2e/cypress/scr     (1280x720)
     eenshots/sorter-radio-categorizer.cy.js/Sorter Tests -- attempts to fail the mul               
     ti-interaction exercise and verifies failing xAPI statements -- before all hook                
     (failed).png                                                                                   


  (Video)

  -  Video output: /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/js-tests/e2e/cypress/videos/sorter-radio-categorizer.cy.js.mp4


====================================================================================================

  (Run Finished)


       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✖  dropdown.cy.js                           646ms        2        -        1        -        1 │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  input-number.cy.js                       530ms        2        -        1        -        1 │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  matcher.cy.js                            559ms        2        -        1        -        1 │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  orderer.cy.js                            556ms        1        -        1        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  radio.cy.js                              546ms        2        -        1        -        1 │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  sorter-radio-categorizer.cy.js           549ms        1        -        1        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✖  6 of 6 failed (100%)                     00:03       10        -        6        -        4  

http-server stopped.
Error: Command failed with exit code 6: npm run cypress:run
    at makeError (/home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/js-tests/node_modules/start-server-and-test/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/js-tests/node_modules/start-server-and-test/node_modules/execa/index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  shortMessage: 'Command failed with exit code 6: npm run cypress:run',
  command: 'npm run cypress:run',
  escapedCommand: '"npm run cypress:run"',
  exitCode: 6,
  signal: undefined,
  signalDescription: undefined,
  stdout: undefined,
  stderr: undefined,
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
Build step 'Execute shell' marked build as failure
[htmlpublisher] Archiving HTML reports...
Recording test results
[Checks API] No suitable checks publisher found.
Finished: FAILURE