ci: Add alert on VHD space greater than 75% #1097
ci: Add alert on VHD space greater than 75% #1097
Conversation
packer/install-dependencies.sh
Outdated
@@ -383,6 +383,11 @@ done | |||
|
|||
df -h | |||
|
|||
# warn at 75% space taken | |||
[ -s $(df -P | grep '/dev/sda1' | awk '0+$5 >= 30 {print}') ] || echo "WARNING: 75% of /dev/sda1 is used" >> ${RELEASE_NOTES_FILEPATH} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put this to 30 on purpose so I could test it works as expected, will change to 75 after I get a signal from the VHD pipeline.
Codecov Report
@@ Coverage Diff @@
## master #1097 +/- ##
==========================================
+ Coverage 74.33% 75.21% +0.87%
==========================================
Files 131 131
Lines 18259 19023 +764
==========================================
+ Hits 13573 14308 +735
- Misses 3905 3917 +12
- Partials 781 798 +17 |
/hold |
Proof that this works when > the number %:
With 75%:
|
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/lgtm |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CecileRobertMichon, jackfrancis, mboersma The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Reason for Change:
Alert in release notes when a VHD build takes more than 75% space. Error when it's more than 90%.
Issue Fixed:
#1064
Requirements:
Notes: