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

Split E2E runs into batches and randomize order #1100

Merged
merged 2 commits into from
May 27, 2021

Conversation

nickdowell
Copy link
Contributor

Goal

We have observed test flakes that appear to be Appium related occur around the 1hr mark during an E2E test run.

Changeset

Split all E2E runs into batches to reduce the duration of each Appium / BS session. Note that batch 1 takes longer than batch 2 because there are a large number of scenarios in files beginning with e that prevent an even split.

Enabled --order=random to make it easier to differentiate between flakey scenarios and time-related issues.

Made the step naming more consistent and concise.

Testing

For a sample full run see https://buildkite.com/bugsnag/bugsnag-cocoa/builds/2709

@nickdowell nickdowell requested a review from twometresteve May 27, 2021 10:33
@github-actions
Copy link

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size did not change - 1,126,840 bytes

Generated by 🚫 Danger

@nickdowell
Copy link
Contributor Author

there are a large number of scenarios in files beginning with e that prevent an even split.

I don't understand - the split is on a-n and o-z. Can you just push m and n into batch 2? (I wouldn't get too hung up, though, I found they can be variable).

The split has been changed to to a-g and h-z but batch 1 is still the heaviest.

If we push e into batch 2 then we'll just reverse the problem...

Copy link
Contributor

@twometresteve twometresteve left a comment

Choose a reason for hiding this comment

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

LGTM - just one comment on the pipeline comment.

@nickdowell nickdowell merged commit 9a77e43 into next May 27, 2021
@nickdowell nickdowell deleted the nickdowell/split-e2e-runs branch May 27, 2021 15:11
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