Re: travis CI

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

 



On Tue, 2017-10-24 at 23:00 +0200, Nicolas Iooss wrote:
> On Tue, Oct 24, 2017 at 10:20 PM, William Roberts
> <bill.c.roberts@xxxxxxxxx> wrote:
> > On Oct 24, 2017 13:05, "Stephen Smalley" <sds@xxxxxxxxxxxxx> wrote:
> > 
> > On Tue, 2017-10-24 at 09:26 -0700, William Roberts wrote:
> > > Error 52, which if it lines up with what I am reading is
> > > CURLE_GOT_NOTHING
> > > https://curl.haxx.se/libcurl/c/libcurl-errors.html
> > > 
> > > That url/command combo seems valid, likely a transient issue with
> > > github.
> > 
> > I restarted the job, and it failed again in the same way (but on
> > different cases).  Then I restarted it a third time, and this time
> > it
> > ran to completion.  This seems problematic; we likely need to
> > reconsider any use of curl from the travis.yml file.
> > 
> > 
> > Weird. I wget things from sourceforge all the time. The only time I
> > have
> > issues is when sourceforge is down.
> > 
> > > On Tue, Oct 24, 2017 at 9:05 AM, Stephen Smalley <sds@xxxxxxxxx.g
> > > ov>
> > > wrote:
> 
> [[...]]
> > > > Our .travis.yml seems to yield unstable results,
> > > > https://travis-ci.org/SELinuxProject/selinux/jobs/292128434
> > > > 
> > > > Don't know if it would help to instead download a refpolicy
> > > > release
> > > > and
> > > > extract it, or if this is just transient.
> > > > 
> 
> It looks like transient networking issues between Travis-CI and
> Github. A possible fix would consists in using the Ubuntu package
> which provides refpolicy files: selinux-policy-dev. This however
> introduces the drawback that the package pulls in Ubuntu's version of
> checkpolicy, policycoreutils, libsepol... which may introduce
> incorrect test success if they happen to be used instead of the
> programs from the tested build. So I am not convinced by this.
> 
> I am wondering whether using curl's --retry option would help to work
> around the networking issues which occurred. I am testing this in my
> "curl-retry" branch on Github [1] and will submit a patch if you
> think
> this may work.

Sounds reasonable to me as a quick fix.  Another alternative would be
to include a copy of these files in the selinux repo itself to remove
external dependencies, although that doesn't help with python.

A separate issue with the current travis-ci testing is that it doesn't
exercise any of the python component tests.  On the one hand, it could
be argued that is a bug in the python/Makefile in not propagating down
make test to the sudirs, but only some of those tests can be run as
non-root.  One of the audit2allow tests presently is invoked via sudo
(probably could be changed though to pass -o to sepolgen-ifgen to avoid
requiring root), and the semanage tests operate on the system policy
store and thus require root (possibly could be redirected to an
alternate root, but doesn't look like semanage provides such an option,
unlike semodule -p).  We have this strange inconsistency with the
current tests where some of them can only be run as non-root and others
can only be run as root; likely should be fixed in the tests
themselves.

> 
> Nicolas
> 
> [1] https://github.com/fishilico/selinux/commits/curl-retry
> 



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux