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

Correct Firefox example artifacts and video #662

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

MikeMcC399
Copy link
Collaborator

@MikeMcC399 MikeMcC399 commented Dec 12, 2022

This PR resolves the issue #661 "CI: Artifact and video warnings in example-firefox".

  1. It corrects .github/workflows/example-firefox.yml by selecting the right directory to upload the screenshots captured by the Cypress v9 test and makes the name unique under which the artifacts are stored on GitHub.

  2. It disables videos to prevent a video warning message appearing which is a known problem under Firefox (see Video functionality is not working on Firefox 93 and above cypress#18415).

  3. .gitignore files are created for both v9 and v10 Firefox tests in case the tests are used locally (rather than in the workflow). Edit: removed.

Verification

Find a successful run of the workflow example-firefox by searching on https://github.com/cypress-io/github-action/actions/workflows/example-firefox.yml?query=branch%3Amaster

  1. In the "Artifacts" section check that screenshots-in-firefox-v9 and screenshots-in-firefox-v10 have both been uploaded. Download each artifact file and examine the contents.

  2. In the logs from firefox-v9 and firefox-v10 select and expand "Firefox". Check that there are no warnings regarding videos.

Note: Since PR #660 has now been merged, the v9 test is skipped, and therefore there is no screenshots-in-firefox-v9 artifact uploaded and no detailed logs for firefox-v9 available.

@MikeMcC399

This comment was marked as outdated.

@MikeMcC399
Copy link
Collaborator Author

MikeMcC399 commented Dec 15, 2022

@jaffrepaul

I have rebased this PR and aligned the naming of the v9 artifacts to the fact that you renamed the job-id to firefox-v9. Even though this is skipped it makes better reading as an example to have some naming consistency.

The remaining effective change in this PR to to disable videos for v10 and therefore suppress the error message about videos.

@MikeMcC399 MikeMcC399 marked this pull request as ready for review December 15, 2022 17:16
@MikeMcC399 MikeMcC399 marked this pull request as draft December 16, 2022 11:40
@MikeMcC399

This comment was marked as outdated.

@MikeMcC399
Copy link
Collaborator Author

MikeMcC399 commented Dec 16, 2022

@jaffrepaul

I have taken out the .gitignore addition to the examples directories.

The checks have run successfully, so I'm putting this PR back into review. It should be good to merge.

@MikeMcC399 MikeMcC399 marked this pull request as ready for review December 16, 2022 13:53
Correct directory for firefox v9 artifacts upload
Separate upload directories
Suppress video creation due to Cypress issue 18415
@jaffrepaul jaffrepaul merged commit b36370b into cypress-io:master Jan 10, 2023
@MikeMcC399 MikeMcC399 deleted the fix/firefox-snapshots branch January 11, 2023 06:43
@github-actions
Copy link

🎉 This PR is included in version 5.0.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants