Skip to content

ci(linux): download lintian with the build dependencies and lint the .deb offline - #4782

Merged
datlechin merged 1 commit into
mainfrom
ci/linux-deb-lintian-offline
Nov 30, 2026
Merged

datlechin merged 1 commit into
mainfrom
ci/linux-deb-lintian-offline

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • build-deb.sh downloads lintian in its first step, with the build dependencies, into its own folder on the shared volume.
  • The check step installs lintian from that folder and runs with --network none, like the build. Only the download step reaches the archive now.
  • The build step still installs only the build dependencies.
  • Cause of the red Debian job (run 46379402959, job 141803230378): the check step ran apt-get update about 100 minutes after the download. At 13:06 UTC archive.ubuntu.com and security.ubuntu.com timed out, apt-get update only warned, and the install stopped at E: Unable to locate package lintian.
  • Not a missing component: lintian is in resolute's main, and the same step passed in the 11-29 nightly.
  • The smoke test still reads the archive, since it installs the runtime dependencies the way a user does. The stonking job in the same run failed there at 12:50 UTC, in the same outage.
  • New test linux/build-aux/tests/test_build_deb.py runs the script with a stub engine and checks that only the download step has network.

Test plan

  • test_build_deb.py fails on main ('check': False) and passes here.
  • The changed steps on this Mac, with the 11-29 nightly's resolute source package and arm64 .deb: --step download in mirror.gcr.io/library/ubuntu:resolute fetched lintian 2.129.0ubuntu2.2 with its dependencies, then --step check under --network none installed it and lintian passed on the source and binary .changes.
  • shellcheck at warning level.
  • The packaging tests (python3 -m unittest discover -s linux/build-aux/tests) in the linux-dev container.

@datlechin
datlechin merged commit 7ea9961 into main Nov 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant