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

Create PR checker lane #60

Open
Neil3079 opened this issue May 24, 2018 · 7 comments
Open

Create PR checker lane #60

Neil3079 opened this issue May 24, 2018 · 7 comments

Comments

@Neil3079
Copy link
Contributor

I propose a new lane:- PRChecker

This lane will be similar to the test lane with one enhancement, it will checkout the latest version of the target branch and merge the pr into that locally before running the tests.

Some CI's allow this configured manually but not all. It is useful to ensure nothing breaks once the merge is complete before we merge on the repo however.

@KaneCheshire
Copy link
Contributor

Ooh I like this idea.

@Neil3079
Copy link
Contributor Author

The hardest part is figuring out the target branch, perhaps we could rely on a user populated ENV variable?

@zacoid55
Copy link
Contributor

Might be quite hard to enforce an ENV variable, @Neil3079. Unless it would be specified in the Fastlane command via terminal?

@Neil3079
Copy link
Contributor Author

It could default to develop as the most common case

@Neil3079
Copy link
Contributor Author

Neil3079 commented May 24, 2018

different systems PR checkers work in different ways, if people can edit these to set an environment variable we could read it. I don't really see another way of identifying the target branch.

For instance TRAVIS CI sets the env variable TRAVIS_BRANCH for the target branch, we could listen for that in the MasterFastfile but its CI specific I think it should be up to the user to provide this info, they could do this by copying the value of this variable to one we define (perhaps TAB_TARGET_BRANCH) in the setup tasks or even in their own CI script

@zacoid55
Copy link
Contributor

Could we make a shell script that could automatically check to see if any of those ENV vars exist and if not ask for a user-specified branch name?

@Neil3079
Copy link
Contributor Author

We could but then the MasterFastfile takes on CI specific responsibilities which we have always avoided in the past. Personally I'd not against adding that script, its more complex to do on the MasterFastfile side of things and will only fix help the percentage of people who are not merging to develop and are using one of the systems we have specified.

We would then have to maintain this script and make sure it still works on future versions of these systems.

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

3 participants