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

Add flexible inputs to Actions Workflow for running e2e tests #2961

Merged
merged 1 commit into from Jan 11, 2024

Conversation

philrz
Copy link
Contributor

@philrz philrz commented Jan 11, 2024

I'm hoping to invest some time to better understand and hopefully fix some of the problems we have with e2e test reliability in GitHub Actions CI. As a step toward that, in this PR I've added some flexible Inputs to the "Run e2e tests" Workflow. After this change, if the Workflow is invoked with all inputs at their defaults, it'll still run the e2e tests the same way they are in the "Advance Zed" workflow. But those inputs can now be varied to run any command line (e.g., yarn e2e ...) on any set of OS platforms, which makes it easier to repro specific problems and confirm fixes.

For instance, in this run I ran only the copy-paste tests and did it across all OSes.

image

@philrz philrz requested a review from jameskerr January 11, 2024 02:32
@philrz philrz self-assigned this Jan 11, 2024
jobs:
run-e2e-tests:
name: Run e2e tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
os: ${{ fromJSON(inputs.platforms) }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I learned this trick from actions/toolkit#184 (comment)

Copy link
Member

@jameskerr jameskerr left a comment

Choose a reason for hiding this comment

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

Cool!

@philrz philrz merged commit 64a194f into main Jan 11, 2024
5 of 6 checks passed
@philrz philrz deleted the flexi-ci-e2e branch January 11, 2024 06:31
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.

None yet

2 participants