Commit Graph

923 Commits

Author SHA1 Message Date
renovate[bot] 7958903e18 chore(deps): update dependency devtools-protocol to v0.0.1528500 (#32729)
* chore(deps): update dependency devtools-protocol to v0.0.1528500

* empty commit

* circle cache

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-10-16 16:11:04 -04:00
Bill Glesias a2d2f46876 chore: convert @packages/icons to a compiled package and convert tests to vitest (#32649)
* chore: convert tests to vitest

* chore: make icons builds from source and remove ts-node entry point to make ESM compatible

* make sure the icons tests actually run in CI

* correctly configure ES Module for packages/icons

* chore: update ESM migration
2025-10-08 10:31:23 -04:00
Bill Glesias 9005a7b9ca chore: release 15.4.0 (#32666) 2025-10-07 14:50:02 -04:00
Jennifer Shehane 056e6f6edd dependency: Electron 37 update (#32607)
* dependency: Electron 37 update

* bump min node

* Fix TS error

* Fix changelog location

* remove the example changelog as it obviously confused it

* add publish-binary branch

* update PR number in changelog

* run on all workflows

* fix types

* bump circle cache

* fix changelog numbers

* removed packages/changelog file

* Clarify minimum node + move some things around

* bump cache

* remove workflows

* build artifacts
2025-10-03 14:29:50 -04:00
Cacie Prins 5f2cc5c4b8 chore: dynamically pack the circleci pipeline configuration (#32618)
* chore: dynamically pack the circleci pipeline configuration

The ./scripts/pack-ci.sh is the first workhorse, here. It uses the circleci
cli to pack any subdirectory of `.circleci/src` into a circleci config
using FYAML format. It can pack every subdirectory, a subsection of
subdirs that include changes, and use circleci cli to validate the
packed yml files.

Husky is set up to validate the packed yml file(s) on commit.

The packed yml file(s) should not be committed to source control. They
are build artifacts. They are configured to be ignored by git in
./.circleci/.gitignore.

./.circleci/config.yml is the second major change. This workflow is
modified such that:
- it uses workflow filtering to prevent the workflow from triggering unless at least
one of the following is true:
  - the workflow was triggered via api (the 'trigger workflows' button in circleci)
  - the branch is `develop`
  - the branch is `release/*`
  - the branch has an open pull request, and the pull request is not draft
- checks out the repository from the HEAD ref of the pr (the branch with the changes),
and calculates a checksum of the contents of ./.circleci/src. Packed workflow files
are cached by the checksum of the source files that were used to generate the packed
workflow. If the cache is restored, the packed pipeline.yml file is continued. If there
is no cache for the checksum, it uses ./scripts/pack-ci to pack the source yml files
and triggers a continuation with the resulting packed yml file.

* rm packed yml file

* revert to old draft detection :( other way is only avail on github app

* just fail instead of cancelling on drafts, more reliable even if not correct

* just halt, since draft->ready does not already trigger a ci run

* circleci agent -> circleci-agent

* validate main circleci yml file; correct entrypoint for pack workflows job

* workflows -> pipeline

* Update pack-ci.sh - newline at eof
2025-10-02 11:19:35 -04:00
Bill Glesias 504b153005 chore: convert @packages/data-context from mocha to jest (#32598)
* start jest conversion and covnert authaction to jest

* chore: conver codegenaction to jest

* chore: convert cohorts action spec to vitest

* chore: convert dataEmitterActions to jest

* chore: convert event collector action to vitest

* chore: convert local settings action spec tojest

* chore: convert notification action to vitest

* chor: convert project actions to vitest and fix pretty-formnat

* chore: convert code-generator spec to jest

* chore: convert spec options spec to jest

* chore: convert project config ipc to jest

* chore: convert projectconfigmanager tests to jest

* chore: convert project lifecycle manager tests to jest

* chore: conver poller spec to jest

* chore: convert browser data source to jest

* chore: convert cloud dats source to jest

* chore: convert gitdatasource unit tests to jest

* chore: convert FileDataSource to jest

* chore: convert git data source to jest

* chore: convert graphql data source to jest

* chore: convert project data source to jest

* chore: convert revelvant runs data source to jest

* chore: convert relevant run specs data source to jest

* chore: convert remote request data source to jest

* chore: convert versions data source spec to jest

* chore: convert wizard data source spec to jest

* chore: convert document node builder to jest

* chore: convert has TypeScript to jest

* chore: convert test counts spec to jest

* chore: convert weighted choice spec to jest

* chore: convert config file updater to jest

* clean up files to allow tests to run in band but out of order, add README, cleanup unused scripts and dependencies

* fix deprecation warning from ts-jest via isolated modules

* chore: adjust expected result count

* chore: clean up types

* turn back on no implicit any and reinstall graphql package in frontend shared

* fix isFocusSupported mock

* chore: copy over the old data-context-helper into the server as the one in the data-context package is written in jest now

* chore: fix code review findings from cursor

* fix incorrect expect async throw

* chore: remove use of this in projectData source

* add docs to copied data-context helper and fix cursor detected issue
2025-09-30 17:16:17 -04:00
Bill Glesias 556243acd7 chore: release 15.3.0 (#32553) 2025-09-23 12:51:17 -04:00
renovate[bot] 689b2b26cd dependency: update dependency electron to v36.8.1 (#32371)
* chore(deps): update dependency electron to v36.8.1

* bump node version

* update workflow files + publish-binary script

* bump base-internal images

* remove current node version from additional test

* bump circleci cache

* allow node_version env var

* Update .circleci/workflows.yml

* index on renovate/electron-36.x: 95d10b1d53 Merge branch 'develop' into renovate/electron-36.x

* index on renovate/electron-36.x: 95d10b1d53 Merge branch 'develop' into renovate/electron-36.x

* index on renovate/electron-36.x: 95d10b1d53 Merge branch 'develop' into renovate/electron-36.x

* bump types/node

* update some node versions

* update integrity check and electron instrcutions

* correctly call net.family with net family type

* Revert "correctly call net.family with net family type"

This reverts commit 505ff949a8.

* update location of note types

* more clearly type frame

* fix type issues in agent.ts file

* fix agent call

* replace proxyquire in webpack-dev-server package

* add changelog

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-09-18 10:32:19 -04:00
Cacie Prins acba4dc487 chore: vitest project config (#32447)
* chore: align on vitest versions across the repo, add project vitest config

* Apply suggestion from @cacieprins

* Apply suggestion from @cacieprins

* Apply suggestion from @cacieprins

* Apply suggestion from @cacieprins

* Update package.json

* lockfile, align vite with vitest

* add vitest configs to pkgs that were missing it

* update build scripts

* fix test pattern for vite-dev-server

* correct the path for packages/types tests

* downgrade vite-dev-server to vitest 2
2025-09-15 12:53:12 -04:00
renovate[bot] 387a2d8264 chore(deps): update dependency rimraf to v6 (#32448)
* chore(deps): update dependency rimraf to v6

* empty commit

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-09-12 14:53:18 -04:00
Bill Glesias 058e7d26c0 chore: release 15.2.0 (#32453) 2025-09-09 14:54:38 -04:00
Brian Mann a07062d13e fix(dns-cache): prevent local family cache collisions (#32403)
* bump node types

* add network tests to terminals

* dont use the web-config, just use regular TS so that it compiles much faster and line numbers work

* fix missing promise

* cache families to include host + port; fix types

* fix incorrect cacheKey

* fix skipped tests and updated error messages likely due to node upgrade

* cleanup a ton of test context

* Add changelog entry

* close servers after each test

* Update packages/network/lib/agent.ts

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

* update tests to pass inside + outside of docker

* try this in docker

* try to enable ipv6 in circleci docker config

* escape

* dont run this test in CI

* revert

* skip the other test

* maybe this works

* try this

* Update .circleci/workflows.yml

* oops

* i do not think we need sudo

* test

* test

* try machine

* refactor

* that was weird

* that was weird

* mess with daemon and sudo

* escape <

* modify /etc/hosts

* Update .circleci/workflows.yml

* Update .circleci/workflows.yml

* Update .circleci/workflows.yml

* remove dead code

* Update branch condition in CircleCI workflow

* Update .circleci/workflows.yml

* clean up

* clean up

* fix cy in cy tests

* fix cy in cy

* Update packages/server/lib/server-base.ts

---------

Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2025-09-08 10:02:16 -05:00
Cacie Prins 4b439a6e4e chore: upgrade lint-staged (#32415) 2025-09-03 14:29:43 -04:00
Bill Glesias 591de461fd chore: release 15.1.0 (#32401) 2025-09-02 14:31:16 -04:00
renovate[bot] 61307b0994 chore(deps): remove sharp dependency resolution (#32378)
* chore(deps): update dependency sharp to v0.32.6 [security]

* remove resolutions from package

* update yarnlock

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-09-02 11:27:49 -04:00
Bill Glesias d39eee3776 chore: patch dtslint to work until we can find a replacement (#32383) 2025-08-28 17:18:34 -04:00
Jennifer Shehane 90310ae7f9 feat: extend Cypress.Keyboard.Keys and cy.press to support (almost) all keyboard keys (#31496)
* feat: extend Cypress.Keyboard.Keys and cy.press to support all keyboard keys

* Update cli/types/cypress.d.ts

* reference urls for codepoints

* type defs for expanded keys; tests

* changelog

* rm modifier keys temporarily - see WIP @ feat/key-press-modifier-keys

* Add pr link to changelog

* reduce repetition with key codes; remove unsupported capslock keycode

* only "key" special function keys in Cypress.Keyboard.Keys - otherwise, support any single character even if multiple codepoints

* do not refocus on f6 - f6 behavior keyup is indeterminate, so do not assert in that special case

* clean up keyboard key types, clean up duplicate def from merge

* various cleanup - wip - need multi-codepoint fix

* support multi-codepoint characters

* properly dispatch each part of a multipart utf-8 character

* fix import

* fix dtslint

* tscheck

* fix spacing

* Apply suggestions from code review

* changelog

* changelog

* ensure input actions are released in bidi; add test for keypress and input events for firefox

* fix keypress & input events in chrome

* consistent debug

* rm debug logging from input fixture

* some typos, changelog version

* fix toSupportedKey guard fn to properly reject non-strings

* add Space as named key, remove warnings re legacy firefox

* fix space

* support single-digit number keys

* remove support for F-keys

* add test cmd to types pkg

* rm failing vitest project config

* fix changelog

* clean up types a bit for single digit numbers

* more updates

---------

Co-authored-by: Cacie Prins <cacie@cypress.io>
Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
2025-08-28 10:31:49 -04:00
Cacie Prins 81f2af0e7f chore: ensure @packages/stderr-filtering tests run successfully in CI (#32342)
* fix broken Filter.spec.ts

* ensure stderr unit tests run
2025-08-25 09:50:40 -04:00
renovate[bot] e4e3f84bc7 dependency: update dependency tar to v6.2.1 [security] (#32229)
* chore(deps): update dependency tar to v6.2.1 [security]

* bump other version of tar

* add changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2025-08-20 14:30:32 -04:00
Bill Glesias f6e0744e38 breaking: update execa from 1.0.0 to 4.1.0 (#32238)
* breaking: update execa from 1.0.0 to 4.1.0 which breaks the yielded cy.exec() object from yielding property code and instead yields exitCode

* fix launchpad tests on linux

* Update cli/CHANGELOG.md

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-08-18 11:52:24 -04:00
Cacie Prins 53c32e61b1 chore: partial eslint migration (mount-utils, cypress-schematic, puppeteer) (#32113)
* puppeteer eslint

* mount-utils

* cypress-schematic

* update guide with status

* fix import of eslint config, add nonstandard build artifact pattern to schematic ignores

* fix lint staged on chunk 1
2025-08-13 11:29:53 -04:00
Bill Glesias 19df26c279 chore: update babel to latest (#32203) 2025-08-12 15:07:23 -04:00
Bill Glesias 83467ad5ae Merge branch 'develop' into merge_develop_15 2025-08-06 19:29:26 -04:00
Bill Glesias a3924071c1 Merge branch 'develop' into merge_develop_15 2025-08-05 16:23:25 -04:00
Mike McCready 2533e2b9e1 chore(deps): remove check-dependencies (#32157) 2025-08-05 14:33:34 -04:00
Cacie Prins e0452462cc chore: modify how eslint is invoked from lint-staged for eslint migration (#32149)
* each pkg is responsible for its own lint-staged, because lerna does not play nicely with lint-staged

* use on hierarchical lint-staged only for new eslint packages

* rm unnecessary lint script

* add blurb about lint-staged to the guide

* fix for recursion

* correct glob for old eslint
2025-08-04 12:49:24 -04:00
Cacie Prins ed0819de25 Merge branch 'develop' into release/15.0.0 2025-07-30 11:40:28 -04:00
Cacie Prins d5c8885dd4 chore: Eslint migration foundation + migrate npm/grep package (#32046)
* foundational monorepo pkg for shared eslint config

* add a migration guide

* adds new eslint to grep

* add troubleshooting guide

* fix eslint config jiti issue

* fix a bit

* Update guides/eslint-migration.md

* restore console.error to grep, export collection of cli related rules from eslint-config

* fix linting of primary eslint config pkg

* fix glob exclusion

* uses an explicit expansion of the package patterns for eslint migration - once migration is complete, this will clean up

* lockfile

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-07-28 12:07:52 -04:00
Jennifer Shehane 5cad25c7ab Merge branch 'develop' into release/15.0.0 2025-07-25 09:44:01 -04:00
Cacie Prins d1478d8961 chore: release 14.5.3 (#32099) 2025-07-24 15:13:32 -04:00
Cacie Prins 7825936902 chore(dep): upgrade cypress/request to 3.0.9 to address form-data vulnerabilities (#32096)
* chore(deps): upgrade @cypress/request

* changelog
2025-07-24 15:10:57 -04:00
Cacie Prins 5b0a7e2f88 chore: revert release 14.5.3
This reverts commit 72dd9de670.
2025-07-24 11:15:35 -04:00
Cacie Prins 72dd9de670 chore: release 14.5.3 (#32093) 2025-07-24 09:55:10 -04:00
Bill Glesias f422950883 chore: release 14.5.2 (#32028) 2025-07-15 14:50:16 -04:00
Cacie Prins 6b9f27c95d dependency: electron@36.4.0 (#31912)
* dependency: update Electron to 34

* setup workflows to run against binary branch and on all tests

* changelog entry

* node version did bump minorly

* Update base-internal image to match new node version

* fix typo

* changelog updates

* bumping to newest version just released today - hopefully solves glibc error

* fix cy in cy

* remove extra register_ts_node require

* updated lockfile

* upgrade better-sqlite3

* changelog

* update electron in top level package.json

* ts issue, update to use binary workflow for e35, update ancillary deps

* update gh issue templates

* bump missed image names and engines field

* node 22

* snapgen?

* ts issue, log errors even if err.stderr/stdout is null

* more logging

* defer http-proxy common.js due to regexp issue in v8 13.4.* - 13.8.91

* update images for node 22.15.1, use bullseye instead of buster for bettersqlite

* use bullseye image for glibc2.31 build of bettersqlite

* use electron-36 publish binary branch

* node-abi update, set http-proxy deferred in darwin

* update .node-version

* attempt to patch http-proxy to immediately defer  http-proxy/lib/http-proxy/common.js

* empty commit [run ci]

* better patch?

* changelog

* changelog

* Updates v8 snapshots to fix windows build (#31918)

* use node 22 in the v8 snapshot update workflow

* index on windows-v8-snapshots: a013464197 use node 22 in the v8 snapshot update workflow

* index on windows-v8-snapshots: a013464197 use node 22 in the v8 snapshot update workflow

* index on windows-v8-snapshots: a013464197 use node 22 in the v8 snapshot update workflow

* run workflows on windows/mac

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>

* update protocol system test snapshots (#31925)

* use snapshot to verify the error message on invalid json (#31926)

* chore: account for all node: internal stacks when trying to calculate the code frame. Accounts additionally for node:diagnostics_channel (#31935)

* Fixes electron 36 integrity checks (#31956)

* update the fs.readFileSync integrity check expectation

* maybe this fn is missing from the expected stack?

* more debug, change the stack up a little

* actual fn name is traceSync

* logging

* logging

* remove logging from integrity check

* maybe circle api changed?

* correct params

* inspect stack frames for differences

* have to manually serialize the stack frames

* change expectation

* update expected global keys

* additional allow list

* update key allow list

* increase zipfile size limit on non-windows builds

* revert logging changes

* Update scripts/binary/binary-integrity-check-source.js

* increase timeout to 120s for darwin fsevents/native module test (#31975)

* print out stdout for darwin test

* try and fix test

* update readme re: browsers-internal images, ensure module_api_spec binary test uses correct electron version

* Update .circleci/workflows.yml

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

* Update .circleci/workflows.yml

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

* trigger 15.0.0 binary pipeline rather than electron-36 specific one

* Update cli/CHANGELOG.md

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

* Update cli/CHANGELOG.md

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-07-07 13:03:13 -04:00
Bill Glesias a018700da3 chore: add Cypress 15 Welcome Screen (#31966)
* chore: add the Cypress 15 Welcome Splash Page

* fix failing unit test because of release 15 happenstance

* Update packages/launchpad/src/welcome/MajorVersionWelcome.vue

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

* fix dates to be july 15th and not july 14th

---------

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2025-07-03 14:04:05 -04:00
Bill Glesias fa25461cb0 chore: release 14.5.1 (#31980) 2025-07-01 15:14:05 -04:00
Bill Glesias 79469f5616 chore: release 14.5.0 (#31900) 2025-06-17 13:28:10 -04:00
renovate[bot] d51db04755 chore(deps): update dependency hasha to v5.2.2 (#31880)
* chore(deps): update dependency hasha to v5.2.2

* use hashs instead of copied code

* chore(deps): update dependency hasha to v5.2.2

* move to dep instead of devDep

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-06-16 16:58:37 -04:00
renovate[bot] 8c915ca712 chore(deps): remove dependency http-server (#31866)
* chore(deps): update dependency http-server to v13

* chore: remove http-server as it's not used anywhere

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-06-11 16:34:42 -04:00
Bill Glesias a0a4eb1b2c chore: release 14.4.1 (#31820) 2025-06-03 13:17:49 -04:00
renovate[bot] 2b11d4f323 chore(deps): update dependency yaml to v2.8.0 (#31765)
* chore(deps): update dependency yaml to v2.8.0

* empty commit

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-05-21 16:56:37 -04:00
Bill Glesias 92aa2737cc chore: release 14.4.0 (#31745) 2025-05-20 12:45:32 -04:00
renovate[bot] 91d5a2ee5f chore(deps): update dependency sinon-chai to v3.7.0 (#31716)
* chore(deps): update dependency sinon-chai to v3.7.0

* empty commit

* bump circle cache

* add sinon-chai to base package.json as its used to test base level scripts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-05-15 11:05:03 -04:00
renovate[bot] b07ea0e988 chore(deps): update dependency devtools-protocol to v0.0.1459876 (#31708)
* chore(deps): update dependency devtools-protocol to v0.0.1459876

* empty commit

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-05-14 11:03:59 -04:00
Bill Glesias 242fb5661a chore: release 14.3.3 (#31650) 2025-05-06 13:35:05 -04:00
Bill Glesias b2a2c90242 chore: release 14.3.2 (#31565) 2025-04-22 15:13:38 -04:00
renovate[bot] 6cc2f01174 chore(deps): update dependency detect-port to v2 (#31553)
* chore(deps): update dependency detect-port to v2

* empty commit

* remove types that are no longer supported

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-04-21 14:18:07 -04:00
Bill Glesias 8e97a0d736 chore: release 14.3.1 (#31538)
* chore: release 14.3.1

* Update cli/CHANGELOG.md

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-04-17 12:53:03 -04:00
Bill Glesias 83e0d3c794 chore: release 14.3.0 (#31467) 2025-04-08 13:38:31 -04:00