Skip to content

Commit

Permalink
chore: update protocol from develop (#26433)
Browse files Browse the repository at this point in the history
* chore(deps): bump in json5 in system-tests projects (#26379)

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

* chore(deps): bump set-getter from 0.1.0 to 0.1.1 (#26345)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <[email protected]>

* chore(deps): bump vm2 from 3.9.5 to 3.9.14 (#26335)

Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.5 to 3.9.14.
- [Release notes](https://github.com/patriksimek/vm2/releases)
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md)
- [Commits](patriksimek/vm2@3.9.5...3.9.14)

---
updated-dependencies:
- dependency-name: vm2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <[email protected]>

* fix: Detect CT framework when unconfigured project opened with `--component` (#26306)

Co-authored-by: Ryan Manuel <[email protected]>

* chore: created a new github action to handle new comments better (#26234)

* chore: created a new github action to handle new comments better
---------

Co-authored-by: Emily Rohrbough <[email protected]>
Co-authored-by: Matt Schile <[email protected]>

* chore: remove debug logging on by default (#26411)

* fix: remove logging

* added changelog entry

* chore(dependency): tweaking renovate bot settings (#26428)

* Update renovate.json

* Update renovate.json

* chore: update devtools protocol (#26410)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Emily Rohrbough <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Plummer <[email protected]>
Co-authored-by: Ryan Manuel <[email protected]>
Co-authored-by: Ben M <[email protected]>
Co-authored-by: Matt Schile <[email protected]>
Co-authored-by: Lachlan Miller <[email protected]>
  • Loading branch information
8 people authored Apr 5, 2023
1 parent c227362 commit a36fefb
Show file tree
Hide file tree
Showing 34 changed files with 197 additions and 277 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/triage_add_stale_issue_to_board.yml

This file was deleted.

104 changes: 0 additions & 104 deletions .github/workflows/triage_closed_issue_comment.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/triage_handle_new_comments.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Handle Issue/PR Comment Workflow'
on:
# makes this workflow reusable
workflow_call:
secrets:
TRIAGE_BOARD_TOKEN:
required: true

issue_comment:
types: [created]

jobs:
handle-comment-scenarios:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
repository: 'cypress-io/release-automations'
ref: 'master'
ssh-key: ${{ secrets.WORKFLOW_DEPLOY_KEY }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Run comment_workflow.js Script
uses: actions/github-script@v6
with:
github-token: ${{ secrets.TRIAGE_BOARD_TOKEN }}
script: |
const script = require('./scripts/triage/comment_workflow.js')
await script.handleComment(github, context);
4 changes: 4 additions & 0 deletions cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ _Released 04/11/2023 (PENDING)_
**Bugfixes:**

- Capture the [Azure](https://azure.microsoft.com/) CI provider's environment variable [`SYSTEM_PULLREQUEST_PULLREQUESTNUMBER`](https://learn.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#system-variables-devops-services) to display the linked PR number in the Cloud. Addressed in [#26215](https://github.com/cypress-io/cypress/pull/26215).
- Fixed an issue in the onboarding wizard where project framework & bundler would not be auto-detected when opening directly into component testing mode using the `--component` CLI flag. Fixes [#22777](https://github.com/cypress-io/cypress/issues/22777).

**Dependency Updates:**

- Upgraded [`minimist`](https://www.npmjs.com/package/minimist) from `1.2.6` to `1.2.8` to address this [CVE-2021-44906](https://github.com/advisories/GHSA-xvch-5gv4-984h) NVD security vulnerability. Addressed in [#26254](https://github.com/cypress-io/cypress/pull/26254).

**Misc:**
- Removed unintentional debug logs. Address in [#26411](https://github.com/cypress-io/cypress/pull/26411)

## 12.9.0

_Released 03/28/2023_
Expand Down
2 changes: 0 additions & 2 deletions packages/app/src/graphql.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import Debug from 'debug'
import { useSubscription as urqlUseSubscription } from '@urql/vue'

localStorage.debug = 'cypress:app:graphql-subscription'

const debugSubscription = Debug('cypress:app:graphql-subscription')

export const useSubscription: typeof urqlUseSubscription = (...args) => {
Expand Down
4 changes: 4 additions & 0 deletions packages/data-context/src/actions/ProjectActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ export class ProjectActions {
this.ctx.lifecycleManager.setAndLoadCurrentTestingType(type)
}

async initializeProjectSetup (type: TestingType) {
await this.ctx.lifecycleManager.initializeProjectSetup(type)
}

async setCurrentProject (projectRoot: string) {
await this.updateProjectList(() => this.api.insertProjectToCache(projectRoot))

Expand Down
25 changes: 21 additions & 4 deletions packages/data-context/src/data/ProjectLifecycleManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -752,10 +752,27 @@ export class ProjectLifecycleManager {
if (this._projectRoot && testingType && await this.waitForInitializeSuccess()) {
this.setAndLoadCurrentTestingType(testingType)

if (testingType === 'e2e' && !this.ctx.migration.needsCypressJsonMigration() && !this.isTestingTypeConfigured(testingType)) {
// E2E doesn't have a wizard, so if we have a testing type on load we just create/update their cypress.config.js.
await this.ctx.actions.wizard.scaffoldTestingType()
}
await this.initializeProjectSetup(testingType)
}
}

/**
* Prepare the setup process for a project if one exists, otherwise complete setup
*
* @param testingType
* @returns
*/
async initializeProjectSetup (testingType: TestingType) {
if (this.isTestingTypeConfigured(testingType)) {
return
}

if (testingType === 'e2e' && !this.ctx.migration.needsCypressJsonMigration()) {
// E2E doesn't have a wizard, so if we have a testing type on load we just create/update their cypress.config.js.
await this.ctx.actions.wizard.scaffoldTestingType()
} else if (testingType === 'component') {
await this.ctx.actions.wizard.detectFrameworks()
await this.ctx.actions.wizard.initialize()
}
}

Expand Down
12 changes: 1 addition & 11 deletions packages/graphql/src/schemaTypes/objectTypes/gql-Mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,7 @@ export const mutation = mutationType({
resolve: async (source, args, ctx) => {
ctx.actions.project.setAndLoadCurrentTestingType(args.testingType)

// if necessary init the wizard for configuration
if (ctx.coreData.currentTestingType && !ctx.lifecycleManager.isTestingTypeConfigured(ctx.coreData.currentTestingType)) {
// Component Testing has a wizard to help users configure their project
if (ctx.coreData.currentTestingType === 'component') {
await ctx.actions.wizard.detectFrameworks()
await ctx.actions.wizard.initialize()
} else {
// E2E doesn't have such a wizard, we just create/update their cypress.config.js.
await ctx.actions.wizard.scaffoldTestingType()
}
}
await ctx.actions.project.initializeProjectSetup(args.testingType)

return {}
},
Expand Down
33 changes: 25 additions & 8 deletions packages/launchpad/cypress/e2e/open-mode.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,31 @@ describe('Launchpad: Open Mode', () => {
})
})

it('goes to component test onboarding when launched with --component and not configured', () => {
cy.scaffoldProject('launchpad')
cy.openProject('launchpad', ['--component'])
cy.visitLaunchpad()
cy.skipWelcome()
cy.get('[data-cy=header-bar-content]').contains('component testing', { matchCase: false })
// Component testing is not configured for the todo project
cy.get('h1').should('contain', 'Project setup')
describe('when launched with --component and not configured', () => {
beforeEach(() => {
cy.scaffoldProject('react-vite-ts-unconfigured')
cy.openProject('react-vite-ts-unconfigured', ['--component'])
cy.visitLaunchpad()
cy.skipWelcome()
})

it('goes to component test onboarding', () => {
cy.get('[data-cy=header-bar-content]').contains('component testing', { matchCase: false })
// Component testing is not configured for the todo project
cy.get('h1').should('contain', 'Project setup')
})

it('detects CT project framework', () => {
cy.get('[data-testid="select-framework"]').within(() => {
cy.contains('React.js').should('be.visible')
cy.contains('(detected)').should('be.visible')
})

cy.get('[data-testid="select-bundler"]').within(() => {
cy.contains('Vite').should('be.visible')
cy.contains('(detected)').should('be.visible')
})
})
})

// since circle cannot have firefox installed by default,
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
"chai-uuid": "1.0.6",
"chrome-har-capturer": "0.13.4",
"cross-env": "6.0.3",
"devtools-protocol": "0.0.839267",
"devtools-protocol": "0.0.1124027",
"eol": "0.9.1",
"eventsource": "2.0.2",
"https-proxy-agent": "3.0.1",
Expand Down
7 changes: 3 additions & 4 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": [
"config:base",
":semanticCommitScopeDisabled"
"config:base"
],
"automerge": false,
"major": {
Expand All @@ -18,11 +17,11 @@
],
"commitMessageSuffix": "🌟",
"prHourlyLimit": 2,
"prConcurrentLimit": 10,
"prConcurrentLimit": 5,
"updateNotScheduled": false,
"timezone": "America/New_York",
"schedule": [
"before 5am every weekday"
"every weekend"
],
"packageRules": [
{
Expand Down
6 changes: 3 additions & 3 deletions system-tests/projects/angular-13/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3789,9 +3789,9 @@ json-schema-traverse@^1.0.0:
integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==

json5@^2.1.2, json5@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c"
integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==
version "2.2.3"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==

[email protected]:
version "3.0.0"
Expand Down
6 changes: 3 additions & 3 deletions system-tests/projects/angular-14/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3737,9 +3737,9 @@ json-schema-traverse@^1.0.0:
integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==

json5@^2.1.2, json5@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c"
integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==
version "2.2.3"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==

[email protected]:
version "3.1.0"
Expand Down
6 changes: 3 additions & 3 deletions system-tests/projects/angular-15/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3515,9 +3515,9 @@ json-schema-traverse@^1.0.0:
integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==

json5@^2.1.2, json5@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c"
integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==
version "2.2.3"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==

[email protected]:
version "3.2.0"
Expand Down
6 changes: 3 additions & 3 deletions system-tests/projects/angular-cli-configured/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3697,9 +3697,9 @@ json-schema-traverse@^1.0.0:
integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==

json5@^2.1.2, json5@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c"
integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==
version "2.2.3"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==

[email protected]:
version "3.0.0"
Expand Down
6 changes: 3 additions & 3 deletions system-tests/projects/angular-cli-unconfigured/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3697,9 +3697,9 @@ json-schema-traverse@^1.0.0:
integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==

json5@^2.1.2, json5@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c"
integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==
version "2.2.3"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==

[email protected]:
version "3.0.0"
Expand Down
6 changes: 3 additions & 3 deletions system-tests/projects/angular-custom-config/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3726,9 +3726,9 @@ json-schema-traverse@^1.0.0:
integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==

json5@^2.1.2, json5@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c"
integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==
version "2.2.3"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==

[email protected]:
version "3.0.0"
Expand Down
Loading

0 comments on commit a36fefb

Please sign in to comment.