Tuesday 12 January 2021

Re: +1 maint - phpunit 9 bootstrap proposal

On Tue, Jan 12, 2021 at 04:24:39PM -0800, Steve Langasek wrote:
> On Mon, Jan 11, 2021 at 08:48:15PM -0800, Bryce Harrington wrote:
> > phpunit has been stuck in a 8.5 -> 9.5 transition, which blocks other
> > things. I'd like to propose we back out 9.5 and bootstrap to 9.0, and
> > *then* to 9.5.
> >
> >
> > In looking at the phpunit builds on update_excuses, phpunit 9.5 fails to
> > build due to three of its dependencies, which themselves are failing to
> > build because they in turn have phpunit 9.x as build dependencies.
> > E.g.:
> >
> > phpunit unsatisfiable Build-Depends(-Arch) on amd64: php-codecoverage (>= 9)
> >
> > php-codecoverage 9.2.5+dfsg-2 shows "Missing build dependencies: phpunit (>= 9)"
> >
> > (Near as I can tell, the packages depend on phpunit only for
> > running the testsuite in debian/rules' override_dh_auto_test. The
> > packages don't appear to actually depend on any code from phpunit.)
> >
> > Debian did not jump straight from 8.5 to 9.5, but rather went through
> > the intermediate versions in Experimental. It looks like phpunit 9.0.0
> > might be new enough to satisfy various built requirements, without
> > having too intensive build requirements itself.
> >
> > RAOF suggested one option might be to do similarly - remove phpunit from
> > -proposed, stage the intermediary pieces in a PPA, and then
> > source+binary copy them into the archive. I've staged the pieces, with
> > their testsuites disabled, here:
> >
> > https://launchpad.net/~bryce/+archive/ubuntu/phpunit-bootstrap/+packages
>
> Thanks. Since it's not possible to tell as a non-owner whether a given ppa
> is suitable as a source for binary copies to the Ubuntu archive (and by
> default it isn't), I've used the packages here as a guide for replaying the
> bootstrap in the main archive. phpunit 9.x is now built in the main
> archive:
>
> https://launchpad.net/ubuntu/+source/phpunit/9.0.0-1build1
>
> and as soon as it publishes and php-phpspec-prophecy-phpunit +
> php-codecoverage have had a chance to rebuild, I believe I'll be able to
> copy back the newer synced packages to hirsute-proposed to let them all
> build.

Excellent!

Fwiw, I'm not sure if there might be some additional subsequent
bootstrapping needed between 9.0 and 9.5. Debian had several versions
of phpunit in experimental as they worked through rebuilding
dependencies. So far though, the bootstrapping has only required
bypassing testsuites of dependencies that pop up.

Note there is also one new package added, I unfortunately didn't note
the name and it's off update_excuses now, but it'll probably show up.
Since all this is in universe, I don't think that'll cause issues.

Bryce

--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel