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

RFC: Fail fast on AppVeyor for repeated commits to the same PR #9355

Merged
merged 1 commit into from
Dec 15, 2014

Conversation

tkelman
Copy link
Contributor

@tkelman tkelman commented Dec 14, 2014

To cut down on queue times. Opening this to test a few things.

AppVeyor runs:

git fetch -q origin +refs/pull/$APPVEYOR_PULL_REQUEST_NUMBER/merge:
git checkout -qf FETCH_HEAD

at the start of a PR build. For queued builds to master we would need some more complicated logic but we might want to build every commit to master separately anyway.

The simple version of this (just checking $APPVEYOR_REPO_COMMIT against git rev-parse HEAD) won't work if there's a new commit to master between the time the build gets queued and the time the build starts running, regardless of whether there are any newer commits to the PR branch.

@tkelman tkelman force-pushed the tk/appveyor-failfast branch 9 times, most recently from 8d50712 to b0a41af Compare December 14, 2014 16:34
@tkelman tkelman changed the title WIP: Fail fast on AppVeyor for repeated commits to the same PR RFC: Fail fast on AppVeyor for repeated commits to the same PR Dec 14, 2014
Use AppVeyor's API!

reuse cached version of jq instead of downloading every time

make slightly more robust to network problems
@tkelman
Copy link
Contributor Author

tkelman commented Dec 14, 2014

@vtjnash I think this should do the trick. Due to the fetch, Appveyor will always checkout the latest relevant merge commit for a given PR, regardless of which commit triggered the build, how long it waited in the queue before starting, and what has happened on master in the meantime. So currently we could actually get redundant builds of the same content when someone pushes multiple times to the same PR.

tkelman added a commit that referenced this pull request Dec 15, 2014
RFC: Fail fast on AppVeyor for repeated commits to the same PR
@tkelman tkelman merged commit f17595d into JuliaLang:master Dec 15, 2014
@tkelman
Copy link
Contributor Author

tkelman commented Dec 15, 2014

let's try this out and see how well it works (also backported in 36f0d62)

@tkelman tkelman deleted the tk/appveyor-failfast branch December 15, 2014 12:46
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 346ebe3 on tkelman:tk/appveyor-failfast into * on JuliaLang:master*.

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