9999 sleep 1;
100100 done
101101
102+ - name : Create artifacts directory
103+ run : mkdir artifacts
104+
105+ # ####
106+ # Test without local disk cache
107+ # ####
108+
102109 - name : Run active storage container
103110 run : make run
104111
@@ -108,16 +115,45 @@ jobs:
108115 sleep 1;
109116 done
110117
111- - name : Create artifacts directory
112- run : mkdir artifacts
113-
114118 - name : Run compliance test suite
115119 run : pytest -s > artifacts/pytest.log
116120
117121 - name : Get active storage logs
118122 run : docker logs reductionist > artifacts/reductionist.log
119123 if : always()
120124
125+ - name : Stop active storage container
126+ run : make stop
127+ if : always()
128+
129+ # ####
130+ # Test with local disk cache
131+ # ####
132+
133+ - name : Run active storage container with local disk cache
134+ run : make run-with-cache
135+
136+ - name : Wait for active storage server to start
137+ run : |
138+ until curl -if http://localhost:8080/.well-known/reductionist-schema; do
139+ sleep 1;
140+ done
141+
142+ - name : Run compliance test suite
143+ run : pytest -s > artifacts/pytest-with-cache.log
144+
145+ - name : Get active storage logs
146+ run : docker logs reductionist > artifacts/reductionist-with-cache.log
147+ if : always()
148+
149+ - name : Stop active storage container
150+ run : make stop
151+ if : always()
152+
153+ # ####
154+ # Clean up steps
155+ # ####
156+
121157 - name : Upload artifacts
122158 uses : actions/upload-artifact@v4
123159 with :
@@ -129,9 +165,6 @@ jobs:
129165 run : scripts/minio-stop
130166 if : always()
131167
132- - name : Stop active storage container
133- run : make stop
134- if : always()
135168 deployment-test :
136169 runs-on : ubuntu-latest
137170 steps :
@@ -183,6 +216,7 @@ jobs:
183216 sudo ip a
184217 sudo ip r
185218 if : failure()
219+
186220 dependency-review :
187221 runs-on : ubuntu-latest
188222 if : github.event_name == 'pull_request'
0 commit comments