Commit Graph

382 Commits

Author SHA1 Message Date
Ryan Manuel
2f862e8add chore: update release documentation and fix interactive release scripts (#20799)
Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
2022-03-28 10:41:56 -05:00
Zach Bloomquist
f2100a8bba test(system-tests): support npm for test projects (#20664) 2022-03-22 13:28:21 +00:00
Zach Bloomquist
3c286177cc fix: use unique install cache folders for betas (#20296) 2022-03-04 22:22:39 +00:00
Emily Rohrbough
ef3be70944 chore: update release scripts to work with AWS SSO (#20438) 2022-03-04 12:31:27 -06:00
Zach Bloomquist
ffd3627e43 test: migrate module_api to system tests (#20265)
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-02-25 23:12:05 +00:00
Zach Bloomquist
95700aed46 chore: fix "cannot find module" in clone-repo-and-checkout-release-branch (#20293) 2022-02-25 15:58:49 +00:00
Zach Bloomquist
ad2f4de844 test(system-tests): support docker-based tests against built binary (#20250)
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-02-18 23:37:22 +00:00
Zach Bloomquist
42b0fce6dc test: replace cypress-test-example-repos coverage + remove bump (#20186) 2022-02-16 18:53:04 +00:00
BlueWinds
ac1faf4965 Merge remote-tracking branch 'origin/develop' into issue-19403-perf-reporter-changes 2022-02-14 08:19:17 -08:00
Zach Bloomquist
a1e6d5cad1 test: remove redundant "other projects" CI jobs (#20133)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-02-11 18:18:53 +00:00
Brian Mann
29841f32b9 feat: redesign server errors (#20072)
* chore: rename errors.js -> errors.ts

* refactor: type safety on errors

* refactor: add err_template for consistent error formatting

* fix a few system tests

* fix tests; update snapshots

* Fix types

* normalize snapshot - remove chalk ansi colors

* more unit test fixes

* more system test fixes

* circleci build

* backtick always in stdout, fix error formatting and failing snapshots

* refactor: create @packages/errors

* fix import

* fix import

* fixing build / tests

* remove extraneous file

* move warnIfExplicitCiBuildId

* fix build / tests

* Fix

* error, type fixes, documentation, standardize child process error serialization

* fix import

* build errors on install

* wrote specs generating visual images of all errors

* remove unused dep

* sanitize stack traces

* add image diffing

- if base images don't exist, create them
- if base images don't match and local, overwrite them, if in CI throw
- if base images are stale and local, delete them, if in CI throw

* remove Courier New + MesloLGS NF font

* type fixes, remove Bluebird, general cleanup

* TS Cleanup

* skip typecheck on tests for now

* yarn.lock

* fix @types/chai version

* fix yarn.lock

* Different version of mocha types so it isnt patched

* errors spec snapshot

* CI fix

* fixes

* store snapshot images in circle artifacts

* dont change artifact destination prefix

* use Courier Prime

* antialias the text

* decrease pixelmatch threshold, fail in CI only when changed pixels > 100

* increase timeout

* overflow: hidden, remove new Promise, add debug logging

Co-Authored-By: Tim Griesser <tgriesser@gmail.com>

* run unit tests w/ concurrency=1

* unique window per file

* disable app hardware acceleration + use in process gpu + single process

* do not do image diffing

- conditionally convert html to images
- store html snapshots
- do not store images in git

* store snapshot html

* Merge branch 'tgriesser/chore/refactor-errors' of https://github.com/cypress-io/cypress into tgriesser/chore/refactor-errors

* remove concurrency

* fix assertion

* fixing ci

* Link in readme

* pass the browsers to listItems

* fix: build @packages/errors in CI, defer import to prevent errors locally

* Merge branch 'develop' into tgriesser/chore/refactor-errors

* develop:
  chore: fix cypress npm package artifact upload path (#20023)
  chore(driver): move cy.within logic into it's own file (#20036)
  chore: update automerge workflows (#19982)
  fix(selectFile): use target window's File/DataTransfer classes (#20003)
  chore: Update Chrome (stable) to 98.0.4758.80 and Chrome (beta) to 98.0.4758.80 (#19995)
  fix: Adjust ffmpeg CLI args for performance (#19983)
  build: allow unified to run cypress on Apple Silicon (arm64) (backport #19067 to 9.x) (#19968)

* fix run-if-ci.sh

* remove dead code

* Mark the .html files as generated in gitattributes

* fix running single error case, slice out more of the brittle stack

* remove additional brittle stack line

* firefox web security error

* nest inside of describe

* reformat and redesign errors

* more error cleanup and standardization

* additional formatting of errors, code cleanup, refactoring

* update ansi colors to match terminal colors

* cleanup remaining loose ends, update several errors, compact excess formatters

* fix types

* additional formatting, remove TODO's, ensure no [object Object] in output

* add test for 412 server response on invalid schema

* update unknown dashboard error on creating run

* use fs.access instead of fs.stat for perf

* added PLUGINS_FILE_NOT_FOUND error

- separated out from PLUGINS_FILE_ERROR
- add system tests for both cases
- update snapshots
- remove stack trace from PLUGINS_FILE_NOT_FOUND fka PLUGINS_FILE_ERROR

* add plugins system test around plugins synchronously throwing on require

* remove forcing process.cwd() to be packages/server, update affected code

- this was a long needed hangover from very old code that was doing unnecessary things due to respawning electron from node and handling various entrypoints into booting cypress
- this also makes the root yarn dev and dev-debug work correctly because options.cwd is set correctly now

* perf: lazy load chalk

* remove excessive line since the file exists but is invalid

* fix types

* add system test when plugins function throws a synchronous error

* create new PLUGINS_INVALID_EVENT_ERROR, wire it up correctly for error template use

- properly pass error instance from child to ensure proper user stack frames
- move error display code into the right place

* only show a single stack trace, either originalError or internal cypressError

* push error html snapshots

* fix tests, types

* fix test

* fix failing tests

* fix tests

* fixes lots of broken tests

* more test fixes

* fixes more tests

* fix type checking

* wip: consistent handling of interpolated values

* feat: fixing up errors, added simple error comparison tool

* wrapping up error formatting

* Fixes for unit tests

* fix PLUGINS_VALIDATION_ERROR

* fix fs.readdir bug, show rows even if there's only markdown formatting [SKIP CI]

* when in base-list, show full width of errors

* Fix type errors

* added searching and filtering for files based on error name

* fix: system tests

* updated NO_SPECS_FOUND error to properly join searched folder + pattern

- join patterns off of process.cwd, not projectRoot
- highlight original specPattern in yellow, baseDir in blue
- add tests

* fixes failing tests

* fix test

* preserve original spec pattern, display relative to projectRoot for terminal banner

* make the nodeVersion path display in gray, not white

* fix tests, pass right variables

* fix chrome:canary snapshots

* update snapshots

* update snapshot

* strip newlines caused by "Still waiting to connect to {browser}..."

* don't remove the snapshotHtmlFolder in CI, add additional verification snapshots match to error keys symmetrically

* update snapshot

* update snapshot

* update snapshot

* update snapshot

* update snapshot

* update snapshot

* update gitignore

* fix snapshot

* update snapshot html

* update logic for parsing the resolve pattern matching, add tests

* update snapshots

* update snapshot

* update snapshot

* update snapshot

* fix failing test

* fix: error_message_spec

* fix snapshot

* run each variant through an it(...) so multiple failures are received

* add newlines to multiline formatters, add fmt.stringify, allow format overrides

* stringify invalid return values from plugins

* move config validation errors into packages/errors, properly highlight and stringify values

* add component testing yarn commands

* fix the arrow not showing on details

* fix typescript error

* fixed lots of poorly written tests that weren't actually testing anything. created settings validation error when given a string validation result.

* fixes tests

* fixes tests, adds new error template for validating within an array list (for browser validation)

* remove dupe line

* fix copy for consistency, update snapshots

* remove redundant errors, standardize formatting and phrasing

* more formatting

* remove excess snapshots

* prune out excessive error snapshot html files when not in CI

* add missing tests, add case for when config validation fails without a fileType

* fixes test

* update snapshot

* update snapshot

* update snapshot

* sort uniqErrors + errorKeys prior to assertion - assert one by one

* add system test for binding to an event with the wrong handler

* fixes tests

* set more descriptive errors when setting invalid plugin events, or during plugin event validation

* remove duplicate PLUGINS_EVENT_ERROR, collapse into existing error

* use the same multiline formatting as @packages/errors

* standardize verbiage and highlighting for consistency

* fix incorrect error path

* fixes tests, standardized and condensed more language

* Update packages/errors/src/errors.ts

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

* Update guides/error-handling.md

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

* Update guides/error-handling.md

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

* added some final todo's

* fix types

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Tim Griesser <tgriesser@gmail.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-02-11 02:06:07 -05:00
BlueWinds
304d8bd73a Make performance-reporter for system tests use get-next-version script 2022-02-07 10:22:04 -08:00
Emily Rohrbough
17f272e9ee chore: fix cypress npm package artifact upload path (#20023) 2022-02-04 12:00:08 -06:00
Emily Rohrbough
99f24863a2 fix: move node 17 Check from Binary to CLI (#19977) 2022-01-31 12:03:36 -06:00
Kevin Leung
c9d29430ea chore: Fix build path for electron-builder on arm64 linux (#19498)
Co-authored-by: Blue F <blue@everblue.info>
2022-01-05 12:04:32 -06:00
Emily Rohrbough
aea8b2b788 chore: trigger downstream project tests for windows workflow (#19381) 2021-12-17 11:01:20 -06:00
Tim Griesser
8262f80d1f fix: patch-package is not applied in dist'ed build (#19239) 2021-12-03 18:45:34 -05:00
Emily Rohrbough
6b15468579 chore: Migrate Windows Tests from Appveyor to CircleCI (#19037)
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
2021-12-02 14:20:06 -06:00
Zach Bloomquist
42dfb8abb1 docs: add info around next version, testing other projects (#19157)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2021-12-02 15:35:51 +00:00
Zach Bloomquist
71d92e0e49 test: node_modules installs for system-tests, other improvements (#18574)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2021-11-24 20:10:28 +00:00
Tim Griesser
e4f5b106d4 feat: use hoisted yarn install in binary build (#17285) 2021-11-20 14:19:51 -05:00
renovate[bot]
3095d733e9 feat(deps): update dependency electron to v15 🌟 (#18317)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: David Munechika <davidam1203@gmail.com>
2021-11-09 20:52:17 +00:00
David Munechika
628202e42b Merge branch 'develop' into 9.0-release 2021-11-09 10:44:40 -05:00
Zachary Williams
cf4cc769cf Merge branch 'master' into develop 2021-11-09 00:14:48 +00:00
Zachary Williams
4ded6c9624 fix: remove outdated npm registry links (#18727)
* fix: remove outdated npm registry links

* revert cypress schematic change

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-11-09 10:14:03 +10:00
Jennifer Shehane
0273f3ebae Merge branch 'develop' into 9.0-release 2021-11-01 11:58:55 -06:00
Tim Griesser
c0d781d28f refactor: remove Ramda (#18723) 2021-11-01 13:37:33 -04: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
Jessica Sachs
a045e4f59a chore: move server e2e tests to system-tests (#16354)
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Zach Bloomquist <github@chary.us>
2021-10-18 19:53:14 +00:00
Kukhyeon Heo
af472b6419 fix: revive type checker (#18172)
Co-authored-by: Zach Bloomquist <github@chary.us>
2021-10-13 23:51:38 +00:00
Tim Griesser
863e3680bb fix: GH env variable for test other projects (#18147)
* use GH_TOKEN rather than creds var
2021-09-17 15:39:12 -04:00
Zach Bloomquist
7b1d49c324 chore: update make-empty-github-commit to fix test-other-projects (#18078) 2021-09-13 17:52:00 +00:00
Lachlan Miller
7a09856d3d remove all references to server-ct 2021-09-10 12:48:40 +10:00
Chris Breiding
55ef4c3a11 chore: Prevent unnecessary files from being included in the binary (#17957) 2021-09-06 21:00:30 -04:00
renovate[bot]
9df2543f88 fix(deps): update dependency electron to v13 🌟 (#17408)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-08-09 22:09:30 +00:00
Jennifer Shehane
23edbc0595 Merge branch 'develop' into 8.0-release
# Conflicts:
#	yarn.lock
2021-07-19 11:20:10 -05:00
Ben Kucera
8a4848837a fix(breaking_change): default to headless and 1280x720 for cypress run in all browsers (#17309)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2021-07-19 11:18:52 -05:00
Zach Bloomquist
789c40568b chore: revert "fix(deps): update dependency electron to v13 🌟 (#17037)" (#17372)
This reverts commit bda59dd7cc.
2021-07-16 18:52:23 +00:00
renovate[bot]
bda59dd7cc fix(deps): update dependency electron to v13 🌟 (#17037)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-07-12 21:50:49 +00:00
Tim Griesser
16516b74b1 fix: copy yarn.lock to packages for deterministic builds (#17218) 2021-07-06 17:51:33 -04:00
Tim Griesser
ca44464521 fix: revert #17132 use hoisted yarn install in build binary (#17215) 2021-07-06 16:30:33 -04:00
Tim Griesser
b2b2a97132 refactor: additional script cleanups 2021-07-06 09:58:29 -04:00
Tim Griesser
1e005644ae refactor: update binary script files to be more procedural 2021-07-06 09:58:29 -04:00
Tim Griesser
00eca92afa refactor: rename binary script files js -> ts 2021-07-06 09:58:28 -04:00
Zach Bloomquist
5586059653 fix: add code signing certificate details for Windows build (#16946)
Co-authored-by: minijus <3633549+minijus@users.noreply.github.com>
2021-06-21 16:19:20 +00:00
Zach Bloomquist
8203770af8 chore: use cypress/browsers:node14.16.0-chrome90-ff88 (#16731) 2021-06-03 20:37:26 +00:00
Chris Breiding
97e7a524d4 chore: Ensure binaries are downloadable after release (#16735) 2021-06-02 10:08:11 -04:00
Braden Mars
315d845432 fix: Migrate from listr to listr2 (#16663) 2021-06-01 10:26:03 -04:00
Adam Gastineau
c4aaa58744 chore: Normalized reporters between CI tasks (#16608) 2021-05-21 08:10:53 -07:00
Chris Breiding
d20cb93b4d chore: Check for and update tested-against Chrome versions (#16549) 2021-05-19 11:13:54 -04:00