cypress-io / circleci-orb

Install, cache and run Cypress.io tests on CircleCI with minimal configuration.
https://circleci.com/orbs/registry/orb/cypress-io/cypress
MIT License
160 stars 101 forks source link

Install Chromedriver returns 404 #446

Closed LeandroTorresSicilia closed 9 months ago

LeandroTorresSicilia commented 10 months ago

The orb does not work as expected

orbs: node: circleci/node@5.1.0 cypress: cypress-io/cypress@3.2.0

jobs: lint_and_test: docker:

workflows: test_and_deploy: jobs:


- describe what you think should happen
It should not fail when installing chromedriver
- describe what happens
![Screenshot 2023-12-06 at 9 56 18 AM](https://github.com/cypress-io/circleci-orb/assets/24737097/796161c8-c420-46a0-aab1-f22e59a27fe9)
DaleGardner commented 10 months ago

Having the exact same issue. It was running fine yesterday. With no changes at all to the setup, today it is having this problem. I tried orb version 3.2.0 and 3.1.4, same result

ArakliotisStelios commented 10 months ago

I experience the same issue yesterday with chrome 120

MikeMcC399 commented 10 months ago

https://github.com/CircleCI-Public/browser-tools-orb/releases/tag/v1.4.6 solves a related issue, so I would suggest that https://github.com/cypress-io/circleci-orb/blob/0aa1d98771c497bc17d5be3def522a2ab5f88013/src/%40orb.yml#L10-L13 be updated to the latest version (1.4.6) and tested.

Although it probably will not solve this issue, if there is a remaining problem, it can then be reported as an issue to https://github.com/CircleCI-Public/browser-tools-orb/issues for investigation.

MikeMcC399 commented 10 months ago

@LeandroTorresSicilia

According to https://googlechromelabs.github.io/chrome-for-testing/latest-versions-per-milestone.json I would expect that ChromeDriver for version 120 would be installed:

"120": {
            "milestone": "120",
            "version": "120.0.6099.71",
            "revision": "1217362"
        },

but it seems like it is trying to install ChromeDriver for version 119 instead:

"119": {
            "milestone": "119",
            "version": "119.0.6045.105",
            "revision": "1204232"
        },
DaleGardner commented 10 months ago

Created PR #447 to fix this

nderevjanik-fond commented 10 months ago

For the time being I was able to workaround this issue by changing my executor and setting install-browsers to false:

jobs:
  e2e-tests:
    docker:
      - image: cypress/browsers:node-16.18.1-chrome-110.0.5481.96-1-ff-109.0-edge-110.0.1587.41-1
    resource_class: large

    steps:
      # Configuration omitted for brevity...

      - cypress/install:
          install-browsers: false

My project happens to be using Node 16, but other docker images are available: https://hub.docker.com/r/cypress/browsers

sedghi commented 9 months ago

This is happening for me to, relevant convo https://github.com/CircleCI-Public/browser-tools-orb/issues/75#issuecomment-1854845485

MikeMcC399 commented 9 months ago
MikeMcC399 commented 9 months ago
MikeMcC399 commented 9 months ago

@jennifer-shehane


Error log from cypress-example-kitchensink

Chrome version major is 120
Installed version of Google Chrome is 120.0.6099.109 
404
Matching Chrome Driver Version 404'd, falling back to first matching major version.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   789  100   789    0     0  11843      0 --:--:-- --:--:-- --:--:-- 11954
New ChromeDriver version to be installed: 1204232
1204232 will be installed
curl: (22) The requested URL returned error: 404

Exited with code exit status 22
jennifer-shehane commented 9 months ago

@MikeMcC399 Looking into this now

sedghi commented 9 months ago

@jennifer-shehane Thank you! Given that this is a recurring issue (not releasing the latest merge), could we find a way to address this through automation?

Happened here as well https://github.com/cypress-io/circleci-orb/issues/441

jennifer-shehane commented 9 months ago

The release is out for 3.2.1: https://circleci.com/developer/orbs/orb/cypress-io/cypress

@sedghi It is super annoying. We'd be open to suggestions on how to better automate this, but we don't have time to dedicate to this atm.

jennifer-shehane commented 9 months ago

This has fixed the Chromedriver error I was seeing on one of our projects, so seems to be fixed

MikeMcC399 commented 9 months ago

Previously failing workflow now successfully shows:

Chrome version major is 120
Installed version of Google Chrome is 120.0.6099.109 
404
Matching Chrome Driver Version 404'd, falling back to first matching major version.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   790  100   790    0     0  12261      0 --:--:-- --:--:-- --:--:-- 12343
New ChromeDriver version to be installed: 120.0.6099.109
120.0.6099.109 will be installed
^@^@ChromeDriver 120.0.6099.109 (3419140ab665596f21b385ce136419fde0924272-refs/branch-heads/6099@{#1483}) has been installed to /usr/local/bin/chromedriver
jennifer-shehane commented 7 months ago

Please update to cypress' 3.3.1 orb to get this fix: https://github.com/cypress-io/circleci-orb/releases/tag/v3.3.1