Skip to content

Conversation

@jfversluis
Copy link
Member

@jfversluis jfversluis commented Jul 30, 2025

This change adds the --force-confdef switch to the dpkg that happens while provisioning the JDK on Linux. This means that the default option is selected when interactive feedback is requested. In our case at the time of writing, this was the output that would hang the builds:

Task "Exec"
         Task Parameter:Command=sudo dpkg -i packages-microsoft-prod.deb
         sudo dpkg -i packages-microsoft-prod.deb
         (Reading database ... 295979 files and directories currently installed.)
         Preparing to unpack packages-microsoft-prod.deb ...
         Unpacking packages-microsoft-prod (1.2-ubuntu22.04) over (1.0-ubuntu22.04.1) ...
         Setting up packages-microsoft-prod (1.2-ubuntu22.04) ...
         
         Configuration file '/etc/apt/sources.list.d/microsoft-prod.list'
          ==> Modified (by you or by a script) since installation.
          ==> Package distributor has shipped an updated version.
            What would you like to do about it ?  Your options are:
             Y or I  : install the package maintainer's version
             N or O  : keep your currently-installed version
               D     : show the differences between the versions
               Z     : start a shell to examine the situation
          The default action is to keep your current version.

With this switch, the default action (in this case N, keep currently installed version) is selected.

@jfversluis jfversluis added t/housekeeping ♻︎ area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions labels Jul 30, 2025
@jfversluis jfversluis requested a review from rmarinho July 30, 2025 11:32
@jfversluis jfversluis marked this pull request as ready for review July 30, 2025 11:32
Copilot AI review requested due to automatic review settings July 30, 2025 11:32
@jfversluis jfversluis requested a review from a team as a code owner July 30, 2025 11:32
@jfversluis jfversluis requested a review from jsuarezruiz July 30, 2025 11:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a CI build hang issue on Linux by adding the --force-confdef flag to the dpkg command used during JDK provisioning. The change ensures that when dpkg encounters configuration file conflicts, it automatically selects the default option (keeping the currently installed version) instead of waiting for interactive user input.

  • Modifies the dpkg command to include --force-confdef flag for non-interactive operation
  • Prevents CI builds from hanging when configuration file conflicts occur during package installation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions t/housekeeping ♻︎

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants