Skip to content

SAIFTRBL0022 ยท permalink

Dependabot scan fails with out_of_disk on ubuntu-latest

Run the Dependabot pipeline on the saif-managed-pool-ubuntu agent pool instead of the Microsoft-hosted ubuntu-latest image. The hosted image has too little free disk for the dependabot@2 updater image.


๐Ÿšจ Symptom

The Dependabot Scan step fails after the updater image pull and dependency discovery, before it updates any dependency. The pipeline log shows a disk warning followed by the updater error:

##[warning]Free disk space on / is lower than 5%; Currently used: 95.30%
...
ERROR Error type: out_of_disk
##[error]Update)job error: out_of_disk {}

Capping open-pull-requests-limit does not help, because the warning fires before the task evaluates any individual dependency.


๐Ÿ“Œ Applies to

Aspect Value
Component Azure DevOps dependabot@2 task, saif-feature-dependabot template
Pool Microsoft-hosted, vmImage: 'ubuntu-latest'
Not for Failures with a different Error type: value, or runs that never start the task

Prerequisites and safety

  • Edit access to the repository's .azdo/dependabot-scan.yml.
  • Permission to use the saif-managed-pool-ubuntu pool. Pipeline runs that queue on it can wait a few minutes for an agent.

โœ… Fix

  1. In .azdo/dependabot-scan.yml, replace the hosted pool: block with the managed pool:

    pool:
      name: 'saif-managed-pool-ubuntu' # was: vmImage: 'ubuntu-latest'
    
  2. Commit to the default branch, or push a test branch and run the pipeline against it.


๐Ÿ”ฌ Verify

Run the Dependabot pipeline. The Dependabot Scan step passes and the run creates or updates Dependabot pull requests. Tested runs waited about 2 to 3 minutes for an agent and ran for about 9 to 10 minutes.

If the step still reports out_of_disk on the managed pool, check the agent's free disk space and ask the pool owner to clean up or resize it.


๐Ÿง  Cause

The dependabot@2 task pulls a large updater container image, and the hosted ubuntu-latest image starts with little free space. The task stops when free space drops below 5%. The managed pool has more disk, so the same task finishes there. I did not measure the managed pool's disk size, so the extra capacity is an inference from two passing runs.