Skip to content

Commit a0259e6

Browse files
committed
Merge branch 'develop' into tgriesser/spike/spike
* develop: chore: fix changlelog section parsing and reference right ENV (#25633) feat: Debug page [IATR] (#25488) fix(deps): update dependency underscore.string to v3.3.6 🌟 (#25574) chore: Use upstream cypress-testing-library again (#25548) fix: match alternate edge version string format (#25457) chore: update name for graphql batch operations (#25610) chore: clean up config for external contibutors (#25552) chore: fix childProcess.execSync encoding (#25625) chore: update next-version to handle using the next bump package.json… (#25599) chore: update packages/example deployment script and cleanup package/example (#25091) fix: allow version 9 of the babel-loader peer dependency (#25569) docs: remove cypress-example-todomvc-redux from release-process (#25613) chore: bump version and remove misleading changelog entry (#25612)
2 parents ef52e26 + 6f1653c commit a0259e6

File tree

223 files changed

+14903
-885
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+14903
-885
lines changed

.circleci/config.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ jobs:
3232
3333
cancel_build () {
3434
echo "Canceling the CI build..."
35-
curl --request POST \
36-
--url https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID/cancel \
37-
--header "Circle-Token: ${CIRCLE_TOKEN}"
38-
sleep 30 # Give cancellation a chance to run. This script then won't continue running.
39-
exit 1 # If cancellation didn't run for some reason, fail the build.
35+
circleci-agent step halt
4036
}
4137
4238
TRIGGER_INSTRUCTIONS="to trigger CI , include 'run ci' in the commit message or click the 'Trigger Pipeline' button in the CircleCI UI."
@@ -71,5 +67,4 @@ workflows:
7167
# the setup-workflow workflow is always triggered.
7268
setup-workflow:
7369
jobs:
74-
- verify-ci-should-run:
75-
context: workflow-setup
70+
- verify-ci-should-run

.circleci/workflows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mainBuildFilters: &mainBuildFilters
2828
only:
2929
- develop
3030
- /^release\/\d+\.\d+\.\d+$/
31-
- 'mschile/chrome_memory_fix'
31+
- 'emily/next-version'
3232

3333
# usually we don't build Mac app - it takes a long time
3434
# but sometimes we want to really confirm we are doing the right thing
@@ -130,7 +130,7 @@ commands:
130130
- run:
131131
name: Check current branch to persist artifacts
132132
command: |
133-
if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "release/"* && "$CIRCLE_BRANCH" != "mschile/chrome_memory_fix" ]]; then
133+
if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "release/"* && "$CIRCLE_BRANCH" != "emily/next-version" ]]; then
134134
echo "Not uploading artifacts or posting install comment for this branch."
135135
circleci-agent step halt
136136
fi

