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

Install Chromedriver returns 404 #446

Closed
LeandroTorresSicilia opened this issue Dec 6, 2023 · 16 comments
Closed

Install Chromedriver returns 404 #446

LeandroTorresSicilia opened this issue Dec 6, 2023 · 16 comments

Comments

@LeandroTorresSicilia
Copy link

The orb does not work as expected

  • what version of the orb are you currently using?
    3.2.0
  • paste the circle.yml file if possible or at least the relevant portion
version: 2.1

orbs:
  node: circleci/[email protected]
  cypress: cypress-io/[email protected]

jobs:
  lint_and_test:
    docker:
      - image: cimg/node:18.16.0-browsers
    steps:
      - checkout
      - node/install-packages:
          pkg-manager: yarn
      - run: yarn install
      - run: yarn lint
      - run: yarn test-ci

  deploy:
    docker:
      - image: cimg/node:18.16.0-browsers
    steps:
      - checkout
      - node/install-packages:
          pkg-manager: yarn
      - run: yarn install
      - run:
          name: Deploy Firebase Hosting
          command: yarn deploy

workflows:
  test_and_deploy:
    jobs:
      - lint_and_test
      - cypress/run:
          requires:
            - lint_and_test
          install-command: yarn install
          start-command: yarn start
          cypress-command: npx wait-on@latest http://localhost:3000 && npx cypress run --browser chrome
          install-browsers: true
      - deploy:
          requires:
            - cypress/run
          filters:
            branches:
              only: master

  • 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
@DaleGardner
Copy link
Contributor

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
Copy link

I experience the same issue yesterday with chrome 120

@MikeMcC399
Copy link
Contributor

MikeMcC399 commented Dec 7, 2023

https://github.com/CircleCI-Public/browser-tools-orb/releases/tag/v1.4.6 solves a related issue, so I would suggest that

# if our orb requires other orbs, we can import them like this. Otherwise remove the "orbs" stanza.
orbs:
node: circleci/node@5
browser-tools: circleci/[email protected]
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
Copy link
Contributor

MikeMcC399 commented Dec 7, 2023

@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
Copy link
Contributor

Created PR #447 to fix this

@nderevjanik-fond
Copy link

nderevjanik-fond commented Dec 7, 2023

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
Copy link

sedghi commented Dec 13, 2023

This is happening for me to, relevant convo CircleCI-Public/browser-tools-orb#75 (comment)

@MikeMcC399
Copy link
Contributor

@MikeMcC399
Copy link
Contributor

@MikeMcC399
Copy link
Contributor

MikeMcC399 commented Dec 19, 2023

@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
Copy link
Member

@MikeMcC399 Looking into this now

@sedghi
Copy link

sedghi commented Dec 19, 2023

@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 #441

@jennifer-shehane
Copy link
Member

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
Copy link
Member

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

@MikeMcC399
Copy link
Contributor

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
Copy link
Member

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

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 a pull request may close this issue.

7 participants