Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up more disk space #1747

Merged
merged 14 commits into from
Jul 22, 2023
Merged

Clean up more disk space #1747

merged 14 commits into from
Jul 22, 2023

Conversation

bkpoon
Copy link
Member

@bkpoon bkpoon commented Jul 21, 2023

@jakirkham
Copy link
Member

cc @h-vetinari @isuruf

Copy link
Member

@isuruf isuruf left a comment

Choose a reason for hiding this comment

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

Can you check how long this takes?

@jakirkham
Copy link
Member

Yeah was wondering the same thing. If it does take a long time, it might be worth looking at du for each of these to see which pieces we can delete that would save the most space

@jakirkham
Copy link
Member

Also we could look at using a different method to delete to save time

@isuruf
Copy link
Member

isuruf commented Jul 21, 2023

Or a conda-forge.yml option

@bkpoon
Copy link
Member Author

bkpoon commented Jul 21, 2023

Here is a log file for the steps, but the summary is
~ 1.5 min for rm -rf
< 10 s for apt-get commands
~ 5 s for docker prune
Final available space is ~ 61 GB

2023-07-21T19:14:23.0654839Z ##[section]Starting: Clean up linux image
2023-07-21T19:14:23.0659193Z ==============================================================================
2023-07-21T19:14:23.0659378Z Task         : Command line
2023-07-21T19:14:23.0659448Z Description  : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2023-07-21T19:14:23.0659571Z Version      : 2.212.0
2023-07-21T19:14:23.0659663Z Author       : Microsoft Corporation
2023-07-21T19:14:23.0659741Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2023-07-21T19:14:23.0659856Z ==============================================================================
2023-07-21T19:14:23.2050465Z Generating script.
2023-07-21T19:14:23.2061252Z Script contents:
2023-07-21T19:14:23.2062319Z time sudo /home/vsts/work/1/s/scripts/clean_linux.sh
2023-07-21T19:14:23.2062921Z ========================== Starting Command Output ===========================
2023-07-21T19:14:23.2094913Z [command]/usr/bin/bash --noprofile --norc /home/vsts/work/_temp/b0eb8729-a372-4998-aab2-ad8ab4c46be8.sh
2023-07-21T19:14:23.2218817Z + sudo rm -rf /opt/ghc /opt/hostedtoolcache/CodeQL /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk /opt/hostedtoolcache/PyPy /opt/hostedtoolcache/Python /opt/hostedtoolcache/Ruby /opt/hostedtoolcache/go /opt/hostedtoolcache/node /usr/lib/jvm /usr/local/.ghcup /usr/local/lib/android /usr/local/share/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T19:15:48.0734213Z 
2023-07-21T19:15:48.0735311Z real	1m24.852s
2023-07-21T19:15:48.0735813Z user	0m0.850s
2023-07-21T19:15:48.0736747Z sys	0m7.702s
2023-07-21T19:15:48.0737638Z + sudo apt-get purge -y -f firefox google-chrome-stable microsoft-edge-stable
2023-07-21T19:15:49.0857098Z Reading package lists...
2023-07-21T19:15:49.3158625Z Building dependency tree...
2023-07-21T19:15:49.3180898Z Reading state information...
2023-07-21T19:15:49.4663160Z The following packages will be REMOVED:
2023-07-21T19:15:49.4828805Z   firefox* google-chrome-stable* microsoft-edge-stable*
2023-07-21T19:15:49.8000455Z 0 upgraded, 0 newly installed, 3 to remove and 26 not upgraded.
2023-07-21T19:15:49.8001224Z After this operation, 1094 MB disk space will be freed.
2023-07-21T19:15:49.8438200Z (Reading database ... 
2023-07-21T19:15:49.8439068Z (Reading database ... 5%
2023-07-21T19:15:49.8439482Z (Reading database ... 10%
2023-07-21T19:15:49.8442441Z (Reading database ... 15%
2023-07-21T19:15:49.8442763Z (Reading database ... 20%
2023-07-21T19:15:49.8443358Z (Reading database ... 25%
2023-07-21T19:15:49.8443710Z (Reading database ... 30%
2023-07-21T19:15:49.8444526Z (Reading database ... 35%
2023-07-21T19:15:49.8444827Z (Reading database ... 40%
2023-07-21T19:15:49.8448065Z (Reading database ... 45%
2023-07-21T19:15:49.8449965Z (Reading database ... 50%
2023-07-21T19:15:49.8715399Z (Reading database ... 55%
2023-07-21T19:15:49.8965800Z (Reading database ... 60%
2023-07-21T19:15:49.9161345Z (Reading database ... 65%
2023-07-21T19:15:49.9582931Z (Reading database ... 70%
2023-07-21T19:15:49.9969659Z (Reading database ... 75%
2023-07-21T19:15:50.0458331Z (Reading database ... 80%
2023-07-21T19:15:50.1179484Z (Reading database ... 85%
2023-07-21T19:15:50.1780693Z (Reading database ... 90%
2023-07-21T19:15:50.2301968Z (Reading database ... 95%
2023-07-21T19:15:50.2302270Z (Reading database ... 100%
2023-07-21T19:15:50.2302467Z (Reading database ... 221992 files and directories currently installed.)
2023-07-21T19:15:50.2403832Z Removing firefox (115.0.2+build1-0ubuntu0.22.04.1~mt1) ...
2023-07-21T19:15:50.4020002Z Removing google-chrome-stable (114.0.5735.198-1) ...
2023-07-21T19:15:50.6329321Z Removing microsoft-edge-stable (114.0.1823.82-1) ...
2023-07-21T19:15:50.8013409Z Processing triggers for man-db (2.10.2-1) ...
2023-07-21T19:15:51.1865574Z Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
2023-07-21T19:15:51.2105969Z Processing triggers for hicolor-icon-theme (0.17-2) ...
2023-07-21T19:15:51.8743072Z (Reading database ... 
2023-07-21T19:15:51.8743746Z (Reading database ... 5%
2023-07-21T19:15:51.8744823Z (Reading database ... 10%
2023-07-21T19:15:51.8745247Z (Reading database ... 15%
2023-07-21T19:15:51.8745595Z (Reading database ... 20%
2023-07-21T19:15:51.8745900Z (Reading database ... 25%
2023-07-21T19:15:51.8746328Z (Reading database ... 30%
2023-07-21T19:15:51.8746610Z (Reading database ... 35%
2023-07-21T19:15:51.8746987Z (Reading database ... 40%
2023-07-21T19:15:51.8747647Z (Reading database ... 45%
2023-07-21T19:15:51.8747875Z (Reading database ... 50%
2023-07-21T19:15:51.8783232Z (Reading database ... 55%
2023-07-21T19:15:51.8823955Z (Reading database ... 60%
2023-07-21T19:15:51.8854123Z (Reading database ... 65%
2023-07-21T19:15:51.9016247Z (Reading database ... 70%
2023-07-21T19:15:51.9101156Z (Reading database ... 75%
2023-07-21T19:15:51.9304976Z (Reading database ... 80%
2023-07-21T19:15:51.9648872Z (Reading database ... 85%
2023-07-21T19:15:51.9853127Z (Reading database ... 90%
2023-07-21T19:15:51.9975364Z (Reading database ... 95%
2023-07-21T19:15:51.9976024Z (Reading database ... 100%
2023-07-21T19:15:51.9978476Z (Reading database ... 221638 files and directories currently installed.)
2023-07-21T19:15:52.0060584Z Purging configuration files for microsoft-edge-stable (114.0.1823.82-1) ...
2023-07-21T19:15:52.0533118Z Purging configuration files for google-chrome-stable (114.0.5735.198-1) ...
2023-07-21T19:15:52.0998482Z Purging configuration files for firefox (115.0.2+build1-0ubuntu0.22.04.1~mt1) ...
2023-07-21T19:15:53.9975584Z 
2023-07-21T19:15:53.9976545Z real	0m5.924s
2023-07-21T19:15:53.9977192Z user	0m3.533s
2023-07-21T19:15:53.9977526Z sys	0m0.901s
2023-07-21T19:15:53.9978052Z + sudo apt-get autoremove -y
2023-07-21T19:15:57.3161740Z 
2023-07-21T19:15:57.3162498Z real	0m3.319s
2023-07-21T19:15:57.3162728Z user	0m2.441s
2023-07-21T19:15:57.3162951Z sys	0m0.418s
2023-07-21T19:15:57.3163476Z + sudo apt-get autoclean -y
2023-07-21T19:15:57.5675145Z 
2023-07-21T19:15:57.5675875Z real	0m0.251s
2023-07-21T19:15:57.5676129Z user	0m0.224s
2023-07-21T19:15:57.5676342Z sys	0m0.026s
2023-07-21T19:15:57.5676985Z + sudo docker image prune --all --force
2023-07-21T19:16:03.3158779Z Deleted Images:
2023-07-21T19:16:03.3178184Z untagged: alpine:3.16
2023-07-21T19:16:03.3181139Z untagged: alpine@sha256:cbe5d5973103a2d03408d1689a6efde4ea4920bde9f4b51fe7872e60ce2d8e56
2023-07-21T19:16:03.3182706Z deleted: sha256:5cb2da5c2391f597316eafada2ec327caf3f0ce8df1022f39273d2e73d7d002c
2023-07-21T19:16:03.3184366Z deleted: sha256:18eb8b5891f2056b0a6c9978359916a519e8fdeec08c13c6383b922cd15fcfb2
2023-07-21T19:16:03.3184827Z untagged: node:16-alpine
2023-07-21T19:16:03.3185066Z untagged: node@sha256:6c381d5dc2a11dcdb693f0301e8587e43f440c90cdb8933eaaaabb905d44cdb9
2023-07-21T19:16:03.3185368Z deleted: sha256:d22e42cbfdbbd3264cc7dc26ad90192ed40027ba7f93cdba22b874961b8e27a3
2023-07-21T19:16:03.3185638Z deleted: sha256:8db90ef907d9ebdd9b332cc5e01d71bb1267da20267eaf537d19c24784fd1615
2023-07-21T19:16:03.3185939Z deleted: sha256:9d8557d8b2655cc265943db51f176a6f2da4cb21328f78b47655c31ccd7c028e
2023-07-21T19:16:03.3186200Z deleted: sha256:3a71837eb0412ca7a0e3cff75fe53609c924794249f89ac9a1347ed801601535
2023-07-21T19:16:03.3186424Z untagged: moby/buildkit:latest
2023-07-21T19:16:03.3186666Z untagged: moby/buildkit@sha256:e70e7a9bfaeafd2cb101b050ca78e1f73032473fc0aac5b10f35c5d26df1e2c6
2023-07-21T19:16:03.3186952Z deleted: sha256:869c7038a926857232869ac4637d79d7a0527823340c5431caeeec66a3ce7ec6
2023-07-21T19:16:03.3187219Z deleted: sha256:ec5171853e0b9294fcf1443ac18bf0a60652ebef0bf17b9889823121e181804d
2023-07-21T19:16:03.3187470Z deleted: sha256:a659db21cd3eb912b7cfb50645d8a2faedfe3701b5ea604a0927e0ea569c96c3
2023-07-21T19:16:03.3187734Z deleted: sha256:24d34f03896e9277fc99500af9ab2b07f06c22e96620417b74e265630ce6db63
2023-07-21T19:16:03.3187951Z untagged: alpine:3.18
2023-07-21T19:16:03.3188179Z untagged: alpine@sha256:82d1e9d7ed48a7523bdebc18cf6290bdb97b82302a8a9c27d4fe885949ea94d1
2023-07-21T19:16:03.3188457Z deleted: sha256:c1aabb73d2339c5ebaa3681de2e9d9c18d57485045a4e311d9f8004bec208d67
2023-07-21T19:16:03.3188943Z untagged: node:14-alpine
2023-07-21T19:16:03.3189176Z untagged: node@sha256:434215b487a329c9e867202ff89e704d3a75e554822e07f3e0c0f9e606121b33
2023-07-21T19:16:03.3189605Z deleted: sha256:0dac3dc27b1ad570e6c3a7f7cd29e88e7130ff0cad31b2ec5a0f222fbe971bdb
2023-07-21T19:16:03.3190163Z deleted: sha256:3f3a6e7f9c9d353391c75899b353f0f14c203e98fdbd0fd11bf6b84a74dab522
2023-07-21T19:16:03.3190506Z deleted: sha256:dee85e6b7f481bd5bbdff9fdfd8568ee70adb0d277f352348ef099f52afb46df
2023-07-21T19:16:03.3190762Z deleted: sha256:d6c83f14fe35dff122c995ada9da84a33ad2b7bf357133c3fa4c2baea3d3755b
2023-07-21T19:16:03.3191030Z deleted: sha256:f1417ff83b319fbdae6dd9cd6d8c9c88002dcd75ecf6ec201c8c6894681cf2b5
2023-07-21T19:16:03.3191250Z untagged: alpine:3.14
2023-07-21T19:16:03.3191481Z untagged: alpine@sha256:0f2d5c38dd7a4f4f733e688e3a6733cb5ab1ac6e3cb4603a5dd564e5bfb80eed
2023-07-21T19:16:03.3191770Z deleted: sha256:9e179bacf43c4d3428d57cf459799ba0285b901945f9eccb17b6da056d3532c7
2023-07-21T19:16:03.3192027Z deleted: sha256:9733ccc395133a067f01ee6e380003d80fe9f443673e0f992ae6a4a7860a872c
2023-07-21T19:16:03.3192249Z untagged: debian:10
2023-07-21T19:16:03.3192477Z untagged: debian@sha256:c21dbb23d41cb3f1c1a7f841e8642bf713934fb4dc5187979bd46f0b4b488616
2023-07-21T19:16:03.3192758Z deleted: sha256:1de12428f6f470169eba22c18e53addae00d60e92ebe96b2c3bdd99c17c34010
2023-07-21T19:16:03.3192969Z untagged: node:18
2023-07-21T19:16:03.3193178Z untagged: node@sha256:f4698d49371c8a9fa7dd78b97fb2a532213903066e47966542b3b1d403449da4
2023-07-21T19:16:03.3193455Z deleted: sha256:4ef2979d73d4efff0b40dc5de84fce58381cd2973065fce840a5939a7b3f8aa1
2023-07-21T19:16:03.3193722Z deleted: sha256:bed0a79368070076f6c03fc637367a34f5e472f25b65707b7b02cda0e5c8028e
2023-07-21T19:16:03.3194113Z deleted: sha256:678508632ceb61521c0981c54cf639395c908b59cd762fe121e8c9c2d5ccc0f0
2023-07-21T19:16:03.3194383Z deleted: sha256:61f31511919ec39f79dad45aed79100eded019631197df05685be59f346d911c
2023-07-21T19:16:03.3194634Z deleted: sha256:c3767412dc7a4b61d34c21949c7b277c007d7ee979170ae088b30604b394916d
2023-07-21T19:16:03.3194905Z deleted: sha256:47be7118de812a5e4dd0c80738586f76c4171587359b70e862b1760e93d0b18b
2023-07-21T19:16:03.3195171Z deleted: sha256:b80181f01d740ba89ac4b6ce18ec3ef3f374f14d972c2f874813c33990687e22
2023-07-21T19:16:03.3195435Z deleted: sha256:8faba640c5ba02612700e22f88797a571828443075845780f431d956aa72c456
2023-07-21T19:16:03.3195701Z deleted: sha256:61581d479298c795fa3cfe95419a5cec510085ec0d040306f69e491a598e7707
2023-07-21T19:16:03.3195901Z untagged: node:16
2023-07-21T19:16:03.3196121Z untagged: node@sha256:466d0a05ecb1e5b9890960592311fa10c2bc6012fc27dbfdcc74abf10fc324fc
2023-07-21T19:16:03.3196399Z deleted: sha256:81c6e5ef93fcc0f603ac62cb5b8fbda4575af20f5003d5da1d229b54d02d97c4
2023-07-21T19:16:03.3196664Z deleted: sha256:6a4ba61688a53c2bb86d9cc1359f3c9f6ee0e4b550358d4dc52e6ba096f6c3b9
2023-07-21T19:16:03.3196929Z deleted: sha256:8fdda38f2ccae25e38de6ccac9cc91de2ee9990275d0c13689ba09599a15703f
2023-07-21T19:16:03.3197182Z deleted: sha256:798635aaff594d4dca26a7d606ab7854ad99c8e6cd0b35a98aedbccce0d5849e
2023-07-21T19:16:03.3197452Z deleted: sha256:83c9e27bb29e7a06652c997147dd287ea2cc7e59bd1fd2af7a77b376b74b4e7a
2023-07-21T19:16:03.3197753Z untagged: buildpack-deps:bullseye
2023-07-21T19:16:03.3198121Z untagged: buildpack-deps@sha256:7742ec0838b3c91afb08f8e2e3a5abc2a5379fe6f7e6c242ed4d3b472c7c5c73
2023-07-21T19:16:03.3198411Z deleted: sha256:32c83682cffffc48f1d1da4b634def742c08aa1baeb486df6bfc1668b8cd44e9
2023-07-21T19:16:03.3198793Z deleted: sha256:fe5b68c1e29e4834b2c11fda3d2282f6b5a2ceda19b23f3a43f07be1719e9d1e
2023-07-21T19:16:03.3199058Z deleted: sha256:515690a2e06864e5cdb07cebe91cf3b615de42c1d3f0377fa8be96a67c5d7a66
2023-07-21T19:16:03.3199330Z deleted: sha256:3b59e939fe52bc7a43cb95284af4572db013b39f034ddc63b2b3342ff8396306
2023-07-21T19:16:03.3199593Z untagged: node:18-alpine
2023-07-21T19:16:03.3199823Z untagged: node@sha256:d5b2a7869a4016b1847986ea52098fa404421e44281bb7615a9e3615e07f37fb
2023-07-21T19:16:03.3200085Z deleted: sha256:f85482183a4f18ec843fea14e64575a5550f153211c5b497fea50353cb088645
2023-07-21T19:16:03.3200431Z deleted: sha256:60f4e8f5400726700db27813fd05af8b00d9f8f27166b4c3a9663b32c3411b50
2023-07-21T19:16:03.3200698Z deleted: sha256:09e99483429f13f0d95ec786b7e5f8103d42674437e8eafabec2837065fbe509
2023-07-21T19:16:03.3200961Z deleted: sha256:f283b8a1d446b37ba29f7294595ab09b97a001edc45e8ef77bf982a8a82bbc2a
2023-07-21T19:16:03.3201226Z deleted: sha256:78a822fe2a2d2c84f3de4a403188c45f623017d6a4521d23047c9fbb0801794c
2023-07-21T19:16:03.3201495Z untagged: buildpack-deps:buster
2023-07-21T19:16:03.3201846Z untagged: buildpack-deps@sha256:93d76989e9b0ebdfe9b96e96095ea6f87c710ecd01b66ce85418232c7af430c3
2023-07-21T19:16:03.3202135Z deleted: sha256:7eb882719b28e6bbddb691ea7cbc3679551f1b68715fe48e477afa5d82c87afe
2023-07-21T19:16:03.3202400Z deleted: sha256:7cd4d1040ad090090eeddbb89a38703a81b9455042bf016619821637c300d1a8
2023-07-21T19:16:03.3202663Z deleted: sha256:819cf82e721ee294390e9fb606c092dbc4e22df9a217dbac194b4aa459bd91c0
2023-07-21T19:16:03.3202926Z deleted: sha256:cf90d3440eb8324b02cabe0ccc0d51b67c5bc94474a26e64353ec4260837da00
2023-07-21T19:16:03.3203184Z deleted: sha256:0c23ed2428e1ef41fdb571789f6968dd47c95135311b1c8bf56462c98581694b
2023-07-21T19:16:03.3203397Z untagged: alpine:3.17
2023-07-21T19:16:03.3203623Z untagged: alpine@sha256:e95676db9e4a4f16f6cc01a8915368f82b018cc07aba951c1bd1db586c081388
2023-07-21T19:16:03.3203903Z deleted: sha256:1f73a9d63274924f077b22c7e5a894667cb6a7073638e7d5df3b43be14d1c9ab
2023-07-21T19:16:03.3204167Z deleted: sha256:3dab9f8bf2d28c8bd1047f3ac2d0c72f3570562f491e67ef8179dfdcc68bccff
2023-07-21T19:16:03.3204364Z untagged: node:14
2023-07-21T19:16:03.3204645Z untagged: node@sha256:a158d3b9b4e3fa813fa6c8c590b8f0a860e015ad4e59bbce5744d2f6fd8461aa
2023-07-21T19:16:03.3204920Z deleted: sha256:1d12470fa662a2a5cb50378dcdc8ea228c1735747db410bbefb8e2d9144b5452
2023-07-21T19:16:03.3205184Z deleted: sha256:d7f4fb376c48badb9879c97df87580480be3f4dcad2e2f33425792d164933fa3
2023-07-21T19:16:03.3205450Z deleted: sha256:71fe964a0bdce3b1795d90eb1f8a501dd719e8612faeb40783706c962339c75c
2023-07-21T19:16:03.3205710Z deleted: sha256:559303f34408584d79e77eab1ec15eb80d04d753a87a38c8da31542440c0a64a
2023-07-21T19:16:03.3205977Z deleted: sha256:483ca60b49ed28025355f381d9e2b759e67e66b9dfb266c66f57acf0cb47033e
2023-07-21T19:16:03.3206243Z deleted: sha256:f1edb12649962bbc5048b132c2201e98d474b9f99e6936d41633b43d6e7bd91d
2023-07-21T19:16:03.3206506Z deleted: sha256:9f9d995a1674f94b553c90e4eb3502db04a8220403f3add46486659752a3a108
2023-07-21T19:16:03.3206768Z deleted: sha256:a61e818f0b1f7522e3a27211026f564f1fd98ae2034229d1233623e92a6a7961
2023-07-21T19:16:03.3207018Z deleted: sha256:16c88c4e67dd8ed4c67c0e9c1dae7df697f4607eab4c3d2f12b1b18206a6a6e4
2023-07-21T19:16:03.3207284Z deleted: sha256:b2dba74777543b60e1a5be6da44e67659f51b8df1e96922205a5dde6b92dda3c
2023-07-21T19:16:03.3207496Z untagged: ubuntu:18.04
2023-07-21T19:16:03.3207722Z untagged: ubuntu@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98
2023-07-21T19:16:03.3207997Z deleted: sha256:f9a80a55f492e823bf5d51f1bd5f87ea3eed1cb31788686aa99a2fb61a27af6a
2023-07-21T19:16:03.3208252Z deleted: sha256:548a79621a426b4eb077c926eabac5a8620c454fb230640253e1b44dc7dd7562
2023-07-21T19:16:03.3208460Z untagged: debian:11
2023-07-21T19:16:03.3208685Z untagged: debian@sha256:a648e10e02af129706b1fb89e1ac9694ae3db7f2b8439aa906321e68cc281bc0
2023-07-21T19:16:03.3208963Z deleted: sha256:189a2f977ff1e0aeb33038f380dd9a6ab0355d27ec82f10d23567b95386506ce
2023-07-21T19:16:03.3209226Z deleted: sha256:3dec696a3faa5c4e640ffcc75cdc563e6198d7386bf0872ada5d956f56119957
2023-07-21T19:16:03.3209427Z untagged: alpine:3.15
2023-07-21T19:16:03.3209656Z untagged: alpine@sha256:3362f865019db5f14ac5154cb0db2c3741ad1cce0416045be422ad4de441b081
2023-07-21T19:16:03.3209934Z deleted: sha256:029bed813f07be84fae0344cbf8076ced5ea3c929d5f064ba617ac7d8c610a4b
2023-07-21T19:16:03.3210200Z deleted: sha256:579bc0f2bef2b2a8b9e33055679857993dd2a4bd8a06633bf0f9c9e9eb15dfd3
2023-07-21T19:16:03.3210412Z untagged: ubuntu:22.04
2023-07-21T19:16:03.3210683Z untagged: ubuntu@sha256:0bced47fffa3361afa981854fcabcd4577cd43cebbb808cea2b1f33a3dd7f508
2023-07-21T19:16:03.3210960Z deleted: sha256:5a81c4b8502e4979e75bd8f91343b95b0d695ab67f241dbed0d1530a35bde1eb
2023-07-21T19:16:03.3211225Z deleted: sha256:59c56aee1fb4dbaeb334aef06088b49902105d1ea0c15a9e5a2a9ce560fa4c5d
2023-07-21T19:16:03.3211439Z untagged: ubuntu:20.04
2023-07-21T19:16:03.3211665Z untagged: ubuntu@sha256:c9820a44b950956a790c354700c1166a7ec648bc0d215fa438d3a339812f1d01
2023-07-21T19:16:03.3211926Z deleted: sha256:14be0685b7682b182af5b862c9638cb1cb4ca1a70bd5aa90deed96e9cca881e7
2023-07-21T19:16:03.3212188Z deleted: sha256:f5bb4f853c84f6579d86f72de5f1d43fc8866443d9a027e2106e3755acefd61c
2023-07-21T19:16:03.3212322Z 
2023-07-21T19:16:03.3212459Z Total reclaimed space: 4.551GB
2023-07-21T19:16:03.3212544Z 
2023-07-21T19:16:03.3212666Z real	0m5.750s
2023-07-21T19:16:03.3212812Z user	0m0.012s
2023-07-21T19:16:03.3212960Z sys	0m0.033s
2023-07-21T19:16:03.3213099Z + df -h
2023-07-21T19:16:03.3213545Z Filesystem      Size  Used Avail Use% Mounted on
2023-07-21T19:16:03.3352216Z /dev/root        84G   23G   61G  28% /
2023-07-21T19:16:03.3352593Z tmpfs           3.4G  172K  3.4G   1% /dev/shm
2023-07-21T19:16:03.3352885Z tmpfs           1.4G  1.1M  1.4G   1% /run
2023-07-21T19:16:03.3353086Z tmpfs           5.0M     0  5.0M   0% /run/lock
2023-07-21T19:16:03.3353352Z /dev/sdb15      105M  6.1M   99M   6% /boot/efi
2023-07-21T19:16:03.3353553Z /dev/sda1        14G  4.1G  9.0G  31% /mnt
2023-07-21T19:16:03.3354708Z tmpfs           694M   12K  694M   1% /run/user/1001
2023-07-21T19:16:03.3354833Z 
2023-07-21T19:16:03.3354962Z real	1m40.108s
2023-07-21T19:16:03.3355257Z user	0m7.065s
2023-07-21T19:16:03.3355401Z sys	0m9.085s
2023-07-21T19:16:03.3366994Z ##[section]Finishing: Clean up linux image

Copy link
Member

@jakirkham jakirkham left a comment

Choose a reason for hiding this comment

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

How about something like this? We could do this with more directories. Though am thinking /opt/hostedtoolcache is the most time consuming

https://www.suse.com/support/kb/doc/?id=000019018

conda_smithy/templates/azure-pipelines-linux.yml.tmpl Outdated Show resolved Hide resolved
conda_smithy/templates/azure-pipelines-linux.yml.tmpl Outdated Show resolved Hide resolved
@bkpoon
Copy link
Member Author

bkpoon commented Jul 21, 2023

I'll try timing the other way of deleting.

Here are the directory sizes.

2023-07-21T19:34:17.8816806Z ++ /bin/ls -d /opt/hostedtoolcache/CodeQL/ /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/ /opt/hostedtoolcache/PyPy/ /opt/hostedtoolcache/Python/ /opt/hostedtoolcache/Ruby/ /opt/hostedtoolcache/go/ /opt/hostedtoolcache/node/
2023-07-21T19:34:17.8824240Z + for d in `/bin/ls -d /opt/hostedtoolcache/*/`
2023-07-21T19:34:17.8826366Z + du -sh /opt/hostedtoolcache/CodeQL/
2023-07-21T19:34:18.1437257Z 8.2G	/opt/hostedtoolcache/CodeQL/
2023-07-21T19:34:18.1438455Z + for d in `/bin/ls -d /opt/hostedtoolcache/*/`
2023-07-21T19:34:18.1439224Z + du -sh /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/
2023-07-21T19:34:18.1453481Z 16K	/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/
2023-07-21T19:34:18.1453852Z + for d in `/bin/ls -d /opt/hostedtoolcache/*/`
2023-07-21T19:34:18.1455008Z + du -sh /opt/hostedtoolcache/PyPy/
2023-07-21T19:34:18.2021948Z 487M	/opt/hostedtoolcache/PyPy/
2023-07-21T19:34:18.2030654Z + for d in `/bin/ls -d /opt/hostedtoolcache/*/`
2023-07-21T19:34:18.2031384Z + du -sh /opt/hostedtoolcache/Python/
2023-07-21T19:34:18.3576397Z 1.2G	/opt/hostedtoolcache/Python/
2023-07-21T19:34:18.3586805Z + for d in `/bin/ls -d /opt/hostedtoolcache/*/`
2023-07-21T19:34:18.3587491Z + du -sh /opt/hostedtoolcache/Ruby/
2023-07-21T19:34:18.3742357Z 62M	/opt/hostedtoolcache/Ruby/
2023-07-21T19:34:18.3752049Z + for d in `/bin/ls -d /opt/hostedtoolcache/*/`
2023-07-21T19:34:18.3752671Z + du -sh /opt/hostedtoolcache/go/
2023-07-21T19:34:18.5407316Z 1.2G	/opt/hostedtoolcache/go/
2023-07-21T19:34:18.5417623Z + for d in `/bin/ls -d /opt/hostedtoolcache/*/`
2023-07-21T19:34:18.5418493Z + du -sh /opt/hostedtoolcache/node/
2023-07-21T19:34:18.6285387Z 378M	/opt/hostedtoolcache/node/
2023-07-21T19:34:18.6286202Z + for d in /usr/lib/jvm /usr/local/.ghcup /usr/local/lib/android /usr/local/share/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T19:34:18.6287072Z + du -sh /usr/lib/jvm
2023-07-21T19:34:18.8169807Z 821M	/usr/lib/jvm
2023-07-21T19:34:18.8170636Z + for d in /usr/lib/jvm /usr/local/.ghcup /usr/local/lib/android /usr/local/share/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T19:34:18.8171478Z + du -sh /usr/local/.ghcup
2023-07-21T19:34:22.3501215Z 4.7G	/usr/local/.ghcup
2023-07-21T19:34:22.3502451Z + for d in /usr/lib/jvm /usr/local/.ghcup /usr/local/lib/android /usr/local/share/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T19:34:22.3503468Z + du -sh /usr/local/lib/android
2023-07-21T19:35:30.6811434Z 13G	/usr/local/lib/android
2023-07-21T19:35:30.6812195Z + for d in /usr/lib/jvm /usr/local/.ghcup /usr/local/lib/android /usr/local/share/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T19:35:30.6813043Z + du -sh /usr/local/share/powershell
2023-07-21T19:35:30.8155965Z 998M	/usr/local/share/powershell
2023-07-21T19:35:30.8156386Z + for d in /usr/lib/jvm /usr/local/.ghcup /usr/local/lib/android /usr/local/share/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T19:35:30.8156892Z + du -sh /usr/share/dotnet
2023-07-21T19:35:33.6791805Z 1.8G	/usr/share/dotnet
2023-07-21T19:35:33.6793009Z + for d in /usr/lib/jvm /usr/local/.ghcup /usr/local/lib/android /usr/local/share/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T19:35:33.6794091Z + du -sh /usr/share/swift
2023-07-21T19:35:33.8912816Z 1.7G	/usr/share/swift

@bkpoon
Copy link
Member Author

bkpoon commented Jul 21, 2023

rsync is a lot faster (~3 s for /opt/hostedtoolcache). I'll make the changes and test them again for the other directories.

2023-07-21T19:46:28.5910227Z ##[section]Starting: Clean up linux image
2023-07-21T19:46:28.5914747Z ==============================================================================
2023-07-21T19:46:28.5914877Z Task         : Command line
2023-07-21T19:46:28.5915162Z Description  : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2023-07-21T19:46:28.5915289Z Version      : 2.212.0
2023-07-21T19:46:28.5915352Z Author       : Microsoft Corporation
2023-07-21T19:46:28.5915424Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2023-07-21T19:46:28.5915593Z ==============================================================================
2023-07-21T19:46:28.7457835Z Generating script.
2023-07-21T19:46:28.7468318Z Script contents:
2023-07-21T19:46:28.7468708Z time sudo /home/vsts/work/1/s/scripts/clean_linux.sh
2023-07-21T19:46:28.7468947Z ========================== Starting Command Output ===========================
2023-07-21T19:46:28.7508493Z [command]/usr/bin/bash --noprofile --norc /home/vsts/work/_temp/9923fe1f-d408-4a0d-9462-b5575ee37b59.sh
2023-07-21T19:46:28.7682172Z + sudo mkdir -p /opt/empty_dir/hostedtoolcache
2023-07-21T19:46:28.7722499Z 
2023-07-21T19:46:28.7723034Z real	0m0.009s
2023-07-21T19:46:28.7723581Z user	0m0.003s
2023-07-21T19:46:28.7723908Z sys	0m0.004s
2023-07-21T19:46:28.7724636Z + sudo rsync -a --delete /opt/empty_dir/hostedtoolcache/ /opt/hostedtoolcache
2023-07-21T19:46:32.1624520Z 
2023-07-21T19:46:32.1625589Z real	0m3.390s
2023-07-21T19:46:32.1626317Z user	0m0.331s
2023-07-21T19:46:32.1626548Z sys	0m2.576s
2023-07-21T19:46:32.1626709Z + ls /opt/hostedtoolcache
2023-07-21T19:46:32.1639524Z + df -h
2023-07-21T19:46:32.1662345Z Filesystem      Size  Used Avail Use% Mounted on
2023-07-21T19:46:32.1674230Z /dev/root        84G   50G   34G  60% /
2023-07-21T19:46:32.1674724Z tmpfs           3.4G  172K  3.4G   1% /dev/shm
2023-07-21T19:46:32.1677281Z tmpfs           1.4G  1.1M  1.4G   1% /run
2023-07-21T19:46:32.1679505Z tmpfs           5.0M     0  5.0M   0% /run/lock
2023-07-21T19:46:32.1679870Z /dev/sda15      105M  6.1M   99M   6% /boot/efi
2023-07-21T19:46:32.1680179Z /dev/sdb1        14G  4.1G  9.0G  31% /mnt
2023-07-21T19:46:32.1724883Z tmpfs           694M   12K  694M   1% /run/user/1001
2023-07-21T19:46:32.1724979Z 
2023-07-21T19:46:32.1725117Z real	0m3.412s
2023-07-21T19:46:32.1725248Z user	0m0.344s
2023-07-21T19:46:32.1725388Z sys	0m2.582s
2023-07-21T19:46:32.1766572Z ##[section]Finishing: Clean up linux image

@jakirkham
Copy link
Member

jakirkham commented Jul 21, 2023

Might be worth confirming that rsync has indeed deleted those directories (maybe some debug ls or tree calls). While I trust SUSE and others to do their homework, I have not checked it myself. We'd want to be sure we are in fact fixing the problem on our end as we expect

@bkpoon
Copy link
Member Author

bkpoon commented Jul 21, 2023

Sure, I have the final timing logs with a du -sh for each directory that was deleted with rsync. This run took about ~26 s. There is some variance, some runs were taking about 40 s.

To summarize, for this run

  • rsync takes about 10 s
  • apt-get takes about 11 s for 1 GB
  • docker prune takes about 5 s for 4.5 GB

The final free disk space is ~ 49 GB which is less than what I saw earlier (~ 60 GB). Maybe there was an image update that rolled through?

The other consideration is that a failure in this step should not stop the build. The /opt/ghc directory no longer seems to exist so I removed that. Are the commands fault tolerant? Also, are the apt-get and docker commands worth running?

2023-07-21T20:16:05.4198444Z ##[section]Starting: Clean up linux image
2023-07-21T20:16:05.4202115Z ==============================================================================
2023-07-21T20:16:05.4202237Z Task         : Command line
2023-07-21T20:16:05.4202300Z Description  : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2023-07-21T20:16:05.4202424Z Version      : 2.212.0
2023-07-21T20:16:05.4202483Z Author       : Microsoft Corporation
2023-07-21T20:16:05.4202555Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2023-07-21T20:16:05.4202667Z ==============================================================================
2023-07-21T20:16:05.5587429Z Generating script.
2023-07-21T20:16:05.5596996Z Script contents:
2023-07-21T20:16:05.5597167Z time sudo /home/vsts/work/1/s/scripts/clean_linux.sh
2023-07-21T20:16:05.5597370Z ========================== Starting Command Output ===========================
2023-07-21T20:16:05.5620533Z [command]/usr/bin/bash --noprofile --norc /home/vsts/work/_temp/57cab895-55ba-48ba-b034-413e1ad30bdb.sh
2023-07-21T20:16:05.5745751Z + sudo mkdir -p /opt/empty_dir
2023-07-21T20:16:05.5812398Z + for d in /opt/hostedtoolcache /usr/lib/jvm /usr/local/.ghcup /usr/local/android /usr/local/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T20:16:05.5812965Z + sudo rsync -a --delete /opt/empty_dir/ /opt/hostedtoolcache
2023-07-21T20:16:08.8094140Z 
2023-07-21T20:16:08.8095363Z real	0m3.228s
2023-07-21T20:16:08.8095750Z user	0m0.326s
2023-07-21T20:16:08.8096547Z sys	0m2.462s
2023-07-21T20:16:08.8096929Z + for d in /opt/hostedtoolcache /usr/lib/jvm /usr/local/.ghcup /usr/local/android /usr/local/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T20:16:08.8097716Z + sudo rsync -a --delete /opt/empty_dir/ /usr/lib/jvm
2023-07-21T20:16:08.9698985Z 
2023-07-21T20:16:08.9699780Z real	0m0.160s
2023-07-21T20:16:08.9700206Z user	0m0.007s
2023-07-21T20:16:08.9700504Z sys	0m0.041s
2023-07-21T20:16:08.9700872Z + for d in /opt/hostedtoolcache /usr/lib/jvm /usr/local/.ghcup /usr/local/android /usr/local/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T20:16:08.9701510Z + sudo rsync -a --delete /opt/empty_dir/ /usr/local/.ghcup
2023-07-21T20:16:11.6742162Z 
2023-07-21T20:16:11.6742918Z real	0m2.704s
2023-07-21T20:16:11.6743283Z user	0m0.059s
2023-07-21T20:16:11.6743762Z sys	0m0.358s
2023-07-21T20:16:11.6744203Z + for d in /opt/hostedtoolcache /usr/lib/jvm /usr/local/.ghcup /usr/local/android /usr/local/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T20:16:11.6744788Z + sudo rsync -a --delete /opt/empty_dir/ /usr/local/android
2023-07-21T20:16:11.7260344Z 
2023-07-21T20:16:11.7261078Z real	0m0.052s
2023-07-21T20:16:11.7261489Z user	0m0.005s
2023-07-21T20:16:11.7262062Z sys	0m0.009s
2023-07-21T20:16:11.7262405Z + for d in /opt/hostedtoolcache /usr/lib/jvm /usr/local/.ghcup /usr/local/android /usr/local/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T20:16:11.7262980Z + sudo rsync -a --delete /opt/empty_dir/ /usr/local/powershell
2023-07-21T20:16:11.7766668Z 
2023-07-21T20:16:11.7767304Z real	0m0.051s
2023-07-21T20:16:11.7767668Z user	0m0.007s
2023-07-21T20:16:11.7768242Z sys	0m0.006s
2023-07-21T20:16:11.7768660Z + for d in /opt/hostedtoolcache /usr/lib/jvm /usr/local/.ghcup /usr/local/android /usr/local/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T20:16:11.7769302Z + sudo rsync -a --delete /opt/empty_dir/ /usr/share/dotnet
2023-07-21T20:16:15.5025336Z 
2023-07-21T20:16:15.5025841Z real	0m3.726s
2023-07-21T20:16:15.5025991Z user	0m0.039s
2023-07-21T20:16:15.5026179Z sys	0m0.315s
2023-07-21T20:16:15.5026397Z + for d in /opt/hostedtoolcache /usr/lib/jvm /usr/local/.ghcup /usr/local/android /usr/local/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T20:16:15.5026840Z + sudo rsync -a --delete /opt/empty_dir/ /usr/share/swift
2023-07-21T20:16:15.6848787Z 
2023-07-21T20:16:15.6849581Z real	0m0.182s
2023-07-21T20:16:15.6849980Z user	0m0.014s
2023-07-21T20:16:15.6850273Z sys	0m0.020s
2023-07-21T20:16:15.6850677Z + for d in /opt/hostedtoolcache /usr/lib/jvm /usr/local/.ghcup /usr/local/android /usr/local/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T20:16:15.6851589Z + du -sh /opt/hostedtoolcache
2023-07-21T20:16:15.6867647Z 4.0K	/opt/hostedtoolcache
2023-07-21T20:16:15.6868183Z + for d in /opt/hostedtoolcache /usr/lib/jvm /usr/local/.ghcup /usr/local/android /usr/local/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T20:16:15.6868944Z + du -sh /usr/lib/jvm
2023-07-21T20:16:15.6876940Z 4.0K	/usr/lib/jvm
2023-07-21T20:16:15.6880088Z + for d in /opt/hostedtoolcache /usr/lib/jvm /usr/local/.ghcup /usr/local/android /usr/local/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T20:16:15.6880625Z + du -sh /usr/local/.ghcup
2023-07-21T20:16:15.6887233Z 4.0K	/usr/local/.ghcup
2023-07-21T20:16:15.6888404Z + for d in /opt/hostedtoolcache /usr/lib/jvm /usr/local/.ghcup /usr/local/android /usr/local/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T20:16:15.6888905Z + du -sh /usr/local/android
2023-07-21T20:16:15.6897604Z 4.0K	/usr/local/android
2023-07-21T20:16:15.6899011Z + for d in /opt/hostedtoolcache /usr/lib/jvm /usr/local/.ghcup /usr/local/android /usr/local/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T20:16:15.6899537Z + du -sh /usr/local/powershell
2023-07-21T20:16:15.6909671Z 4.0K	/usr/local/powershell
2023-07-21T20:16:15.6910145Z + for d in /opt/hostedtoolcache /usr/lib/jvm /usr/local/.ghcup /usr/local/android /usr/local/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T20:16:15.6910737Z + du -sh /usr/share/dotnet
2023-07-21T20:16:15.6918689Z 4.0K	/usr/share/dotnet
2023-07-21T20:16:15.6921469Z + for d in /opt/hostedtoolcache /usr/lib/jvm /usr/local/.ghcup /usr/local/android /usr/local/powershell /usr/share/dotnet /usr/share/swift
2023-07-21T20:16:15.6921969Z + du -sh /usr/share/swift
2023-07-21T20:16:15.6928517Z 4.0K	/usr/share/swift
2023-07-21T20:16:15.6929605Z + sudo apt-get purge -y -f firefox google-chrome-stable microsoft-edge-stable
2023-07-21T20:16:16.6050041Z Reading package lists...
2023-07-21T20:16:16.8037599Z Building dependency tree...
2023-07-21T20:16:16.8054583Z Reading state information...
2023-07-21T20:16:16.9347467Z The following packages will be REMOVED:
2023-07-21T20:16:16.9350158Z   firefox* google-chrome-stable* microsoft-edge-stable*
2023-07-21T20:16:17.2574244Z 0 upgraded, 0 newly installed, 3 to remove and 26 not upgraded.
2023-07-21T20:16:17.2574555Z After this operation, 1094 MB disk space will be freed.
2023-07-21T20:16:17.3024100Z (Reading database ... 
2023-07-21T20:16:17.3024415Z (Reading database ... 5%
2023-07-21T20:16:17.3026319Z (Reading database ... 10%
2023-07-21T20:16:17.3026789Z (Reading database ... 15%
2023-07-21T20:16:17.3027060Z (Reading database ... 20%
2023-07-21T20:16:17.3027218Z (Reading database ... 25%
2023-07-21T20:16:17.3027383Z (Reading database ... 30%
2023-07-21T20:16:17.3027521Z (Reading database ... 35%
2023-07-21T20:16:17.3027667Z (Reading database ... 40%
2023-07-21T20:16:17.3027812Z (Reading database ... 45%
2023-07-21T20:16:17.3027983Z (Reading database ... 50%
2023-07-21T20:16:17.3249201Z (Reading database ... 55%
2023-07-21T20:16:17.3437664Z (Reading database ... 60%
2023-07-21T20:16:17.3606894Z (Reading database ... 65%
2023-07-21T20:16:17.4031605Z (Reading database ... 70%
2023-07-21T20:16:17.4349499Z (Reading database ... 75%
2023-07-21T20:16:17.4730669Z (Reading database ... 80%
2023-07-21T20:16:17.5328885Z (Reading database ... 85%
2023-07-21T20:16:17.5829635Z (Reading database ... 90%
2023-07-21T20:16:17.6244779Z (Reading database ... 95%
2023-07-21T20:16:17.6244967Z (Reading database ... 100%
2023-07-21T20:16:17.6245145Z (Reading database ... 221992 files and directories currently installed.)
2023-07-21T20:16:17.6305859Z Removing firefox (115.0.2+build1-0ubuntu0.22.04.1~mt1) ...
2023-07-21T20:16:17.7098142Z Removing google-chrome-stable (114.0.5735.198-1) ...
2023-07-21T20:16:17.8664724Z Removing microsoft-edge-stable (114.0.1823.82-1) ...
2023-07-21T20:16:18.1491148Z Processing triggers for man-db (2.10.2-1) ...
2023-07-21T20:16:18.4787330Z Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
2023-07-21T20:16:18.5580639Z Processing triggers for hicolor-icon-theme (0.17-2) ...
2023-07-21T20:16:19.0463690Z (Reading database ... 
2023-07-21T20:16:19.0464252Z (Reading database ... 5%
2023-07-21T20:16:19.0465013Z (Reading database ... 10%
2023-07-21T20:16:19.0466799Z (Reading database ... 15%
2023-07-21T20:16:19.0467592Z (Reading database ... 20%
2023-07-21T20:16:19.0468263Z (Reading database ... 25%
2023-07-21T20:16:19.0470156Z (Reading database ... 30%
2023-07-21T20:16:19.0470932Z (Reading database ... 35%
2023-07-21T20:16:19.0471644Z (Reading database ... 40%
2023-07-21T20:16:19.0472306Z (Reading database ... 45%
2023-07-21T20:16:19.0472981Z (Reading database ... 50%
2023-07-21T20:16:19.0510368Z (Reading database ... 55%
2023-07-21T20:16:19.0550903Z (Reading database ... 60%
2023-07-21T20:16:19.0578214Z (Reading database ... 65%
2023-07-21T20:16:19.0687967Z (Reading database ... 70%
2023-07-21T20:16:19.0720521Z (Reading database ... 75%
2023-07-21T20:16:19.0800174Z (Reading database ... 80%
2023-07-21T20:16:19.1049781Z (Reading database ... 85%
2023-07-21T20:16:19.1225591Z (Reading database ... 90%
2023-07-21T20:16:19.1321126Z (Reading database ... 95%
2023-07-21T20:16:19.1321547Z (Reading database ... 100%
2023-07-21T20:16:19.1322209Z (Reading database ... 221638 files and directories currently installed.)
2023-07-21T20:16:19.1381318Z Purging configuration files for microsoft-edge-stable (114.0.1823.82-1) ...
2023-07-21T20:16:19.1800605Z Purging configuration files for google-chrome-stable (114.0.5735.198-1) ...
2023-07-21T20:16:19.2226061Z Purging configuration files for firefox (115.0.2+build1-0ubuntu0.22.04.1~mt1) ...
2023-07-21T20:16:20.8868344Z 
2023-07-21T20:16:20.8868866Z real	0m5.194s
2023-07-21T20:16:20.8870381Z user	0m3.162s
2023-07-21T20:16:20.8870814Z sys	0m0.754s
2023-07-21T20:16:20.8871373Z + sudo apt-get autoremove -y
2023-07-21T20:16:26.9964067Z 
2023-07-21T20:16:26.9964589Z real	0m6.110s
2023-07-21T20:16:26.9964755Z user	0m2.050s
2023-07-21T20:16:26.9964888Z sys	0m0.426s
2023-07-21T20:16:26.9967659Z + sudo apt-get autoclean -y
2023-07-21T20:16:27.2073888Z 
2023-07-21T20:16:27.2074663Z real	0m0.211s
2023-07-21T20:16:27.2075360Z user	0m0.194s
2023-07-21T20:16:27.2075582Z sys	0m0.016s
2023-07-21T20:16:27.2075937Z + sudo docker image prune --all --force
2023-07-21T20:16:31.7852050Z Deleted Images:
2023-07-21T20:16:31.7852484Z untagged: buildpack-deps:buster
2023-07-21T20:16:31.7852832Z untagged: buildpack-deps@sha256:93d76989e9b0ebdfe9b96e96095ea6f87c710ecd01b66ce85418232c7af430c3
2023-07-21T20:16:31.7853092Z deleted: sha256:7eb882719b28e6bbddb691ea7cbc3679551f1b68715fe48e477afa5d82c87afe
2023-07-21T20:16:31.7853276Z untagged: debian:11
2023-07-21T20:16:31.7853480Z untagged: debian@sha256:a648e10e02af129706b1fb89e1ac9694ae3db7f2b8439aa906321e68cc281bc0
2023-07-21T20:16:31.7854434Z deleted: sha256:189a2f977ff1e0aeb33038f380dd9a6ab0355d27ec82f10d23567b95386506ce
2023-07-21T20:16:31.7854629Z untagged: ubuntu:20.04
2023-07-21T20:16:31.7854846Z untagged: ubuntu@sha256:c9820a44b950956a790c354700c1166a7ec648bc0d215fa438d3a339812f1d01
2023-07-21T20:16:31.7855096Z deleted: sha256:14be0685b7682b182af5b862c9638cb1cb4ca1a70bd5aa90deed96e9cca881e7
2023-07-21T20:16:31.7855331Z deleted: sha256:f5bb4f853c84f6579d86f72de5f1d43fc8866443d9a027e2106e3755acefd61c
2023-07-21T20:16:31.7855524Z untagged: alpine:3.16
2023-07-21T20:16:31.7855725Z untagged: alpine@sha256:cbe5d5973103a2d03408d1689a6efde4ea4920bde9f4b51fe7872e60ce2d8e56
2023-07-21T20:16:31.7855977Z deleted: sha256:5cb2da5c2391f597316eafada2ec327caf3f0ce8df1022f39273d2e73d7d002c
2023-07-21T20:16:31.7856199Z deleted: sha256:18eb8b5891f2056b0a6c9978359916a519e8fdeec08c13c6383b922cd15fcfb2
2023-07-21T20:16:31.7856384Z untagged: node:18
2023-07-21T20:16:31.7856581Z untagged: node@sha256:f4698d49371c8a9fa7dd78b97fb2a532213903066e47966542b3b1d403449da4
2023-07-21T20:16:31.7856826Z deleted: sha256:4ef2979d73d4efff0b40dc5de84fce58381cd2973065fce840a5939a7b3f8aa1
2023-07-21T20:16:31.7857066Z deleted: sha256:bed0a79368070076f6c03fc637367a34f5e472f25b65707b7b02cda0e5c8028e
2023-07-21T20:16:31.7857591Z deleted: sha256:678508632ceb61521c0981c54cf639395c908b59cd762fe121e8c9c2d5ccc0f0
2023-07-21T20:16:31.7857823Z deleted: sha256:61f31511919ec39f79dad45aed79100eded019631197df05685be59f346d911c
2023-07-21T20:16:31.7858196Z deleted: sha256:c3767412dc7a4b61d34c21949c7b277c007d7ee979170ae088b30604b394916d
2023-07-21T20:16:31.7858424Z deleted: sha256:47be7118de812a5e4dd0c80738586f76c4171587359b70e862b1760e93d0b18b
2023-07-21T20:16:31.7858657Z deleted: sha256:b80181f01d740ba89ac4b6ce18ec3ef3f374f14d972c2f874813c33990687e22
2023-07-21T20:16:31.7858879Z deleted: sha256:8faba640c5ba02612700e22f88797a571828443075845780f431d956aa72c456
2023-07-21T20:16:31.7859106Z deleted: sha256:61581d479298c795fa3cfe95419a5cec510085ec0d040306f69e491a598e7707
2023-07-21T20:16:31.7859354Z untagged: node:16-alpine
2023-07-21T20:16:31.7859560Z untagged: node@sha256:6c381d5dc2a11dcdb693f0301e8587e43f440c90cdb8933eaaaabb905d44cdb9
2023-07-21T20:16:31.7859892Z deleted: sha256:d22e42cbfdbbd3264cc7dc26ad90192ed40027ba7f93cdba22b874961b8e27a3
2023-07-21T20:16:31.7860108Z deleted: sha256:8db90ef907d9ebdd9b332cc5e01d71bb1267da20267eaf537d19c24784fd1615
2023-07-21T20:16:31.7860333Z deleted: sha256:9d8557d8b2655cc265943db51f176a6f2da4cb21328f78b47655c31ccd7c028e
2023-07-21T20:16:31.7860564Z deleted: sha256:3a71837eb0412ca7a0e3cff75fe53609c924794249f89ac9a1347ed801601535
2023-07-21T20:16:31.7860751Z untagged: alpine:3.18
2023-07-21T20:16:31.7860948Z untagged: alpine@sha256:82d1e9d7ed48a7523bdebc18cf6290bdb97b82302a8a9c27d4fe885949ea94d1
2023-07-21T20:16:31.7861179Z deleted: sha256:c1aabb73d2339c5ebaa3681de2e9d9c18d57485045a4e311d9f8004bec208d67
2023-07-21T20:16:31.7861423Z untagged: buildpack-deps:bullseye
2023-07-21T20:16:31.7861852Z untagged: buildpack-deps@sha256:7742ec0838b3c91afb08f8e2e3a5abc2a5379fe6f7e6c242ed4d3b472c7c5c73
2023-07-21T20:16:31.7862109Z deleted: sha256:32c83682cffffc48f1d1da4b634def742c08aa1baeb486df6bfc1668b8cd44e9
2023-07-21T20:16:31.7862340Z deleted: sha256:fe5b68c1e29e4834b2c11fda3d2282f6b5a2ceda19b23f3a43f07be1719e9d1e
2023-07-21T20:16:31.7862560Z deleted: sha256:515690a2e06864e5cdb07cebe91cf3b615de42c1d3f0377fa8be96a67c5d7a66
2023-07-21T20:16:31.7862789Z deleted: sha256:3b59e939fe52bc7a43cb95284af4572db013b39f034ddc63b2b3342ff8396306
2023-07-21T20:16:31.7863019Z deleted: sha256:3dec696a3faa5c4e640ffcc75cdc563e6198d7386bf0872ada5d956f56119957
2023-07-21T20:16:31.7863206Z untagged: debian:10
2023-07-21T20:16:31.7863405Z untagged: debian@sha256:c21dbb23d41cb3f1c1a7f841e8642bf713934fb4dc5187979bd46f0b4b488616
2023-07-21T20:16:31.7863638Z deleted: sha256:1de12428f6f470169eba22c18e53addae00d60e92ebe96b2c3bdd99c17c34010
2023-07-21T20:16:31.7863864Z untagged: node:18-alpine
2023-07-21T20:16:31.7864070Z untagged: node@sha256:d5b2a7869a4016b1847986ea52098fa404421e44281bb7615a9e3615e07f37fb
2023-07-21T20:16:31.7864309Z deleted: sha256:f85482183a4f18ec843fea14e64575a5550f153211c5b497fea50353cb088645
2023-07-21T20:16:31.7864541Z deleted: sha256:60f4e8f5400726700db27813fd05af8b00d9f8f27166b4c3a9663b32c3411b50
2023-07-21T20:16:31.7864766Z deleted: sha256:09e99483429f13f0d95ec786b7e5f8103d42674437e8eafabec2837065fbe509
2023-07-21T20:16:31.7864996Z deleted: sha256:f283b8a1d446b37ba29f7294595ab09b97a001edc45e8ef77bf982a8a82bbc2a
2023-07-21T20:16:31.7865184Z untagged: ubuntu:18.04
2023-07-21T20:16:31.7865380Z untagged: ubuntu@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98
2023-07-21T20:16:31.7865618Z deleted: sha256:f9a80a55f492e823bf5d51f1bd5f87ea3eed1cb31788686aa99a2fb61a27af6a
2023-07-21T20:16:31.7865837Z deleted: sha256:548a79621a426b4eb077c926eabac5a8620c454fb230640253e1b44dc7dd7562
2023-07-21T20:16:31.7866021Z untagged: alpine:3.15
2023-07-21T20:16:31.7866217Z untagged: alpine@sha256:3362f865019db5f14ac5154cb0db2c3741ad1cce0416045be422ad4de441b081
2023-07-21T20:16:31.7866455Z deleted: sha256:029bed813f07be84fae0344cbf8076ced5ea3c929d5f064ba617ac7d8c610a4b
2023-07-21T20:16:31.7866687Z deleted: sha256:579bc0f2bef2b2a8b9e33055679857993dd2a4bd8a06633bf0f9c9e9eb15dfd3
2023-07-21T20:16:31.7866976Z untagged: node:14-alpine
2023-07-21T20:16:31.7867175Z untagged: node@sha256:434215b487a329c9e867202ff89e704d3a75e554822e07f3e0c0f9e606121b33
2023-07-21T20:16:31.7867416Z deleted: sha256:0dac3dc27b1ad570e6c3a7f7cd29e88e7130ff0cad31b2ec5a0f222fbe971bdb
2023-07-21T20:16:31.7867648Z deleted: sha256:3f3a6e7f9c9d353391c75899b353f0f14c203e98fdbd0fd11bf6b84a74dab522
2023-07-21T20:16:31.7867880Z deleted: sha256:dee85e6b7f481bd5bbdff9fdfd8568ee70adb0d277f352348ef099f52afb46df
2023-07-21T20:16:31.7868102Z deleted: sha256:d6c83f14fe35dff122c995ada9da84a33ad2b7bf357133c3fa4c2baea3d3755b
2023-07-21T20:16:31.7868328Z deleted: sha256:f1417ff83b319fbdae6dd9cd6d8c9c88002dcd75ecf6ec201c8c6894681cf2b5
2023-07-21T20:16:31.7868514Z untagged: ubuntu:22.04
2023-07-21T20:16:31.7868712Z untagged: ubuntu@sha256:0bced47fffa3361afa981854fcabcd4577cd43cebbb808cea2b1f33a3dd7f508
2023-07-21T20:16:31.7868947Z deleted: sha256:5a81c4b8502e4979e75bd8f91343b95b0d695ab67f241dbed0d1530a35bde1eb
2023-07-21T20:16:31.7869213Z deleted: sha256:59c56aee1fb4dbaeb334aef06088b49902105d1ea0c15a9e5a2a9ce560fa4c5d
2023-07-21T20:16:31.7869396Z untagged: alpine:3.14
2023-07-21T20:16:31.7869594Z untagged: alpine@sha256:0f2d5c38dd7a4f4f733e688e3a6733cb5ab1ac6e3cb4603a5dd564e5bfb80eed
2023-07-21T20:16:31.7869865Z deleted: sha256:9e179bacf43c4d3428d57cf459799ba0285b901945f9eccb17b6da056d3532c7
2023-07-21T20:16:31.7870096Z deleted: sha256:9733ccc395133a067f01ee6e380003d80fe9f443673e0f992ae6a4a7860a872c
2023-07-21T20:16:31.7870269Z untagged: node:16
2023-07-21T20:16:31.7870462Z untagged: node@sha256:466d0a05ecb1e5b9890960592311fa10c2bc6012fc27dbfdcc74abf10fc324fc
2023-07-21T20:16:31.7870700Z deleted: sha256:81c6e5ef93fcc0f603ac62cb5b8fbda4575af20f5003d5da1d229b54d02d97c4
2023-07-21T20:16:31.7870928Z deleted: sha256:6a4ba61688a53c2bb86d9cc1359f3c9f6ee0e4b550358d4dc52e6ba096f6c3b9
2023-07-21T20:16:31.7871155Z deleted: sha256:8fdda38f2ccae25e38de6ccac9cc91de2ee9990275d0c13689ba09599a15703f
2023-07-21T20:16:31.7871378Z deleted: sha256:798635aaff594d4dca26a7d606ab7854ad99c8e6cd0b35a98aedbccce0d5849e
2023-07-21T20:16:31.7871601Z deleted: sha256:83c9e27bb29e7a06652c997147dd287ea2cc7e59bd1fd2af7a77b376b74b4e7a
2023-07-21T20:16:31.7871825Z deleted: sha256:7cd4d1040ad090090eeddbb89a38703a81b9455042bf016619821637c300d1a8
2023-07-21T20:16:31.7872051Z deleted: sha256:819cf82e721ee294390e9fb606c092dbc4e22df9a217dbac194b4aa459bd91c0
2023-07-21T20:16:31.7872280Z deleted: sha256:cf90d3440eb8324b02cabe0ccc0d51b67c5bc94474a26e64353ec4260837da00
2023-07-21T20:16:31.7872505Z deleted: sha256:0c23ed2428e1ef41fdb571789f6968dd47c95135311b1c8bf56462c98581694b
2023-07-21T20:16:31.7872688Z untagged: moby/buildkit:latest
2023-07-21T20:16:31.7872903Z untagged: moby/buildkit@sha256:e70e7a9bfaeafd2cb101b050ca78e1f73032473fc0aac5b10f35c5d26df1e2c6
2023-07-21T20:16:31.7873149Z deleted: sha256:869c7038a926857232869ac4637d79d7a0527823340c5431caeeec66a3ce7ec6
2023-07-21T20:16:31.7881306Z deleted: sha256:ec5171853e0b9294fcf1443ac18bf0a60652ebef0bf17b9889823121e181804d
2023-07-21T20:16:31.7881682Z deleted: sha256:a659db21cd3eb912b7cfb50645d8a2faedfe3701b5ea604a0927e0ea569c96c3
2023-07-21T20:16:31.7881904Z deleted: sha256:24d34f03896e9277fc99500af9ab2b07f06c22e96620417b74e265630ce6db63
2023-07-21T20:16:31.7882140Z deleted: sha256:78a822fe2a2d2c84f3de4a403188c45f623017d6a4521d23047c9fbb0801794c
2023-07-21T20:16:31.7882326Z untagged: node:14
2023-07-21T20:16:31.7882520Z untagged: node@sha256:a158d3b9b4e3fa813fa6c8c590b8f0a860e015ad4e59bbce5744d2f6fd8461aa
2023-07-21T20:16:31.7882758Z deleted: sha256:1d12470fa662a2a5cb50378dcdc8ea228c1735747db410bbefb8e2d9144b5452
2023-07-21T20:16:31.7882977Z deleted: sha256:d7f4fb376c48badb9879c97df87580480be3f4dcad2e2f33425792d164933fa3
2023-07-21T20:16:31.7883203Z deleted: sha256:71fe964a0bdce3b1795d90eb1f8a501dd719e8612faeb40783706c962339c75c
2023-07-21T20:16:31.7883433Z deleted: sha256:559303f34408584d79e77eab1ec15eb80d04d753a87a38c8da31542440c0a64a
2023-07-21T20:16:31.7883660Z deleted: sha256:483ca60b49ed28025355f381d9e2b759e67e66b9dfb266c66f57acf0cb47033e
2023-07-21T20:16:31.7884016Z deleted: sha256:f1edb12649962bbc5048b132c2201e98d474b9f99e6936d41633b43d6e7bd91d
2023-07-21T20:16:31.7884234Z deleted: sha256:9f9d995a1674f94b553c90e4eb3502db04a8220403f3add46486659752a3a108
2023-07-21T20:16:31.7884467Z deleted: sha256:a61e818f0b1f7522e3a27211026f564f1fd98ae2034229d1233623e92a6a7961
2023-07-21T20:16:31.7884699Z deleted: sha256:16c88c4e67dd8ed4c67c0e9c1dae7df697f4607eab4c3d2f12b1b18206a6a6e4
2023-07-21T20:16:31.7884924Z deleted: sha256:b2dba74777543b60e1a5be6da44e67659f51b8df1e96922205a5dde6b92dda3c
2023-07-21T20:16:31.7885113Z untagged: alpine:3.17
2023-07-21T20:16:31.7885301Z untagged: alpine@sha256:e95676db9e4a4f16f6cc01a8915368f82b018cc07aba951c1bd1db586c081388
2023-07-21T20:16:31.7885538Z deleted: sha256:1f73a9d63274924f077b22c7e5a894667cb6a7073638e7d5df3b43be14d1c9ab
2023-07-21T20:16:31.7885766Z deleted: sha256:3dab9f8bf2d28c8bd1047f3ac2d0c72f3570562f491e67ef8179dfdcc68bccff
2023-07-21T20:16:31.7886278Z 
2023-07-21T20:16:31.7886417Z Total reclaimed space: 4.551GB
2023-07-21T20:16:31.7887271Z 
2023-07-21T20:16:31.7887396Z real	0m4.578s
2023-07-21T20:16:31.7887529Z user	0m0.018s
2023-07-21T20:16:31.7887656Z sys	0m0.019s
2023-07-21T20:16:31.7887781Z + df -h
2023-07-21T20:16:31.7887919Z Filesystem      Size  Used Avail Use% Mounted on
2023-07-21T20:16:31.7888078Z /dev/root        84G   36G   49G  43% /
2023-07-21T20:16:31.7888235Z tmpfs           3.4G  172K  3.4G   1% /dev/shm
2023-07-21T20:16:31.7888386Z tmpfs           1.4G  1.1M  1.4G   1% /run
2023-07-21T20:16:31.7888529Z tmpfs           5.0M     0  5.0M   0% /run/lock
2023-07-21T20:16:31.7888686Z /dev/sdb15      105M  6.1M   99M   6% /boot/efi
2023-07-21T20:16:31.7888841Z /dev/sda1        14G  4.1G  9.0G  31% /mnt
2023-07-21T20:16:31.7888999Z tmpfs           694M   12K  694M   1% /run/user/1001
2023-07-21T20:16:31.7889069Z 
2023-07-21T20:16:31.7889189Z real	0m26.222s
2023-07-21T20:16:31.7889317Z user	0m5.902s
2023-07-21T20:16:31.7889439Z sys	0m4.430s
2023-07-21T20:16:31.7941835Z ##[section]Finishing: Clean up linux image

@bkpoon bkpoon marked this pull request as ready for review July 21, 2023 20:32
@isuruf
Copy link
Member

isuruf commented Jul 21, 2023

Before the last image update there was 30GB left and after the image update there's only 23 GB left.
With rsync 54.5GB left.

Can we only do the rsync part?
26s for an additional 5.5GB for all builds across conda-forge seems wasteful.

@jakirkham
Copy link
Member

Thanks Billy! 🙏

Appreciate your effort in exploring this issue

Yeah believe there were image updates. Though haven't looked to see if there was a blogpost, release notes, or something about these. Shaving off 10GB is pretty worthwhile in my book (especially given the amount of time spent is pretty low)

In terms of ignoring missing directories we could do || true. Though maybe it is ok to just drop directories that no longer exist in the images (maybe they were consolidated into /opt/hostedtoolcache?). Think we use the same image for all CI jobs (though would welcome corrections if I've missed something)

@jakirkham
Copy link
Member

cc @conda-forge/core (in case others have thoughts)

@beckermr
Copy link
Member

Thanks everyone!

@beckermr
Copy link
Member

@isuruf are you ok merging this?

@isuruf
Copy link
Member

isuruf commented Jul 22, 2023

@isuruf are you ok merging this?

Yes

Copy link
Member

@mbargull mbargull left a comment

Choose a reason for hiding this comment

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

  • Can we add some reference to the PR's OP?
    It's always good to have a (ideally very succinct) problem/motivation description with a (hyperlink) reference;
    À la Fixes disk space issues encountered at <links to feedstocks/builds>.

  • I think we should only do this for the directories that get deleted with high throughput (acc. to numbers from Clean up more disk space #1747 (comment) and Clean up more disk space #1747 (comment) ) i.e.,

    • /usr/local/lib/android
    • /usr/local/share/powershell
    • (/usr/lib/jvm and /usr/share/swift if need be)
  • Do we have elapsed time numbers for /opt/hostedtoolcache/CodeQL/ alone? Since that appears to be the largest of /opt/hostedtoolcache, it could make sense to only delete that one if it's faster to remove than all of its parent directory.

The limited disk space only affects a very small fraction of builds which is why it would create a lot of "unneeded busy work" for nearly all feedstocks. Hence we should be a bit more conservative w.r.t. the time taken here.

@mbargull
Copy link
Member

It'd also be good to get numbers for disk space freed and time needed (for each of the removed directories) for the final version of this PR.

@h-vetinari
Copy link
Member

I think the suggestion of having a switch to enable the deletion would be a win-win, rather than having to find a balance between some feedstocks that don't build at all, and wasting time for disk clean-up on every feedstock.

For affected feedstocks, it doesn't matter if it takes minutes to do the most extensive clean-up (if the alternative is a failing build), and with a switch we wouldn't pay that cost anywhere else.

@mbargull
Copy link
Member

@h-vetinari, I agree in principle and that was my first thought too. It is a matter of finding a pragmatic balance.
If we can get away with supporting those rare cases with no real impact otherwise (e.g., by removing 13G in 0.05s from /opt/android) and don't have to add more code (=maintenance) for making it optional, I'd be even more content :).

(That being said, if some builds are so wildly inefficient that they still need "moar", we might at some point need such an option... or fix the builds (upstream)... 🤷)

@beckermr
Copy link
Member

Guys, we're bike shedding this one a bit. Let's add a switch to turn this on or off and then move on. We can revisit later if we want to do something more detailed.

@mbargull
Copy link
Member

Guys, we're bike shedding this one a bit.

My intention was to avoid much bike shedding by going with a "simple and non-negative impacting but sufficient" route.

Let's add a switch to turn this on or off and then move on.

If you/others (since, to be frank, I won't be the one documenting/maintaining it) are okay with that, fine by me, of course!

@beckermr beckermr merged commit 60c0f92 into conda-forge:main Jul 22, 2023
@hmaarrfk
Copy link
Contributor

thanks all! excited to see if this helps avoid some disk full issues we saw on qt!

@jakirkham
Copy link
Member

Thanks all! 🙏

For clarity the rsync deletion step takes 10s

There's also a bunch of logs above that Billy generated if you're interested in more details

That said, adding a switch makes sense

@bkpoon bkpoon mentioned this pull request Jul 22, 2023
1 task
@bkpoon
Copy link
Member Author

bkpoon commented Jul 22, 2023

Thanks everyone! Feel free to ping me if you want to expand on the amount of directories to be deleted and want testing done.

I also just created #1748 to change aptitude to apt-get. In my testing with the ubuntu-22.04 image, aptitude was not available by default (5ccc101).

@bkpoon
Copy link
Member Author

bkpoon commented Jul 22, 2023

I can also make a PR to update the documentation. Is the switch a new field in the azure section of conda-forge.yml? I can add a few lines about free_disk_space in https://github.com/conda-forge/conda-forge.github.io/blob/main/src/maintainer/conda_forge_yml.rst#azure?

@beckermr
Copy link
Member

Yes! A doc pr would be excellent! Thank you!

@jakirkham
Copy link
Member

Docs added in PR ( conda-forge/conda-forge.github.io#1986 )

@jakirkham jakirkham mentioned this pull request Jul 29, 2023
1 task
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.

8 participants