Commit Graph

115 Commits

Author SHA1 Message Date
Josh Ward
482358b824 feat: add CYPRESS_SKIP_VERIFY option to suppress verification (#29836)
* misc: add `CYPRESS_SKIP_VERIFY` option to suppress verification

* Update CHANGELOG.md

* Move changelog entry to feature

* Whoops - features

* Update CHANGELOG.md

* Update cli/lib/tasks/verify.js

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Update cli/lib/tasks/verify.js

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Update cli/lib/tasks/verify.js

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Appease the linter

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2024-08-16 12:45:34 -04:00
Mike McCready
6c3e11f7b6 chore: use ISO 8601 format in cli test timestamps (#29969) 2024-08-02 15:01:58 -04:00
Ryan Manuel
d8755693d7 chore: fix mocha junit reporter when running mocha <6 (#29481)
* chore: fix mocha junit reporter when running mocha <6

* Update cli/test/lib/util_spec.js
2024-05-07 10:10:49 -05:00
Bill Glesias
c1304b2775 fix: avoid ANSI character output when running the binary smoke test f… (#28994) 2024-02-22 14:29:49 -05:00
Camille Drapier
7c4d941d46 fix: Hanging indefinitely when unzip fails with an empty error (#28850) 2024-02-14 11:10:09 -05:00
Emily Rohrbough
f53ca92f5c fix: no longer swallow stderr logs on linux (#28380) 2023-12-05 10:12:14 -05:00
Bill Glesias
171d1fa646 chore: update to webpack v5 (#27438)
* chore: [run ci] does further prerequisites for webpack 5:
https://webpack.js.org/migrate/5/#make-sure-your-build-has-no-errors-or-warnings
https://webpack.js.org/migrate/5/#make-sure-to-use-mode
https://webpack.js.org/migrate/5/#update-outdated-options
https://webpack.js.org/migrate/5/#test-webpack-5-compatibility
app builds and runs locally. Time to test out in CI and see if buffer or
process need to be polyfilled by the build

* chore: upgrade to webpack 5 and do the bare minimum to get it working

* chore: get @packages/extension working

* chore: add TODOs to finish after webpack 5 update

* chore: update the webpack config for npm/webpack-batteries-included-preprocessor to be webpack 5 compliant

* chore: patch whatwg-url 7.1.0. package 'source-map' uses
whatwg-url@7.1.0 which has a dependency on punycode node expected API.
since punycode is now polyfilled for us implicitly via the punycode npm
package, the API signatures are a bit different
https://github.com/mathiasbynens/punycode.js/blob/main/punycode.js#L101
vs https://nodejs.org/api/punycode.html#punycodeucs2. The patch uses the
punycode npm package expected API and is needed for source maps to work
for cy.origin() dependencies for Cypress.require()

* chore: convert whatwg patch into dev patch as source-map is not installed when building the binary / installing prod dependencies

* chore: only move production level patches into the binary dist directory for yarn install --production

* chore: remove --openssl-legacy-provider code for node versions 17 and over as webpack has been updated to v5

* chore: fix the webpack-batteries-included-preprocessor tests by shimming the correct node globals and built ins

* chore: provide the define plugin and evalDevtoolPlugin again as we need define in order to build the react-dom library correctly in the bundle to not include the development version

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: fix the webpack preprocessor not to change promise references under the hood when compiling the first bundle, as it was causing the webpack preprocessor to hang as the reference itself was different

* chore: fix issues from readFile that were caused by Webpack 5 using 'path-browserify'

* chore: update chrome component testing snapshots to match Webpack 5 changes

* chore: fix mismatched snapshots from webpack 5 update

* chore: use Cypress.Buffer instead of Buffer for selectFile system test to avoid having to polyfill Buffer from webpack

* chore: fix system test webpack path that now includes e2e workspace

* chore: patch enhanced-resolve to properly discover the pnp api for the yarn_v3.1.1_pnp_spec.ts system test. see https://github.com/webpack/enhanced-resolve/issues/263 for more details

* chore: set stats to 'none' for experimentalSingleTabMode to prevent different webpack compiled terminal formatting in the snapshot between local and CI.

* chore: fix node built in tests and configure webpack-batteries-included-preprocessor correctly

* chore: fallback to buffer correctly in config, even though there is no impact due to the provide plugin

* Update binary-cleanup.js to exclude added build dependencies for webpack
5 added by webpack-terser-plugin under the hood

* chore: add stream-browserify to webpack preprocessor batteries included as a dep as its used in the config [run ci]

* chore: make sure process and buffer are installed in the CLI for webpack provide

* chore: build cross platform binaries [run ci]

* chore: fix webpack evalDevToolPlugin instantiation [run ci]

* run all binary jobs [run ci]

* chore: updating v8 snapshot cache

* add find-up to the entry points that need to be kept

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: fix mocha build warnings

* chore: fix STRIPPED_INTEGRITY_TAG import warnings

* chore: add changelog event

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2023-08-09 11:59:36 -04:00
Mahdi Khashan
63be85f465 fix: updated CYPRESS_DOWNLOAD_PATH_TEMPLATE regex to allow multiple replacements (#25531) 2023-05-05 11:08:59 -06:00
Emily Rohrbough
52e9dbc100 chore: update next-version to handle using the next bump package.json… (#25599)
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2023-01-27 15:50:21 -06:00
Ryan Manuel
8562cba558 feat: add reject unauthorized to api server calls and standardize CA usage (#24493) 2022-11-04 15:27:31 -05:00
Tomas Bjerre
7489561fbf feat: including version in CYPRESS_DOWNLOAD_PATH_TEMPLATE (refs #5141 #16976 #22864) (#23194)
Co-authored-by: Blue F <blue@cypress.io>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-08-16 08:49:56 -05:00
Zach Bloomquist
61f19c0450 feat: build Cypress for linux-arm64 (#22252) 2022-06-15 16:22:10 +00:00
Zach Bloomquist
e18b0d567e feat: build Cypress for darwin-arm64 (#20686) 2022-06-15 15:24:50 +00:00
Zach Bloomquist
546ed16c77 fix(cli): show additional mitigation steps for max path length error (#21047) 2022-04-14 16:23:31 +00:00
Zach Bloomquist
6a4823b5e1 fix(cli): decrease the length of pre-release cache path (#20961) 2022-04-07 17:41:44 +00:00
Amos Wong
6915b8e3de feat: support escaped dollar sign in CYPRESS_DOWNLOAD_PATH_TEMPLATE (#20698)
* refactor: break pathTemplate replace logic into multiple lines

* feat: support escape dollar sign in download path template

* feat: support CYPRESS_DOWNLOAD_PATH_TEMPLATE wrapped in quote

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-03-24 13:21:19 -07:00
Zach Bloomquist
3c286177cc fix: use unique install cache folders for betas (#20296) 2022-03-04 22:22:39 +00:00
Emily Rohrbough
17f272e9ee chore: fix cypress npm package artifact upload path (#20023) 2022-02-04 12:00:08 -06:00
Harles-Herman Pilter
2685f82663 feat: env to use path params in download url (#19526)
* feat: env to use path params in download url

* feat: change env to url template

* feat: fix snapshot

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-01-18 08:07:52 -08:00
Pascal Gafner
576519e465 fix: use util.getEnv to handle environment variables set with npm (#19560)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-01-12 08:52:26 -06:00
David Ihnen
df5687c65d fix: Inability to download with redirects through a proxy (#19310)
* Fixes inability to download with redirects through a proxy

* lint fixes

* t

* tests are passing

* tests pass and works

* a little cleanup

* oops, @cypress/request

* nuding the ci system

* Fix race condition in verify code

* address comments on pull request

* a test with multiple layers of redirects

* Add tests and mechanism for redirect loop error

* Make informative error message

* Remove environment config option for now

* test assertion pattern

Co-authored-by: David Ihnen <dihnen.ctr@kr.af.mil>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-01-05 14:01:35 -08:00
Tyler Biethman
7476843d80 fix: Use CYPRESS_VERIFY_TIMEOUT as integer. (#19517)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-01-04 11:19:49 -06:00
Pascal Gafner
b3d114e086 fix: add CYPRESS_VERIFY_TIMEOUT param and a test for it (#19282)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2021-12-20 11:36:38 -05:00
Tim Griesser
e4f5b106d4 feat: use hoisted yarn install in binary build (#17285) 2021-11-20 14:19:51 -05:00
Emily Rohrbough
e396956534 feat: remove windows 32-bit support (#18630)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-10-29 08:54:02 -05:00
Arne Westphal
8249d2ee0c fix(cli): Respect NO_PROXY on cypress download (#17702)
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-09-20 18:25:54 +00:00
Zach Bloomquist
209efa433d fix: use process.geteuid and catch uid errors in file util (#17488)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2021-07-30 16:05:17 +00:00
Kukhyeon Heo
8e0e3c1b50 chore: update extract-zip to 2.0.1 (#16544) 2021-05-17 20:11:05 +00:00
Minijus L
6bc7e7da0f fix: use 'ca' and 'cafile' npm config options for binary download (#8877)
Co-authored-by: Zach Bloomquist <github@chary.us>
2021-05-10 22:14:54 +00:00
Zach Bloomquist
09afc48e14 fix(cli): use per-pid filename for downloaded cypress zip (#14952) 2021-02-09 15:02:37 +00:00
Jennifer Shehane
d1d15e6cfe chore: Replace usage of moment in cli / server code (#9069) 2021-01-26 13:49:21 +06:30
Jennifer Shehane
bb0d98d3c6 Merge branch 'develop' into v6.0-release 2020-11-17 22:38:39 +06:30
Gleb Bahmutov
84d1afd27d feat: print bundled Node and Electron versions in cypress version (#9183) 2020-11-16 13:17:24 -05:00
Jennifer Shehane
3a8d9e62d4 chore: Remove code around deprecated APIs (#8951) 2020-10-27 00:45:19 +06:30
Greg Lahaye
b56c8c8688 feat: add cache prune command (#8766)
Co-authored-by: Zach Bloomquist <github@chary.us>
2020-10-09 15:14:19 -04:00
Kukhyeon Heo
aa4772c4cf feat: Print folder sizes with cypress cache list command. (#8590) 2020-10-05 11:31:59 -04:00
Zach Bloomquist
fe4e11ec6e feat(cli): install pre-release binaries by computing binary URL from NPM URL (#8483) 2020-09-08 17:44:37 -04:00
Gleb Bahmutov
3b6514399d Do not silence cli commands (#6909)
* always log cache path

* cache list always logs

* cypress version should always log result
2020-04-01 11:44:27 -04:00
Gleb Bahmutov
2a0bc32700 cypress cache list prints last accessed date (#6627)
* get last access timestamps and print with cache versions

* remove done TODO

* start trying to save HTML but only after snapshot text is confirmed

* store cli test output HTML as static pages

* set our color for table heading

* make code readable

* lock file again

* update saved HTML file

* refactor cache spec

* add test with no access time:
2020-03-09 09:27:54 -04:00
renovate[bot]
eab801ae3f chore(deps): Update dependency eslint to version 6.8.0 🌟 (#6509)
* chore(deps): Update eslint to 6.8.0 🌟

* fix missing dangling commas for linter

* fix missing dangling commas for linter

* more lint fixes

* yarn lock

Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2020-02-25 00:09:47 +06:30
Chris Breiding
c491a3eda5 Merge branch 'develop' into v4.0-release 2020-01-29 12:47:11 -05:00
Gleb Bahmutov
e389db4089 Move binary state file to be in the version folder of the cache (#6090)
* WIP: small refactoring for clarity

* move binary state file to version dir

* add issue link
2020-01-06 16:32:03 -05:00
Zach Bloomquist
b130ffca87 Prevent Cypress from showing 200% unzip progress (#6009)
* Prevent unzipWithNode from getting called twice

* fix unzip test

* add unit test to check if unzip is called once

* add unzip test for Darwin

Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
2019-12-26 12:37:09 -05:00
Chris Breiding
f2600b5e35 Merge branch 'develop' into v4.0-release 2019-12-09 13:46:05 -05:00
Zach Bloomquist
02515fec61 cli: unnzip Cypress using unzip utility on Linux (#5851)
* unzip using 'unzip' utility on linux

* add example unzip test
2019-12-03 09:19:12 -05:00
Jennifer Shehane
299f0dfd24 Remove support for Node 6 (#5632)
* Bump required node version of cli to 8.0.0+

* Bump chalk to 3.0.0

- previously required Node 8 support

* bump debug to 4.1.1

- Drops Node 4 support, adds Node 10 support
- They  mentioned no breaking changes, so we’ll see.

* bump is-ci to 2.0.0

- removes Node end of lives
- supports more CIs for detection

* bump is-installed-globally

- drops support for Node 6 + improvements on detection

* bump log-symbols dep

- requires Node 8

* bump supports-color

- Requires Node 8

* bump untildify - require Node 8

* bump commander to 4.0.1

- require Node 8
- may break some snapshots - they changed some quotes like 'this'
instead of `this'

* bump execa to 3.3.0

- removes Node 6 support
- some breaking changes, but I didn’t find us using any of them on
first pass.

* bump cachedir

* bump fs-extra

Drops various node version support including 6

* bump bluebird

* bump ramda
2019-11-26 21:28:24 +06:30
Gleb Bahmutov
fcc252e94d Always use --no-sandbox with Electron on non-Windows system (#5458)
* WIP: add failing test job with non-root user

* change paths to node user

* print more info

* always use --no-sandbox when starting Electron on non-Windows OS

* add another test job that runs as a root

* use tilda

* use 12.0.0 image

* rename job
2019-10-25 10:54:03 -04:00
Gleb Bahmutov
dd70563809 cli: detect installing from postinstall hook (#5407)
* cli: detect installing from postinstall hook

* add unit tests
2019-10-22 11:56:52 -04:00
Gleb Bahmutov
128d4392ae parse ~ in CYPRESS_CACHE_FOLDER env variable (#5393)
* parse ~ in CYPRESS_CACHE_FOLDER env variable

* linting
2019-10-17 11:47:29 -04:00
Ben Kucera
653f52dc3c upgrade eslint-plugin-dev to 5.0.0 (#5382)
* upgrade eslint-plugin-dev to 5.0.0

* more [lint fixes]
2019-10-17 11:40:53 -04:00