Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lintian failure on Debian 10 #48573

Closed
pugnascotia opened this issue Oct 28, 2019 · 8 comments
Closed

Lintian failure on Debian 10 #48573

pugnascotia opened this issue Oct 28, 2019 · 8 comments
Assignees
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team >test-failure Triaged test failures from CI

Comments

@pugnascotia
Copy link
Contributor

We added Debian 10 to the packaging tests for #44657. Now those tests are failing, as below.

org.elasticsearch.packaging.test.DebMetadataTests > test05CheckLintian FAILED
--
java.lang.RuntimeException: Command was not successful: [bash -c lintian /var/lib/jenkins/workspace/elastic+elasticsearch+pull-request+multijob+packaging-tests-unix-gcp/os/debian-10-packaging/distribution/packages/deb/build/distributions/elasticsearch-8.0.0-SNAPSHOT-amd64.deb]
result: exitCode = [2] stdout = [N: 0 tags overridden; 17 unused overrides] stderr = [bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "en_US.UTF-8",
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
warning: the authors of lintian do not recommend running it with root privileges!
Usage: Lintian::files::empty_package::_set_is_dummy(self, newvalue) at /usr/share/lintian/checks/files/empty-package.pm line 42.
internal error: cannot run files check on package binary:elasticsearch/8.0.0~SNAPSHOT/amd64
warning: skipping check of binary:elasticsearch/8.0.0~SNAPSHOT/amd64]
at __randomizedtesting.SeedInfo.seed([AF166E2BC43F9213:6FE8F2C77E4BF7A8]:0)
at org.elasticsearch.packaging.util.Shell.runScript(Shell.java:116)
at org.elasticsearch.packaging.util.Shell.run(Shell.java:68)
at org.elasticsearch.packaging.test.DebMetadataTests.test05CheckLintian(DebMetadataTests.java:45)
@pugnascotia pugnascotia added the :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts label Oct 28, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Packaging)

@pugnascotia
Copy link
Contributor Author

cc @atorok

@ywelsch
Copy link
Contributor

ywelsch commented Oct 28, 2019

@mark-vieira mark-vieira added the >test-failure Triaged test failures from CI label Oct 28, 2019
@mark-vieira mark-vieira self-assigned this Oct 28, 2019
@mark-vieira
Copy link
Contributor

We are getting all kinds of nasty errors and warning related to issues setting the default locale on Debian 10. I think I've tracked down the problem. I've opened https://github.com/elastic/infra/issues/15670 to have this addressed.

@alpar-t
Copy link
Contributor

alpar-t commented Oct 29, 2019

I don't think the locale errors are causing this.
I'm getting this with locales-all installed.

jenkins@alpar-ci-debian-10-1029-0746:~/elasticsearch$ lintian distribution/packages/oss-deb/build/distributions/elasticsearch-oss-8.0.0-SNAPSHOT-amd64.deb


Usage: Lintian::files::empty_package::_set_is_dummy(self, newvalue) at /usr/share/lintian/checks/files/empty-package.pm line 42.
internal error: cannot run files check on package binary:elasticsearch-oss/8.0.0~SNAPSHOT/amd64
warning: skipping check of binary:elasticsearch-oss/8.0.0~SNAPSHOT/amd64
N: 0 tags overridden; 16 unused overrides

@alpar-t
Copy link
Contributor

alpar-t commented Oct 29, 2019

I think the root cause is

Usage: Lintian::files::empty_package::_set_is_dummy(self, newvalue) at /usr/share/lintian/checks/files/empty-package.pm line 44.

which is indicative of a a bug in lintian.

Also of note:

jenkins@alpar-ci-debian-10-1029-0746:~/elasticsearch$ lintian --version
Lintian v2.30.0

According to https://packages.debian.org/search?keywords=lintian that's the version in testing, debian 10 should have 2.15.0

Running sudo apt-get install lintian=2.15.0 to get the correct version works.

We have a miss configured source

jenkins@alpar-ci-debian-10-1029-0746:~/elasticsearch$ cat /etc/apt/sources.list.d/deb_debian_org_debian.list 
deb http://deb.debian.org/debian unstable main
jenkins@alpar-ci-debian-10-1029-0746:~/elasticsearch$ apt-cache showpkg lintian
Package: lintian
Versions: 
2.30.0 (/var/lib/apt/lists/deb.debian.org_debian_dists_unstable_main_binary-amd64_Packages)

alpar-t added a commit to alpar-t/elasticsearch that referenced this issue Oct 29, 2019
Relates to elastic#48573 and intended as a work around to stop the CI failures
until we fix the image.
alpar-t added a commit that referenced this issue Oct 29, 2019
* Work around incorrect lintian version on debian 10

Relates to #48573 and intended as a work around to stop the CI failures
until we fix the image.

* Need to pass --allow-downgrades
alpar-t added a commit that referenced this issue Oct 29, 2019
* Work around incorrect lintian version on debian 10

Relates to #48573 and intended as a work around to stop the CI failures
until we fix the image.

* Need to pass --allow-downgrades
alpar-t added a commit that referenced this issue Oct 29, 2019
* Work around incorrect lintian version on debian 10

Relates to #48573 and intended as a work around to stop the CI failures
until we fix the image.

* Need to pass --allow-downgrades
@alpar-t
Copy link
Contributor

alpar-t commented Oct 29, 2019

The workaround was merged to stop the CI failures, will keep the issue open to track removing it once the image is fixed.

@alpar-t
Copy link
Contributor

alpar-t commented Nov 13, 2019

Different Lintian versions check different things, that's why this was particular to Debian 10.

@alpar-t alpar-t closed this as completed Nov 13, 2019
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team >test-failure Triaged test failures from CI
Projects
None yet
Development

No branches or pull requests

5 participants