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-ubuntupool. Pipeline runs that queue on it can wait a few minutes for an agent.
โ Fix¶
-
In
.azdo/dependabot-scan.yml, replace the hostedpool:block with the managed pool: -
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.
๐ Related¶
- Pipelines reference: Dependabot - Template defaults, including the managed pool
- Dependabot schedule field is required