[MacPorts] #54800: Cache built dependency packages on Travis CI to speed up testing flow

MacPorts noreply at macports.org
Sat Oct 27 14:56:42 UTC 2018


#54800: Cache built dependency packages on Travis CI to speed up testing flow
-----------------------------+---------------------
  Reporter:  yan12125        |      Owner:  admin@…
      Type:  enhancement     |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  server/hosting  |    Version:
Resolution:                  |   Keywords:
      Port:                  |
-----------------------------+---------------------
Description changed by ryandesign:

Old description:

> == Motivation ==
>
> I just submitted a new port `libfilezilla`. Builds on Travis CI timed out
> after 48 minutes [1] while on buildbot it takes about 8 minutes only [2].
> I believe what @raimue said [3] - time to build non-redistributable
> dependencies - is the key difference. I hope we can have a caching
> mechanism so that newcomers can know if their patches are OK or not
> quickly, and maintainers can spend less time on testing patches manually.
>
> == Proposal ==
>
> Travis CI provides a simple caching mechannism [4]. If built packages
> under $PREFIX/var/macports/software are cached, there's no need to
> rebuild them every time.
>
> Cached data are only accessible to Travis CI builders. There are no URLs
> to cached files in build logs. I guess it's not a "redistribution" as
> other people can't access them. Thus there are no licensing issues.
>
> [1] https://travis-ci.org/macports/macports-ports/builds/273323633
>
> [2]
> https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/38131
>
> [3] https://github.com/macports/macports-
> ports/pull/756#issuecomment-328345604
>
> [4] https://docs.travis-ci.com/user/caching/

New description:

 == Motivation ==

 I just submitted a new port `libfilezilla`. Builds on Travis CI timed out
 after 48 minutes ![1] while on buildbot it takes about 8 minutes only
 ![2]. I believe what @raimue said ![3] - time to build non-redistributable
 dependencies - is the key difference. I hope we can have a caching
 mechanism so that newcomers can know if their patches are OK or not
 quickly, and maintainers can spend less time on testing patches manually.

 == Proposal ==

 Travis CI provides a simple caching mechannism ![4]. If built packages
 under $PREFIX/var/macports/software are cached, there's no need to rebuild
 them every time.

 Cached data are only accessible to Travis CI builders. There are no URLs
 to cached files in build logs. I guess it's not a "redistribution" as
 other people can't access them. Thus there are no licensing issues.

 ![1] https://travis-ci.org/macports/macports-ports/builds/273323633

 ![2]
 https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/38131

 ![3] https://github.com/macports/macports-
 ports/pull/756#issuecomment-328345604

 ![4] https://docs.travis-ci.com/user/caching/

--

-- 
Ticket URL: <https://trac.macports.org/ticket/54800#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list