Skip to content

Commit

Permalink
Optimize tester script (#259)
Browse files Browse the repository at this point in the history
* Optimize service tester script

* Further debug outputs
  • Loading branch information
marcauberer committed Dec 16, 2021
1 parent e5e3ba8 commit 18fa358
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
13 changes: 12 additions & 1 deletion .github/scripts/service-tester/predefined-service-tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,18 @@ def test_combination(comb):

def reset_environment():
"""Deletes all Docker related stuff. Should be executed after each test"""
system("docker system prune -af > /dev/null")
print("Pruning containers ...", end='')
system("docker container prune -f > /dev/null")
print(" done")

print("Pruning networks ...", end='')
system("docker network prune -f > /dev/null")
print(" done")

print("Pruning build cache ...", end='')
system("docker builder prune -af > /dev/null")
print(" done")

system(f"sudo rm -rf {BIN_PATH}/*")


Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.17.x

- name: Cache Go modules
uses: actions/cache@v2
Expand Down Expand Up @@ -140,10 +140,12 @@ jobs:
matrix:
config:
- {
arch: amd64, label: x64
arch: amd64,
label: x64
}
- {
arch: 386, label: x86
arch: 386,
label: x86
}
steps:
- name: Checkout
Expand Down

0 comments on commit 18fa358

Please sign in to comment.