Compare commits

..

3 Commits

Author SHA1 Message Date
0b8d2eb18b [P] Add container rebuilding on every rerun
All checks were successful
Component testing / Hub testing (push) Successful in 18s
Component testing / Store testing (push) Successful in 22s
Component testing / Integration smoke testing (push) Successful in 2m33s
2026-03-23 18:31:43 +02:00
2846130e4e [P] Add docker reset workflow
All checks were successful
Component testing / Hub testing (push) Successful in 20s
Component testing / Store testing (push) Successful in 21s
Component testing / Integration smoke testing (push) Successful in 1m34s
2026-03-23 18:26:38 +02:00
30af132033 [P] Add general smoke test and Store incremental test
All checks were successful
Component testing / Hub testing (push) Successful in 22s
Component testing / Store testing (push) Successful in 19s
Component testing / Integration smoke testing (push) Successful in 1m28s
2026-03-23 18:01:41 +02:00
3 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
name: Reset docker state
on: workflow_dispatch
jobs:
reset:
runs-on: host-arch-x86_64
name: Reset docker state
steps:
- name: Stop all containers
run: docker stop $(docker ps -a | cut -d " " -f 1 | tail -n +2)
- name: Remove all containers
run: docker rm $(docker ps -a | cut -d " " -f 1 | tail -n +2)
- name: Remove extra volumes
run: docker volume rm road_vision_postgres_data road_vision_pgadmin-data

View File

@@ -67,4 +67,5 @@ jobs:
- name: Clean up - name: Clean up
if: ${{always()}} if: ${{always()}}
working-directory: IoT-Systems
run: docker-compose down -v run: docker-compose down -v

View File

@@ -1,5 +1,7 @@
import sys import sys
print("Checking for dead containers...")
l = [i for i in sys.stdin.read().split("\n") if i] l = [i for i in sys.stdin.read().split("\n") if i]
header, statuses = l[0], l[1:] header, statuses = l[0], l[1:]
@@ -14,4 +16,4 @@ for i in statuses:
print(f"Crash detected in {service_name}") print(f"Crash detected in {service_name}")
exit_code = 1 exit_code = 1
sys.exit(1) sys.exit(exit_code)