@@ -232,6 +232,27 @@ jobs:
232232 path : scripts/tmp/build/
233233 retention-days : 3
234234
235+ - name : Check zephyr deployment cache
236+ if : always()
237+ run : |
238+ echo "Checking zephyr cache directory..."
239+ echo "HOME is: $HOME"
240+ if [ -d $HOME/.zephyr ]; then
241+ echo "$HOME/.zephyr exists"
242+ echo "Files in cache: $(ls -1 $HOME/.zephyr | wc -l)"
243+ ls -lah $HOME/.zephyr | head -20
244+ else
245+ echo "$HOME/.zephyr does not exist!"
246+ fi
247+
248+ - name : Upload zephyr deployment cache
249+ uses : actions/upload-artifact@v4
250+ if : always()
251+ with :
252+ name : zephyr-cache-${{ matrix.workspace }}
253+ path : /home/runner/.zephyr/
254+ retention-days : 1
255+
235256 test-deployments :
236257 name : Test All Deployments
237258 needs : [build-workspace]
@@ -242,6 +263,33 @@ jobs:
242263 with :
243264 name : workspace-files
244265
266+ - name : Download zephyr deployment caches
267+ uses : actions/download-artifact@v4
268+ with :
269+ pattern : zephyr-cache-*
270+ path : zephyr-caches
271+ merge-multiple : false
272+
273+ - name : Restore zephyr cache
274+ run : |
275+ mkdir -p $HOME/.zephyr
276+ echo "Downloaded cache directories:"
277+ ls -lah zephyr-caches/ || echo "No zephyr-caches directory"
278+
279+ if [ -d "zephyr-caches" ]; then
280+ for cache_dir in zephyr-caches/zephyr-cache-*/; do
281+ if [ -d "$cache_dir" ]; then
282+ echo "Merging cache from $cache_dir"
283+ echo "Files in $cache_dir: $(ls -1 "$cache_dir" 2>/dev/null | wc -l)"
284+ cp -r "$cache_dir"* $HOME/.zephyr/ 2>/dev/null || true
285+ fi
286+ done
287+ fi
288+
289+ echo "Final $HOME/.zephyr contents:"
290+ ls -lah $HOME/.zephyr/ || echo "$HOME/.zephyr is empty or doesn't exist"
291+ echo "Total files in zephyr cache: $(ls -1 $HOME/.zephyr/ 2>/dev/null | wc -l)"
292+
245293 - uses : pnpm/action-setup@v4
246294 with :
247295 version : 10.6.3
@@ -256,6 +304,23 @@ jobs:
256304 cd scripts
257305 pnpm install --prefer-offline
258306
307+ - name : Debug deployment results
308+ run : |
309+ cd scripts
310+ node -e "
311+ const { getAllAppDeployResults } = require('zephyr-agent');
312+ getAllAppDeployResults().then(results => {
313+ console.log('Deployment results:', JSON.stringify(results, null, 2));
314+ console.log('Number of apps:', Object.keys(results).length);
315+ }).catch(err => {
316+ console.error('Error getting deployment results:', err.message);
317+ });
318+ "
319+ env :
320+ ZE_SECRET_TOKEN : ${{ env.ZE_SECRET_TOKEN }}
321+ ZE_API_GATE : ${{ env.ZE_API_GATE }}
322+ ZE_API : ${{ env.ZE_API }}
323+
259324 - name : Wait for deployments to be ready
260325 run : |
261326 echo "Waiting 60 seconds for all deployments to propagate..."
0 commit comments