Skip to content

Commit 3527cf5

Browse files
committed
Add disk usage stats to all non-windows platforms
1 parent dbcf3df commit 3527cf5

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.azure/pipelines/ci.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,6 @@ stages:
332332
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
333333
env:
334334
Token: $(dn-bot-dnceng-artifact-feeds-rw)
335-
- script: df -h && du -h --threshold=1MB /home/vsts/work/
336-
displayName: Disk utilization (before)
337335
- script: ./build.sh
338336
--ci
339337
--arch x64
@@ -378,8 +376,6 @@ stages:
378376
$(_PublishArgs) \
379377
$(_InternalRuntimeDownloadArgs)
380378
displayName: Build RPM installers
381-
- script: df -h && du -h --threshold=1MB /home/vsts/work/
382-
displayName: Disk utilization (after)
383379
installNodeJs: false
384380
installJdk: false
385381
artifacts:
@@ -643,8 +639,6 @@ stages:
643639
displayName: Installing Nginx
644640
- bash: "echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p"
645641
displayName: Increase inotify limit
646-
- script: df -h && du -h --threshold=1MB /home/vsts/work/
647-
displayName: Disk utilization (before)
648642
afterBuild:
649643
- bash: ./build.sh --ci --pack --no-build --no-restore --no-build-deps "/bl:artifacts/log/packages.pack.binlog"
650644
displayName: Pack Packages (for Template tests)
@@ -659,8 +653,6 @@ stages:
659653
testResultsFormat: 'xUnit'
660654
testResultsFiles: '*.xml'
661655
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)/Quarantined'
662-
- script: df -h && du -h --threshold=1MB /home/vsts/work/
663-
displayName: Disk utilization (before)
664656
artifacts:
665657
- name: Linux_Test_Logs
666658
path: artifacts/log/

.azure/pipelines/jobs/default-build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ jobs:
125125
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
126126
- _SignType: test
127127
steps:
128+
- ${{ if ne(parameters.agentOs, 'Windows') }}:
129+
- script: df -h
130+
displayName: Disk size
128131
- checkout: self
129132
clean: true
130133
- ${{ if and(eq(parameters.agentOs, 'Windows'), eq(parameters.isTestingJob, true)) }}:
@@ -193,6 +196,10 @@ jobs:
193196

194197
- ${{ parameters.afterBuild }}
195198

199+
- ${{ if ne(parameters.agentOs, 'Windows') }}:
200+
- script: df -h && du -h --threshold=50MB /home/vsts/work/
201+
displayName: Disk utilization
202+
196203
- ${{ if and(eq(parameters.agentOs, 'Windows'), eq(parameters.isTestingJob, true)) }}:
197204
- powershell: ./eng/scripts/FinishDumpCollectionForHangingBuilds.ps1 artifacts/dumps/
198205
displayName: Finish background dump collection

0 commit comments

Comments
 (0)