Skip to content

Run Validate Signing Linux job in a container - #5525

Merged
akoeplinger merged 1 commit into
mainfrom
dev/validate-signing-linux-container
Mar 17, 2026
Merged

akoeplinger merged 1 commit into
mainfrom
dev/validate-signing-linux-container

Conversation

@akoeplinger

@akoeplinger akoeplinger commented Mar 17, 2026 •

Copy link
Copy Markdown
Member

Run the ValidateSigning_Linux job inside the AzureLinux container instead of directly on the host agent. Add a disk space check step before artifact downloads on Linux.

There were a couple reports on FR recently about disk space issues when running directly on the build host, running inside a container works around this.

Fixes #5480

Run the ValidateSigning_Linux job inside the Ubuntu container instead
of directly on the host agent. Add a disk space check step before
artifact downloads on Linux.

Co-authored-by: Copilot <[email protected]>
@akoeplinger

Copy link
Copy Markdown
Member Author

/backport to release/10.0.1xx

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0.1xx (link to workflow run)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 moves the internal Linux signing validation job to run inside an Azure Linux build container to mitigate host-agent disk space exhaustion during signing validation, and adds an early Linux disk space visibility step before downloading artifacts.

Changes:

  • Add an Azure Linux “build” container definition to the official and unofficial pipeline container maps.
  • Introduce azurelinuxBuildContainer* variables for the new container name/image.
  • Run ValidateSigning_Linux inside the Azure Linux build container and print df -h on Linux before artifact downloads.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
eng/pipelines/unofficial.yml Registers the new Azure Linux build container in the 1ES container map so internal jobs can reference it by name.
eng/pipelines/official.yml Registers the new Azure Linux build container in the 1ES container map for official runs.
eng/pipelines/templates/variables/vmr-build.yml Adds variables for the Azure Linux build container name and image tag.
eng/pipelines/templates/stages/vmr-validation.yml Switches ValidateSigning_Linux to run in the named Azure Linux build container.
eng/pipelines/templates/steps/vmr-validate-signing.yml Adds a Linux-only df -h step before artifact downloads to aid diagnosing disk issues.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@github-actions

Copy link
Copy Markdown
Contributor

@akoeplinger backporting to release/10.0.1xx failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Run Validate Signing Linux job in a container
Using index info to reconstruct a base tree...
M	eng/pipelines/official.yml
M	eng/pipelines/templates/stages/vmr-validation.yml
M	eng/pipelines/templates/steps/vmr-validate-signing.yml
M	eng/pipelines/templates/variables/vmr-build.yml
M	eng/pipelines/unofficial.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/pipelines/official.yml
Auto-merging eng/pipelines/templates/stages/vmr-validation.yml
Auto-merging eng/pipelines/templates/steps/vmr-validate-signing.yml
CONFLICT (content): Merge conflict in eng/pipelines/templates/steps/vmr-validate-signing.yml
Auto-merging eng/pipelines/templates/variables/vmr-build.yml
Auto-merging eng/pipelines/unofficial.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Run Validate Signing Linux job in a container
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

@akoeplinger
akoeplinger merged commit accda64 into main Mar 17, 2026
6 of 14 checks passed
@akoeplinger
akoeplinger deleted the dev/validate-signing-linux-container branch March 17, 2026 16:10
@akoeplinger

Copy link
Copy Markdown
Member Author

For future readers: this wasn't actually related to the other disk size issue that was ongoing.

The reason why this works is because SignCheck uses Path.GetTempPath():

/// <summary>
/// Directory where the sign check files are copied to
/// </summary>
private static readonly string _signCheckFilesDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName(), "SignCheckFiles");

Outside the container we have /tmp explicitly mounted which has only 16GB free space:

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3       252G   11G  231G   5% /
devtmpfs        4.0M     0  4.0M   0% /dev
tmpfs            16G  8.0K   16G   1% /dev/shm
tmpfs           6.3G  9.0M  6.3G   1% /run
tmpfs            16G  243M   16G   2% /tmp
/dev/sda2       452M   45M  373M  11% /boot
/dev/sdb1       196G  1.2G  185G   1% /mnt
/dev/ram11      2.8M   46K  2.4M   2% /mnt/storage
tmpfs           3.2G  4.0K  3.2G   1% /run/user/0

But inside the container the /tmp is mounted on / and has plenty of free space:

Filesystem      Size  Used Avail Use% Mounted on
overlay         252G  5.9G  236G   3% /
tmpfs            64M     0   64M   0% /dev
shm              64M     0   64M   0% /dev/shm
/dev/sdb1        98G  106M   93G   1% /__t
/dev/sda3       252G  5.9G  236G   3% /__a/externals
tmpfs           3.2G  9.0M  3.2G   1% /run/docker.sock
tmpfs           7.9G     0  7.9G   0% /proc/acpi
tmpfs           7.9G     0  7.9G   0% /proc/scsi
tmpfs           7.9G     0  7.9G   0% /sys/firmware

@akoeplinger

Copy link
Copy Markdown
Member Author

i.e. we need to keep using the container so we get the larger /tmp

akoeplinger added a commit that referenced this pull request Jul 7, 2026
Co-authored-by: Copilot <[email protected]>
(cherry picked from commit accda64)
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.

Internal pipeline: Validate Signing fails with "No space left on device" on Linux

3 participants