@@ -497,95 +497,17 @@ jobs:
497497 if [ -d "/tmp/.temp_integration" ]; then
498498 echo "Contents of /tmp/.temp_integration:"
499499 ls -la /tmp/.temp_integration/
500+ echo "Contents of all directories inside /tmp/.temp_integration:"
501+ for dir in /tmp/.temp_integration/*/; do
502+ if [ -d "$dir" ]; then
503+ echo "Directory: $dir"
504+ ls -la "$dir"
505+ fi
506+ done
500507 else
501508 echo "Directory /tmp/.temp_integration does not exist"
502509 fi
503510
504- - name : Print integration logs
505- if : ${{ cancelled() || failure() }}
506- continue-on-error : true
507- run : |
508- if [ ! -d "/tmp/.temp_integration" ]; then
509- echo "No temp integration directory found"
510- exit 0
511- fi
512-
513- cd /tmp/.temp_integration
514-
515- echo "=========================================="
516- echo "state.json"
517- echo "=========================================="
518- cat state.json 2>/dev/null || echo "not found"
519- echo ""
520-
521- if [ ! -f "state.json" ]; then
522- exit 0
523- fi
524-
525- echo "=========================================="
526- echo "App Logs from Long Running Apps"
527- echo "=========================================="
528-
529- # Extract app directories from state.json using jq
530- app_dirs=$(cat state.json | jq -r '.longRunningApps | to_entries[] | .value.appDir' 2>/dev/null)
531-
532- if [ -z "$app_dirs" ]; then
533- echo "No app directories found in state.json"
534- exit 0
535- fi
536-
537- # For each app directory, print all log files
538- echo "$app_dirs" | while read -r app_dir; do
539- if [ -z "$app_dir" ] || [ ! -d "$app_dir" ]; then
540- continue
541- fi
542-
543- echo ""
544- echo "=========================================="
545- echo "App: $app_dir"
546- echo "=========================================="
547-
548- # Find and print all log files in the app directory
549- find "$app_dir" -name "*.log" -type f 2>/dev/null | while read -r log_file; do
550- echo ""
551- echo "--- $(basename $log_file) ---"
552- cat "$log_file"
553- done
554-
555- # Find and print all @clerk package.json files in node_modules (recursively)
556- echo ""
557- echo "=========================================="
558- echo "@clerk packages in node_modules (all)"
559- echo "=========================================="
560-
561- if [ -d "$app_dir/node_modules" ]; then
562- # Find all @clerk packages recursively in node_modules
563- clerk_packages=$(find "$app_dir/node_modules" -type d -path "*/node_modules/@clerk/*" -maxdepth 10 2>/dev/null | sort -u)
564-
565- if [ -n "$clerk_packages" ]; then
566- echo "Found @clerk packages:"
567- echo "$clerk_packages" | while read -r pkg_path; do
568- echo " - $pkg_path"
569- done
570- echo ""
571-
572- # Print each package.json
573- echo "$clerk_packages" | while read -r pkg_path; do
574- if [ -f "$pkg_path/package.json" ]; then
575- rel_path=$(echo "$pkg_path" | sed "s|$app_dir/||")
576- echo ""
577- echo "--- $rel_path/package.json ---"
578- cat "$pkg_path/package.json"
579- fi
580- done
581- else
582- echo "No @clerk packages found in node_modules"
583- fi
584- else
585- echo "No node_modules directory found at: $app_dir/node_modules"
586- fi
587- done
588-
589511 - name : Upload test-results
590512 if : ${{ cancelled() || failure() }}
591513 uses : actions/upload-artifact@v4
0 commit comments