You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhances robustness of module cloning to prevent pipeline failures when
individual repositories cannot be cloned.
**Key changes:**
- Add try-finally block to ensure output files are always written
- Implement consecutive error detection (warns after 10 failures)
- Enhance error logging with module position, stack traces, and context
- Make stage 3 validation non-blocking
- Store detailed error info in skipped_modules.json
**Impact:**
Prevents "ENOENT: no such file or directory" errors causing workflow
failures. Pipeline continues even when some modules fail to clone.
Fixes frequent container-build workflow failures.
? "The repository URL returns a 301 status code, indicating it has been moved. Please verify the new location and update the module list if necessary."
547
-
: `The repository URL returned a ${statusCode} redirect during validation. Please confirm the final destination and update the module list if necessary.`
? "The repository URL returns a 301 status code, indicating it has been moved. Please verify the new location and update the module list if necessary."
577
+
: `The repository URL returned a ${statusCode} redirect during validation. Please confirm the final destination and update the module list if necessary.`
578
+
);
579
+
}
550
580
551
-
if(usedFallback){
552
-
ensureIssueArray(moduleCopy);
553
-
moduleCopy.issues?.push(
554
-
"HEAD requests to this repository failed but a subsequent GET request succeeded. Please verify the repository URL and server configuration."
581
+
if(usedFallback){
582
+
ensureIssueArray(moduleCopy);
583
+
moduleCopy.issues?.push(
584
+
"HEAD requests to this repository failed but a subsequent GET request succeeded. Please verify the repository URL and server configuration."
585
+
);
586
+
}
587
+
588
+
moduleCounter+=1;
589
+
logger.info(
590
+
`+++ ${moduleCounter.toString().padStart(4," ")}: ${module.name} by ${owner} - ${module.url}`
555
591
);
556
-
}
557
592
558
-
moduleCounter+=1;
559
-
logger.info(
560
-
`+++ ${moduleCounter.toString().padStart(4," ")}: ${module.name} by ${owner} - ${module.url}`
0 commit comments