Issue: PR build using wrong commit entirely (Migrated from GitHub)

issues-migrated

#1

I updated my pull request during this build: https://travis-ci.org/jbardin/scp.py/builds/439188626

While a new build was started with the updated branch, some jobs of the running build picked up the UPDATED branch, while others used the old one (the ones that succeeded).


#2

Travis gets the source from a special Github’s ref linked to the PR, there’s no way to detect if Github “pulled the rug from underneath us” and changed its contents midway.

So the expected behavior would probably be to cancel the build if the PR branch is force-pushed (not sure if regular pushing also applies).


#3

The pull request synchronize event contains a ‘merge_commit_sha’, you should use that instead of the ‘refs/pull/?/merge’ ref.