Re: [PATCH v1] travis-ci: build and test Git on Windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 23 Mar 2017, at 20:38, Jeff King <peff@xxxxxxxx> wrote:
> 
> On Thu, Mar 23, 2017 at 08:26:15PM +0100, Lars Schneider wrote:
> 
>>> I think we do build against PRs now. E.g.:
>>> 
>>> https://travis-ci.org/git/git/builds/213896051
>>> 
>>> But it looks like we can turn that off.
>> 
>> When we add a secret variable, then TravisCI will not build Pull Requests
>> for git/git anymore:
>> 
>> "[...] we do not provide these values to untrusted builds, 
>> triggered by pull requests from another repository."
>> 
>> See: https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings
> 
> Ah, OK, that makes sense. So we would only have to worry about our _own_
> code accidentally disclosing it. But that should be easy to look for by
> grepping the log (did somebody do that?).

This is how a successful Windows build would look like:
https://travis-ci.org/larsxschneider/git/jobs/214391822

Dscho's token is not in the log.


>> However, I don't think that is a big deal because git/git doesn't
>> support Pull Requests anyways. Plus, if a contributor is interested
>> in TravisCI results, then the contributor can setup TravisCI for
>> their own fork easily.
> 
> Yeah, agreed. It's not like we are blocking the merge button with a
> failing status.
> 
>>> Hrm, it does mean that people have no way to test on Windows until the
>>> branch hits pu. Which is not ideal.
>> 
>> I agree it's not ideal. But I think it is an improvement to check
>> pu/next/master/maint continuously :-)
> 
> Oh, I agree this is a step forward from the status quo. I just wondered
> if we could do even better.
> 
> As a side note, I've started having travis run on all of the topic
> branches in peff/git, with the idea to get early feedback on OS X
> problems (and now hopefully Windows ones). My two issues so far are:
> 
>  - I have a lot of work-in-progress branches. I put "-wip" at the end
>    of the branch name for my own scripts. It looks like I can put "[ci
>    skip]" in the commit subject to convince Travis to skip them, but
>    that's a little annoying. Is there any way to skip based on just the
>    branch name? I couldn't find one.

We can blacklist these branches with a regex in the travis.yml:
https://docs.travis-ci.com/user/customizing-the-build#Building-Specific-Branches


>  - The OS X builds seem to regularly time out. That at least marks a
>    "!" in the build status screen instead of an "X", but it's a lot of
>    noise (and it misses the point for me, which is testing on OS X; I
>    already build regularly on Linux).

Well, I guess the reason is that OSX is a bit harder to virtualize 
compared to Linux. In general on git/git the OSX builds are OK.

I build a little stats page to visualize the results over time:
https://larsxschneider.github.io/git-ci-stats/

We have 2 OSX jobs and 2 Linux jobs per build. I am usually only
digging into issues if both jobs are red.

Maybe TravisCI throttles your usage somehow as you push a lot of commits?

Keep in mind, all the TravisCI compute hours are free... considering
that I think it is quite OK :-)

- Lars



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]