Skip to content

Commit 528e008

Browse files
committed
fix(ci): add explicit process.exit(0) to prevent hanging test suites
1 parent 9c628e5 commit 528e008

4 files changed

Lines changed: 49 additions & 1 deletion

File tree

‎scripts/live_probe.js‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
async function probeUrl(url) {
2+
try {
3+
const res = await fetch(url, { method: "HEAD", redirect: "follow" });
4+
console.log(`[PROBE] ${res.status} ${res.statusText} -> ${url}`);
5+
return { url, status: res.status };
6+
} catch (err) {
7+
console.error(`[PROBE ERROR] ${url}: ${err.message}`);
8+
return { url, status: 0, error: err.message };
9+
}
10+
}
11+
12+
async function runLiveProbes() {
13+
console.log("=== LIVE PRODUCTION MULTI-TARGET VERIFICATION ===");
14+
const targets = [
15+
"https://techscript.is-a.dev/Vortyx/",
16+
"https://techscript.is-a.dev/Vortyx/manifest.webmanifest",
17+
"https://techscript.is-a.dev/Vortyx/icon.png",
18+
"https://techscript.is-a.dev/Vortyx/screenshots/home.png",
19+
"https://techscript.is-a.dev/Vortyx/screenshots/downloads.png",
20+
"https://techscript.is-a.dev/Vortyx/screenshots/satings.png",
21+
"https://techscript.is-a.dev/Vortyx/screenshots/galary.png",
22+
"https://techscript.is-a.dev/Vortyx/screenshots/statussaver.png",
23+
"https://techscript.is-a.dev/Vortyx/faq/",
24+
"https://techscript.is-a.dev/Vortyx/download/",
25+
"https://techscript.is-a.dev/Vortyx/providers/",
26+
"https://techscript.is-a.dev/Vortyx/diagnostics/",
27+
"https://techscript.is-a.dev/Vortyx/features/",
28+
"https://techscript.is-a.dev/Vortyx/screenshots/",
29+
"https://techscript.is-a.dev/Vortyx/sitemap.xml",
30+
"https://techscript.is-a.dev/Vortyx/robots.txt",
31+
"https://vortyx-app.web.app/",
32+
"https://mediapick-4f48c.web.app/"
33+
];
34+
35+
for (const t of targets) {
36+
await probeUrl(t);
37+
}
38+
}
39+
40+
runLiveProbes();

‎tests/extension_api_test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ async function runExtensionApiTests() {
8585
console.log(` EXTENSION API AUDIT SUMMARY: ${passed} PASSED, ${failed} FAILED`);
8686
console.log("================================================================================\n");
8787

88-
if (failed > 0) process.exit(1);
88+
if (failed > 0) {
89+
process.exit(1);
90+
} else {
91+
process.exit(0);
92+
}
8993
}
9094

9195
runExtensionApiTests().catch((e) => {

‎tests/production_smoke_test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ async function runProductionSmokeTest() {
132132

133133
if (failed > 0) {
134134
process.exit(1);
135+
} else {
136+
process.exit(0);
135137
}
136138
}
137139

‎tests/seo_audit_test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ async function runSeoAudit() {
118118

119119
if (failed > 0) {
120120
process.exit(1);
121+
} else {
122+
process.exit(0);
121123
}
122124
}
123125

0 commit comments

Comments
 (0)