openjdk-8 uploads trigger swi-prolog, fdroidserver, and libreoffice autopkgtests unnecessarily

Bug #1903929 reported by Tiago Stürmer Daitx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
britney
New
Undecided
Unassigned

Bug Description

As seen currently at hirsute proposed-migration [1]:

openjdk-8 (8u272-b10-0ubuntu1 to 8u275-b01-0ubuntu1)
    Migration status for openjdk-8 (8u272-b10-0ubuntu1 to 8u275-b01-0ubuntu1): BLOCKED: Rejected/violates migration policy/introduces a regression
    Issues preventing migration:
    autopkgtest for fdroidserver/1.1.10-1: armhf: Regression
    autopkgtest for swi-prolog/8.2.1+dfsg-2ubuntu1: armhf: Regression
    Additional info:
    2 days old

Both fdroidserver and swi-prolog were blocking openjdk-8 8u275-b01-0ubuntu1 from migrating, but openjdk-8 is not default-jdk/default-jre (-headless) for hirsute and these autopkgtests should not have been triggered at all. The right package to use in these autopkgtests is openjdk-lts, not openjdk-8.

Libreoffice autopkgtests were also triggered on openjdk-8 uploads and, for reference, did block openjdk-8/8u272-b10-0ubuntu1 from migrating until libreoffice tests passed in a retry. libreoffice should only trigger against default-jdk/openjdk-lts uploads.

References:
[1] https://people.canonical.com/~ubuntu-archive/proposed-migration/hirsute/update_excuses.html#openjdk-8

Tags: fr-940
summary: - swi-prolog and fdroidserver triggering autopkgtests for openjdk-8
+ swi-prolog, fdroidserver, and libreoffice triggering autopkgtests for
+ openjdk-8
summary: - swi-prolog, fdroidserver, and libreoffice triggering autopkgtests for
- openjdk-8
+ swi-prolog, fdroidserver, and libreoffice triggering unecessary
+ autopkgtests for openjdk-8
description: updated
summary: - swi-prolog, fdroidserver, and libreoffice triggering unecessary
- autopkgtests for openjdk-8
+ openjdk-8 uploads trigger swi-prolog, fdroidserver, and libreoffice
+ autopkgtests unnecessarily
description: updated
tags: added: fr-940
Revision history for this message
Iain Lane (laney) wrote :

I think it's right to fix this, but please let's not do that with a special case hack in proposed-migration.

First step is to look at why these tests are being triggered, and then we can figure out a nice way to prevent that.

Follow on question - are tests being triggered correctly for default-jre changes, do you know? If not, we should fix that at the same time.

Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

> Follow on question - are tests being triggered correctly for default-jre changes, do you know? If not, we should fix that at the same time.

default-jre, default-jdk, and their -headless counterparts do not change in sync with openjdk updates, the autopkgtests are being triggered solely by openjdk uploads.

The default-jre/-jdk(-headless) packages depend directly on a single version of OpenJDK, the one we consider the "default" for that release. Only Xenial depends on OpenJDK 8, all other releases depend on OpenJDK 11.

Looking at the logs of the test runs of the three packages I listed here - swi-prolog, fdroidserver, and libreoffice (there are many more reverse depends of the default-j* packages) - I can see that even though they are triggered for other openjdk uploads they all install and run the default-jdk - openjdk-11 for hirsute.

In addition to that:
1) fdroidserver only triggers openjdk-8 and openjdk-11 tests, while swi-prolog and libreoffice trigger tests for any openjdk package (openjdk-8, 11, 15, 16, 17)
2) libreoffice is the only one that has an explicit depends on test/control (default-jdk)

fdroidserver's binary has a pretty broad dependency list for jre/jdk packages [1] while libreoffice seems to have a very small one and I could not figure out why fdroidserver was being triggered only for openjdk-8 and -11.

[1] fdroidserver's binary depends:
default-jdk-headless | default-jdk | openjdk-7-jdk | openjdk-8-jdk-headless | openjdk-10-jdk-headless | openjdk-11-jdk-headless | oracle-java7-jdk | oracle-java8-jdk | oracle-java9-jdk | oracle-java10-jdk | oracle-java11-jdk | oracle-java12-jdk | oracle-java7-installer | oracle-java8-installer | oracle-java9-installer | oracle-java10-installer | oracle-java11-installer | oracle-java12-installer,

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.