فهرست منبع

Merge pull request #81337 from RedworkDE/ci-compat-fetch

CI: Compat checks: Make fetching the reference API more robust
Yuri Sizov 2 سال پیش
والد
کامیت
4ac6b648b4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      misc/scripts/validate_extension_api.sh

+ 1 - 1
misc/scripts/validate_extension_api.sh

@@ -58,7 +58,7 @@ while read -r file; do
     get_expected_output "$file"
     get_expected_output "$file"
 
 
     # Download the reference extension_api.json
     # Download the reference extension_api.json
-    wget -qcO "$reference_file" "https://raw.githubusercontent.com/godotengine/godot-cpp/godot-$reference_tag/gdextension/extension_api.json"
+    wget -nv --retry-on-http-error=503 --tries=5 --timeout=60 -cO "$reference_file" "https://raw.githubusercontent.com/godotengine/godot-cpp/godot-$reference_tag/gdextension/extension_api.json" || has_problems=1
     # Validate the current API against the reference
     # Validate the current API against the reference
     "$1" --headless --validate-extension-api "$reference_file" 2>&1 | tee "$validate" | awk '!/^Validate extension JSON:/' - || true
     "$1" --headless --validate-extension-api "$reference_file" 2>&1 | tee "$validate" | awk '!/^Validate extension JSON:/' - || true
     # Collect the expected and actual validation errors
     # Collect the expected and actual validation errors