Repository navigation
ci(linux): download lintian with the build dependencies and lint the .deb offline - #4782
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
build-deb.shdownloads lintian in its first step, with the build dependencies, into its own folder on the shared volume.--network none, like the build. Only the download step reaches the archive now.apt-get updateabout 100 minutes after the download. At 13:06 UTC archive.ubuntu.com and security.ubuntu.com timed out,apt-get updateonly warned, and the install stopped atE: Unable to locate package lintian.linux/build-aux/tests/test_build_deb.pyruns the script with a stub engine and checks that only the download step has network.Test plan
test_build_deb.pyfails on main ('check': False) and passes here.--step downloadinmirror.gcr.io/library/ubuntu:resolutefetched lintian 2.129.0ubuntu2.2 with its dependencies, then--step checkunder--network noneinstalled it and lintian passed on the source and binary.changes.python3 -m unittest discover -s linux/build-aux/tests) in the linux-dev container.