question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

parallel-group-params-mismatch caused by browser (reopened)

See original GitHub issue

Related to https://github.com/cypress-io/github-action/issues/121

First noticed April 30

Current behavior:

When running tests in parallel on GitHub actions, different containers have different browser versions, causing cypress to fail outright.

First container: Chrome 80.0.3987.163 Subsequent two containers:

This machine sent the following parameters:

{
  "osName": "linux",
  "osVersion": "Ubuntu Linux - 18.04",
  "browserName": "Chrome",
  "browserVersion": "81.0.4044.122",

Desired behavior:

Tests run in parallel shouldn’t have inconsistent configurations

Test code to reproduce

Job ran as follows:

 - name: cypress tests start
        uses: cypress-io/github-action@v1
        with:
          working-directory: ./frontend
          group: ${{ matrix.browser }}-${{ matrix.python-version }}
          browser: ${{ matrix.browser }}
          headless: true
          record: true
          parallel: true
          start: npx ws --spa -s index.html --hostname 0.0.0.0 --port 4200 --directory dist
          wait-on: http://localhost:4200
          wait-on-timeout: 30
        env:
          CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Versions

Cypress: 4.5.0 Browser: Chrome GitHub Actions: current

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
choonkeatcommented, Jun 1, 2022

inspired by the instructions for Firefox

I added

 name: E2E on Chrome
 on: [push]
 jobs:
   cypress-run:
     runs-on: ubuntu-20.04
+    container:
+      image: cypress/browsers:node14.17.6-chrome100-ff98
     # let's make sure our tests pass on Chrome browser
     name: E2E on Chrome
     steps:
       - uses: actions/checkout@v2
       - uses: cypress-io/github-action@v2
         with:
           browser: chrome

it added 25s Initialize containers step in the workflow, but at least I get consistent browser version for my parallel jobs

0reactions
Tofelcommented, Jun 7, 2022

Okay, I think I know what I did wrong 😃 I shouldn’t be passing --parallel flag, because I do not want Cypress to orchestrate it for me. I just need multiple runs to be grouped together and the orchestration of parallelisation with be done by GH itself via the matrices.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TestNg Non-Parallel execution of multiple browsers giving ...
This is the exception I get after Chrome has finished execution. In the above exception, the browser parameter passed for Second Test is...
Read more >
How to fix common Selenium errors? - Ultimate QA
Selenium webdriver errors that are commonly faced by QA Engineers. This article covers all the common errors including Firefox and Selenium ...
Read more >
TestNG Listeners In Selenium Webdriver For Automated Testing
TestNG Parallel Execution ... Implementing the listeners at the class level will cause a lot of ... This method takes three arguments:.
Read more >
Troubleshooting - Harness.io Docs
Harness error messages, causes, and solutions. ... If you log out of Harness Manager in one browser tab, Harness might log you out...
Read more >
Writing visual tests with the Eyes SDK - Applitools
In an Eyes visual test, your test code uses a browser or native device driver ... the Eyes Test Manager to determine the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found