Skip to content

Conversation

cacieprins
Copy link
Contributor

  • Closes

Additional details

While the line count of the main workflows.yml has increased quite a bit, this is because circleci config pack unrolls/expands all anchors in the source yml files.

circleci config pack uses the FYAML convention to be able to break yaml files into smaller, easier to digest chunks.

This PR:

  • migrates workflows.yml to .circleci/src/workflows
  • defines a new pull-request workflow, which at the moment is identical to linux-x64 except it does not include references to any of the jobs excluded by the main build filters
  • migrates config.yml to .circleci/src/config
  • adds a husky pre-commit hook to pack directories in .circleci/src to a yaml file defined by the directory name in .circleci/
  • additionally, runs circleci config validate on these packed yml files, to ensure that they are valid circleci configs

Steps to test

How has the user experience changed?

PR Tasks

@cacieprins cacieprins marked this pull request as draft September 10, 2025 19:43
@cacieprins cacieprins marked this pull request as ready for review September 12, 2025 15:29
Copy link

cypress bot commented Sep 12, 2025

cypress    Run #65552

Run Properties:  status check failed Failed #65552  •  git commit 95ebbd1b1e: fix export
Project cypress
Branch Review use-pack-for-circle
Run status status check failed Failed #65552
Run duration 39m 29s
Commit git commit 95ebbd1b1e: fix export
Committer Cacie Prins
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 5
Tests that did not run due to a developer annotating a test with .skip  Pending 1012
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 19068
View all changes introduced in this branch ↗︎

Warning

Partial Report: The results for the Application Quality reports may be incomplete.

UI Coverage  44.99%
  Untested elements 187  
  Tested elements 157  
Accessibility  97.7%
  Failed rules  4 critical   8 serious   2 moderate   2 minor
  Failed elements 109  

Tests for review

Failed  src/components/Collapsible.cy.tsx • 1 failed test • frontend-shared-ct

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay
Flakiness  commands/files.cy.js • 1 flaky test • 5x-driver-firefox

View Output

Test Artifacts
src/cy/commands/files > #readFile > retries to read when ENOENT
    </td>
  </tr></table>
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox

View Output

Test Artifacts
... > stops waiting when an xhr request is canceled
    </td>
  </tr></table>
Flakiness  commands/waiting.cy.js • 1 flaky test • 5x-driver-chrome:beta

View Output

Test Artifacts
... > errors > throws when waiting for 2nd response to route Test Replay
Flakiness  cypress-origin-communicator.cy.ts • 1 flaky test • app-e2e

View Output

Test Artifacts
Cypress In Cypress Origin Communicator > primary origin memory leak prevention > cleans up the primaryOriginCommunicator events when navigating away from the /specs to /runs Test Replay Screenshots
Flakiness  react.cy.ts • 1 flaky test • vite-dev-server

View Output

Test Artifacts
Working with vite5.4.18-react > MissingReact: should fail, rerun, succeed Test Replay Screenshots

@@ -278,7 +278,7 @@ describe('open', () => {
errCb(err)

expect(process.exit).toHaveBeenCalledWith(1)
// eslint-disable-next-line no-console

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

linting was failing without these changes

value: << pipeline.git.branch >>
- not:
matches:
pattern: /^pull\/[0-9]+/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

contributor prs still use the contributor linux-x64 workflow, for now. for an idea about how we can simplify that: #32494

@@ -0,0 +1,2844 @@
version: 2.1

chrome-stable-version: &chrome-stable-version "140.0.7339.127"
Copy link
Contributor

@AtofStryker AtofStryker Sep 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The github action likely needs to be updated that was originally updating the .circleci/workflow file for the latest browser version. We are also using the yaml package to format the config. I did some work to port it over in https://github.com/cypress-io/cypress/pull/30989/files so hopefully that paints enough context if/what needs to change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the scripts & left a comment that updating them is necessary in 5fb5125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants