Skip to content

Conversation

@QxBytes
Copy link
Contributor

@QxBytes QxBytes commented Nov 5, 2025

Reason for Change:

Previously, building npm images would cause the agent to run out of disk space. This PR adds a step before building the image which cleans up unneeded files (from: https://github.com/cilium/cilium/blob/v1.16.8/.github/actions/disk-cleanup/action.yaml).

Also splits npm into its own stage and displays disk usage before and after disk cleanup and image build.

Also skips windows port forward tests

Issue Fixed:

Requirements:

Notes:
Run: https://msazure.visualstudio.com/One/_build/results?buildId=142753721&view=results

@QxBytes QxBytes self-assigned this Nov 5, 2025
@QxBytes QxBytes added the ci Infra or tooling. label Nov 5, 2025
@QxBytes QxBytes marked this pull request as ready for review November 5, 2025 18:29
@QxBytes QxBytes requested a review from a team as a code owner November 5, 2025 18:29
@QxBytes QxBytes requested review from Copilot and smittal22 November 5, 2025 18:29
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 refactors the pipeline to separate NPM container builds into a dedicated stage and adds disk space management to prevent build failures due to insufficient space.

  • NPM container builds moved from the containerize stage to a new containerize_npm stage
  • Added disk space cleanup script that removes unnecessary hosted tooling before builds
  • Reduced image build retry count from 3 to 2

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.pipelines/pipeline.yaml Extracted NPM build jobs into a new containerize_npm stage and updated the publish_npm stage dependency accordingly
.pipelines/containers/container-template.yaml Added disk space cleanup and monitoring steps, reduced retry count to 2

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

@QxBytes
Copy link
Contributor Author

QxBytes commented Nov 5, 2025

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@QxBytes QxBytes changed the title ci: clean up disk space before build ci: clean up disk space before build and skip windows port forward Nov 5, 2025
Copy link
Contributor

@jpayne3506 jpayne3506 left a comment

Choose a reason for hiding this comment

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

@QxBytes QxBytes enabled auto-merge November 5, 2025 19:26
@QxBytes QxBytes added this pull request to the merge queue Nov 5, 2025
Merged via the queue into master with commit 3978c31 Nov 5, 2025
104 of 107 checks passed
@QxBytes QxBytes deleted the alew/npm-image-investigate-2 branch November 5, 2025 22:43
sivakami-projects pushed a commit that referenced this pull request Nov 9, 2025
…4109)

* clean up disk space before build

* skip portforward e2e in windows
QxBytes added a commit that referenced this pull request Nov 12, 2025
…4109)

* clean up disk space before build

* skip portforward e2e in windows
QxBytes added a commit that referenced this pull request Nov 12, 2025
…4109)

* clean up disk space before build

* skip portforward e2e in windows
github-merge-queue bot pushed a commit that referenced this pull request Nov 12, 2025
…forward (#4109) (#4117)

ci: clean up disk space before build and skip windows port forward (#4109)

* clean up disk space before build

* skip portforward e2e in windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Infra or tooling.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants