Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release(2.0.2): check the requirements [DS-1276] #16

Merged
merged 2 commits into from
Jan 21, 2022
Merged

Conversation

0xIslamTaha
Copy link
Owner

Description

  • The orchestrator is checking the requirements in the host machine.

stdout examplt

╭─islamtaha@RLYLTPZ175 /opt/code/github/orchestrator-public-use-case  ‹master*› 
╰─➤  npx orchestrator --config orchestrator.json --specs '["actions.spec.js"]'                                                                                          130 ↵

   ██████      ██████       ██████     ██   ██     ███████     ███████     ████████     ██████       █████      ████████      ██████      ██████  
  ██    ██     ██   ██     ██          ██   ██     ██          ██             ██        ██   ██     ██   ██        ██        ██    ██     ██   ██ 
  ██    ██     ██████      ██          ███████     █████       ███████        ██        ██████      ███████        ██        ██    ██     ██████  
  ██    ██     ██   ██     ██          ██   ██     ██               ██        ██        ██   ██     ██   ██        ██        ██    ██     ██   ██ 
   ██████      ██   ██      ██████     ██   ██     ███████     ███████        ██        ██   ██     ██   ██        ██         ██████      ██   ██ 
                                                                                                                             v 2.0.1 @0xIslamTaha                                                                                                                                                                                                                                                                                

[*] Checking the requirements
[-] docker is installed ✔️
[-] docker-compose is installed ✔️
[-] timeout is installed ✔️

[*] Overwrite the config file with the arguments if there is any
[*] Export the environment variables

[*] Execute the pre commands
[-] ~$ echo 'START ORCHESTRATOR'
START ORCHESTRATOR
[-] ~$ rm -rf cypress/report/* #Remove the old reports
rm: cannot remove 'cypress/report/mochawesome-report/mochawesome_005.json': Permission denied
rm: cannot remove 'cypress/report/mochawesome-report/mochawesome_003.json': Permission denied
rm: cannot remove 'cypress/report/mochawesome-report/mochawesome_006.json': Permission denied
rm: cannot remove 'cypress/report/mochawesome-report/mochawesome_004.json': Permission denied
rm: cannot remove 'cypress/report/mochawesome-report/mochawesome.json': Permission denied
rm: cannot remove 'cypress/report/mochawesome-report/mochawesome_002.json': Permission denied
rm: cannot remove 'cypress/report/mochawesome-report/mochawesome_001.json': Permission denied
[-] ~$ mkdir -p mochawesome-report

[*] Start the cypress containers
[-] ~$ timeout --preserve-status 30m docker-compose -f docker-compose.yml run --name container_69390__0 cypress-container bash -c 'exit_code=0; npx cypress run -b chrome --headless --spec cypress/integration/examples/actions.spec.js || exit_code=$? ; pkill -9 cypress ; exit $exit_code'
Creating orchestrator-public-use-case_cypress-container_run ... done
[32:0121/144810.330360:ERROR:bus.cc(392)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[32:0121/144810.331688:ERROR:bus.cc(392)] Failed to connect to the bus: Address does not contain a colon
[32:0121/144810.331725:ERROR:bus.cc(392)] Failed to connect to the bus: Address does not contain a colon
[204:0121/144810.342150:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is 
The `firefoxGcInterval` configuration option was removed in Cypress version `8.0.0`. It was introduced to work around a bug in Firefox 79 and below.

Since Cypress no longer supports Firefox 85 and below in Cypress 8, this option was removed.

You can safely remove this option from your config.

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

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        9.1.1                                                                          │
  │ Browser:        Chrome 94 (headless)                                                           │
  │ Node Version:   v16.5.0 (/usr/local/bin/node)                                                  │
  │ Specs:          1 found (examples/actions.spec.js)                                             │
  │ Searched:       cypress/integration/examples/actions.spec.js                                   │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  examples/actions.spec.js                                                        (1 of 1)
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


  Actions
    ✓ .type() - type into a DOM element (5297ms)
    ✓ .focus() - focus on a DOM element
    ✓ .blur() - blur off a DOM element
    ✓ .clear() - clears an input or textarea element
    ✓ .submit() - submit a form
    ✓ .click() - click on a DOM element
    ✓ .dblclick() - double click on a DOM element
    ✓ .rightclick() - right click on a DOM element
    ✓ .check() - check a checkbox or radio element
    ✓ .uncheck() - uncheck a checkbox element
    ✓ .select() - select an option in a <select> element
    ✓ .scrollIntoView() - scroll an element into view
    ✓ .trigger() - trigger an event on a DOM element
    ✓ cy.scrollTo() - scroll the window or element to a position


  14 passing (20s)

[mochawesome] Report JSON saved to /cypress_testing/cypress/report/mochawesome-report/mochawesome_007.json


  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        14                                                                               │
  │ Passing:      14                                                                               │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     19 seconds                                                                       │
  │ Spec Ran:     examples/actions.spec.js                                                         │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


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

  (Run Finished)


       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✔  examples/actions.spec.js                 00:19       14       14        -        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✔  All specs passed!                        00:19       14       14        -        -        -  


[*] Stop the cypress containers
Removing container_69390__0 ... done

[*] Generate the reports
[-] HTML report: mochawesome-report/mochawsome.html
[-] Execution time report: executionTimeReprot/specsExecutionTime.json
[-] chrome
┌─────────┬───────────────────┬──────────┐
│ (index) │     specName      │ duration │
├─────────┼───────────────────┼──────────┤
│    0    │ 'actions.spec.js' │  '2:04'  │
└─────────┴───────────────────┴──────────┘
[-] firefox
┌─────────┬───────────────────┬──────────┐
│ (index) │     specName      │ duration │
├─────────┼───────────────────┼──────────┤
│    0    │ 'actions.spec.js' │  '0:00'  │
└─────────┴───────────────────┴──────────┘

[*] Total execution time: 26.134s

@0xIslamTaha 0xIslamTaha merged commit ca46b11 into master Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant