Skip to content

Commit

Permalink
github-ci: remove unecessary dirs, change space config
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Gaikwad <[email protected]>
  • Loading branch information
gaikwadabhishek committed Aug 30, 2024
1 parent 3f3e502 commit f336923
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/test-python-authn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Remove unnecessary directories to free up space
run: |
sudo rm -rf /usr/local/.ghcup
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /usr/local/lib/android/sdk/ndk
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
- name: Setup additional system libraries
if: startsWith(matrix.os, 'ubuntu')
run: |
Expand All @@ -38,7 +47,7 @@ jobs:
AIS_AUTHN_URL: "http://localhost:52001"
run: |
export GOPATH="$(go env GOPATH)"
scripts/clean_deploy.sh --target-cnt 3 --proxy-cnt 1 --mountpath-cnt 3
AIS_SPACE_LOWWM=90 AIS_SPACE_HIGHWM=96 AIS_SPACE_OOS=99 scripts/clean_deploy.sh --target-cnt 3 --proxy-cnt 1 --mountpath-cnt 3
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,19 @@ jobs:
sudo apt update
sudo apt install -y xattr attr
- name: Remove unnecessary directories to free up space
run: |
sudo rm -rf /usr/local/.ghcup
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /usr/local/lib/android/sdk/ndk
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
- name: Run AIStore
run: |
export GOPATH="$(go env GOPATH)"
scripts/clean_deploy.sh --target-cnt 1 --proxy-cnt 1 --mountpath-cnt 1
AIS_SPACE_LOWWM=90 AIS_SPACE_HIGHWM=96 AIS_SPACE_OOS=99 scripts/clean_deploy.sh --target-cnt 1 --proxy-cnt 1 --mountpath-cnt 1
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down
6 changes: 3 additions & 3 deletions deploy/dev/local/aisnode_config.fspaths.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ cat > $AIS_CONF_FILE <<EOL
},
"space": {
"cleanupwm": 65,
"lowwm": 75,
"highwm": 90,
"out_of_space": 95
"lowwm": ${AIS_SPACE_LOWWM:-75},
"highwm": ${AIS_SPACE_HIGHWM:-90},
"out_of_space": ${AIS_SPACE_OOS:-95}
},
"lru": {
"dont_evict_time": "120m",
Expand Down
6 changes: 3 additions & 3 deletions deploy/dev/local/aisnode_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ cat > $AIS_CONF_FILE <<EOL
},
"space": {
"cleanupwm": 65,
"lowwm": 75,
"highwm": 90,
"out_of_space": 95
"lowwm": ${AIS_SPACE_LOWWM:-75},
"highwm": ${AIS_SPACE_HIGHWM:-90},
"out_of_space": ${AIS_SPACE_OOS:-95}
},
"lru": {
"dont_evict_time": "120m",
Expand Down

0 comments on commit f336923

Please sign in to comment.