Skip to content

fix: Mount host directories, allowing to free up more disk space#17278

Merged
mclasmeier merged 1 commit intomasterfrom
mc/arm64-ci-enospace
Oct 14, 2025
Merged

fix: Mount host directories, allowing to free up more disk space#17278
mclasmeier merged 1 commit intomasterfrom
mc/arm64-ci-enospace

Conversation

@mclasmeier
Copy link
Contributor

@mclasmeier mclasmeier commented Oct 14, 2025

Description

So, merging #17140 apparently again caused master branch breakage. The operator image building failed on the master branch due to "no space left on device".

This is an attempt at fixing this by leveraging the "mount host directories into container" trick, which seems to allow the job-preamble to more aggressively delete certain unused tools and thus freeing up more disk space.

User-facing documentation & Tests

This is merely a CI fix, nothing user facing -> neither docs, nor tests required for this change.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes and they look great!

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location> `.github/workflows/build.yaml:585-586` </location>
<code_context>
       - define-job-matrix
     container:
       image: quay.io/stackrox-io/apollo-ci:stackrox-test-0.4.9
+      volumes:
+        - /usr:/mnt/usr
+        - /opt:/mnt/opt
       env:
</code_context>

<issue_to_address>
**issue (bug_risk):** Mounting /usr and /opt as volumes may introduce risk of overwriting system files.

If these mounts are required, ensure container processes do not modify the contents of /usr or /opt.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@rhacs-bot
Copy link
Contributor

Images are ready for the commit at 4132ec8.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.10.x-16-g4132ec8502.

@codecov
Copy link

codecov bot commented Oct 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.86%. Comparing base (bf99a92) to head (4132ec8).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #17278   +/-   ##
=======================================
  Coverage   48.86%   48.86%           
=======================================
  Files        2720     2720           
  Lines      203364   203364           
=======================================
+ Hits        99374    99380    +6     
+ Misses      96166    96161    -5     
+ Partials     7824     7823    -1     
Flag Coverage Δ
go-unit-tests 48.86% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@tommartensen tommartensen left a comment

Choose a reason for hiding this comment

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

Reached requested free disk space 30 [ 30GB free].

https://github.com/stackrox/stackrox/actions/runs/18496874099/job/52703193342?pr=17278#step:4:177

Previously, this failed to reach the required 30 GB, so this should feel better now.

@mclasmeier mclasmeier enabled auto-merge (squash) October 14, 2025 13:35
@mclasmeier mclasmeier merged commit f69131a into master Oct 14, 2025
91 of 92 checks passed
@mclasmeier mclasmeier deleted the mc/arm64-ci-enospace branch October 14, 2025 14:53
vikin91 pushed a commit that referenced this pull request Oct 16, 2025
)

Co-authored-by: Moritz Clasmeier <mclasmeier@redhat.com>
vikin91 pushed a commit that referenced this pull request Oct 16, 2025
)

Co-authored-by: Moritz Clasmeier <mclasmeier@redhat.com>
vikin91 pushed a commit that referenced this pull request Oct 16, 2025
)

Co-authored-by: Moritz Clasmeier <mclasmeier@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants