We have about 400 end to end tests that take just over an hour to run, and they can fail for reasons other than functional failure, even with retries. I'd like to give our build runners the option to rerun only the failed tests, but writing a 400-step pipeline against 20 possible environments will be problematic and nigh-impossible to maintain manually.
I'm thinking I could write an autogen tool to recreate the pipeline for each build, but it occurs to me that this could be something that already exists in whole or in part. Has anyone else found and worked with something like that?
I reckon you might consider a simpler solution, for e.g.
- use after_script to collect the failed tests and then via pipeline API trigger another (or the same) pipeline to run those failed tests again.
- you may need a persistent store somewhere to track states (e.g. list of failed tests, retry count, etc.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.