Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow failures executing "Try it out" for GitHub Actions #5754

Closed
2 of 3 tasks
MikeMcC399 opened this issue Mar 17, 2024 · 4 comments
Closed
2 of 3 tasks

Workflow failures executing "Try it out" for GitHub Actions #5754

MikeMcC399 opened this issue Mar 17, 2024 · 4 comments

Comments

@MikeMcC399
Copy link
Contributor

MikeMcC399 commented Mar 17, 2024

Subject

Continuous Integration > GitHub Actions > Basic Setup

Description

Issue

Continuous Integration > GitHub Actions > Basic Setup advises to "Try it out".

Depending on whether the new suggested workflow main.yml is added through a push or via a PR to the master branch, the action results in 3 failures from existing workflows (for push) or 16 failed checks (for PR). The added workflow itself works correctly.

The instructions are as follows:

Try it out

To try out the example above yourself, fork the Cypress Kitchen Sink example project and place the above GitHub Action configuration in a newly created main.yml file within .github/workflows/.

Steps to reproduce

Create main.yml in master

  1. Open https://github.com/cypress-io/cypress-example-kitchensink in web browser
  2. Select Fork > Create a new fork
  3. Take defaults, select "Create fork"
  4. Select Add file > Create a new file
  5. Name your file .github/workflows/main.yml.
  6. Paste in contents of workflow from https://docs.cypress.io/guides/continuous-integration/github-actions#Basic-Setup
  7. Click on Commit changes...
  8. Take defaults (Commit directly to the master branch)
  9. Click "Commit changes"

6 workflows run. 3 workflows succeed, 3 workflows fail. The failures are:

  • Using Cypress GH Action
  • Cypress parallel tests
  • Cypress single tests

Select Actions > Cypress Tests > ... menu Disable workflow

Create main2.yml in master

  1. Select <> Code
  2. Select Add file > Create a new file
  3. Name your file .github/workflows/main2.yml.
  4. Paste in contents of workflow from https://docs.cypress.io/guides/continuous-integration/github-actions#Basic-Setup
  5. Change the name to "Cypress Tests 2"
  6. Click on Commit changes...
  7. Select "Create a new branch for this commit and start a pull request"
  8. Take the default name for the new branch
  9. Click "Propose changes"
  10. Click "Create pull request"
  11. Click "Create pull request"
  12. Note the message "Some checks were not successful"
  13. Wait until all checks have completed

16 failing and 5 successful checks are reported

In addition to the workflows which fail on push to master (see above), the following PR workflows also fail:

  • Add issue/PR to Triage Board
  • Semantic Pull Request

Suggestion

  1. Temporarily remove the Try it out instructions Continuous Integration > GitHub Actions > Basic Setup
  2. Open one or more related issues in Cypress Kitchen Sink to address the workflow failures
  3. Replace the Try it out instructions when the issues in the Cypress Kitchen Sink repo are resolved.
@MikeMcC399
Copy link
Contributor Author

@jennifer-shehane
Copy link
Member

These steps sounds fine.

@MikeMcC399
Copy link
Contributor Author

@MikeMcC399
Copy link
Contributor Author

Closing, as the documentation no longer says "Try it out"

The following issues are currently open:

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

No branches or pull requests

2 participants