cli/CHANGELOG.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
11
<!-- See the ../guides/writing-the-cypress-changelog.md for details on writing the changelog. -->
2+
## 12.5.0
3+
4+
_Released 01/31/2023 (PENDING)_
5+
6+
**Features:**
7+
8+
- Easily debug failed CI test runs right from your local Cypress app with the new Debug page, powered by Cypress Cloud. For more details, see the [Debug documentation](https://on.cypress.io/debug-page). Addressed in [#25488](https://github.com/cypress-io/cypress/pull/25488).
9+
10+
**Bugfixes:**
11+
12+
- Fixed an issue where alternative Microsoft Edge Beta, Canary, and Dev binary versions were not being discovered by Cypress.
13+
Fixes [#25455](https://github.com/cypress-io/cypress/issues/25455).
14+
15+
**Dependency Updates:**
16+
17+
- Upgraded [`underscore.string`](https://github.com/esamattis/underscore.string/blob/HEAD/CHANGELOG.markdown) from `3.3.5` to `3.3.6` to reference rebuilt assets after security patch to fix regular expression DDOS exploit.
18+
Fixed in [#25574](https://github.com/cypress-io/cypress/pull/25574).
19+
220
## 12.4.1
321

4-
_Released 01/26/2023_
22+
_Released 01/27/2023_
523

624
**Bugfixes:**
725

826
- Fixed a regression from Cypress [12.4.0](https://docs.cypress.io/guides/references/changelog#12-4-0) where Cypress was not exiting properly when running multiple Component Testing specs in `electron` in `run` mode. Fixes [#25568](https://github.com/cypress-io/cypress/issues/25568).
9-
- Fixed an issue where alternative Microsoft Edge Beta and Canary binary names were not being discovered by Cypress. Fixes [#25455](https://github.com/cypress-io/cypress/issues/25455).
1027

1128
**Dependency Updates:**
1229

cli/lib/tasks/cache.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ const clear = () => {
3333

3434
const prune = () => {
3535
const cacheDir = state.getCacheDir()
36-
const currentVersion = util.pkgVersion()
36+
const checkedInBinaryVersion = util.pkgVersion()
3737

3838
let deletedBinary = false
3939

4040
return fs.readdirAsync(cacheDir)
4141
.then((versions) => {
4242
return Bluebird.all(versions.map((version) => {
43-
if (version !== currentVersion) {
43+
if (version !== checkedInBinaryVersion) {
4444
deletedBinary = true
4545

4646
const versionDir = join(cacheDir, version)
@@ -51,7 +51,7 @@ const prune = () => {
5151
})
5252
.then(() => {
5353
if (deletedBinary) {
54-
logger.always(`Deleted all binary caches except for the ${currentVersion} binary cache.`)
54+
logger.always(`Deleted all binary caches except for the ${checkedInBinaryVersion} binary cache.`)
5555
} else {
5656
logger.always(`No binary caches found to prune.`)
5757
}

cli/test/lib/tasks/cache_spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,14 @@ describe('lib/tasks/cache', () => {
136136
it('deletes cache binaries for all version but the current one', async () => {
137137
await cache.prune()
138138

139-
const currentVersion = util.pkgVersion()
139+
const checkedInBinaryVersion = util.pkgVersion()
140140

141141
const files = await fs.readdir('/.cache/Cypress')
142142

143143
expect(files.length).to.eq(1)
144144

145145
files.forEach((file) => {
146-
expect(file).to.eq(currentVersion)
146+
expect(file).to.eq(checkedInBinaryVersion)
147147
})
148148

149149
defaultSnapshot()
@@ -155,14 +155,14 @@ describe('lib/tasks/cache', () => {
155155
await fs.removeAsync(dir)
156156
await cache.prune()
157157

158-
const currentVersion = util.pkgVersion()
158+
const checkedInBinaryVersion = util.pkgVersion()
159159

160160
const files = await fs.readdirAsync('/.cache/Cypress')
161161

162162
expect(files.length).to.eq(1)
163163

164164
files.forEach((file) => {
165-
expect(file).to.eq(currentVersion)
165+
expect(file).to.eq(checkedInBinaryVersion)
166166
})
167167

168168
defaultSnapshot()

guides/release-process.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ In the following instructions, "X.Y.Z" is used to denote the [next version of Cy
175175
176176
23. Check all `cypress-test-*` and `cypress-example-*` repositories, and if there is a branch named `x.y.z` for testing the features or fixes from the newly published version `x.y.z`, update that branch to refer to the newly published NPM version in `package.json`. Then, get the changes approved and merged into that project's main branch. For projects without a `x.y.z` branch, you can go to the Renovate dependency issue and check the box next to `Update dependency cypress to X.Y.Z`. It will automatically create a PR. Once it passes, you can merge it. Try updating at least the following projects:
177177
- [cypress-example-todomvc](https://github.com/cypress-io/cypress-example-todomvc/issues/99)
178-
- [cypress-example-todomvc-redux](https://github.com/cypress-io/cypress-example-todomvc-redux/issues/1)
179178
- [cypress-realworld-app](https://github.com/cypress-io/cypress-realworld-app/issues/41)
180179
- [cypress-example-recipes](https://github.com/cypress-io/cypress-example-recipes/issues/225)
181180
- [cypress-fiddle](https://github.com/cypress-io/cypress-fiddle/issues/5)

npm/create-cypress-tests/scripts/example.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ program
1313
await fs.remove(destinationPath)
1414
await fs.copy(exampleFolder, destinationPath, { recursive: true })
1515

16-
console.log(`✅ Example was successfully created at ${chalk.cyan(destination)}`)
16+
console.log(`✅ E2E Examples were successfully created at ${chalk.cyan(destination)}`)
1717

18-
await fs.copy(path.join(__dirname, 'example-tsconfig.json'), path.join(destination, 'tsconfig.json'))
18+
await fs.copy(path.join(__dirname, 'examples', 'cypress'), path.join(destination))
19+
20+
console.log(`✅ Cypress Setup was successfully created at ${chalk.cyan(destination)}`)
21+
22+
await fs.copy(path.join(__dirname, 'examples', 'tsconfig.json'), path.join(destination, 'tsconfig.json'))
1923

2024
console.log(`✅ tsconfig.json was created for ${chalk.cyan(destination)}`)
2125
})
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// ***********************************************************
2+
// This example support/component.js is processed and
3+
// loaded automatically before your test files.
4+
//
5+
// This is a great place to put global configuration and
6+
// behavior that modifies Cypress.
7+
//
8+
// You can change the location of this file or turn off
9+
// automatically serving support files with the
10+
// 'supportFile' configuration option.
11+
//
12+
// You can read more here:
13+
// https://on.cypress.io/configuration
14+
// ***********************************************************
15+
16+
// Import commands.js using ES2015 syntax:
17+
import './commands'
18+
19+
// Alternatively you can use CommonJS syntax:
20+
// require('./commands')

0 commit comments

Comments
 (0)