fix(ci): resolve eslint type errors in qa smoke test scripts
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 3s
Build & Deploy / 🧪 QA (push) Successful in 2m1s
Build & Deploy / 🏗️ Build (push) Successful in 2m38s
Build & Deploy / 🚀 Deploy (push) Successful in 12s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 3m23s
Build & Deploy / 🔔 Notify (push) Successful in 1s

This commit is contained in:
2026-02-27 21:09:07 +01:00
parent b7438f2718
commit 1559037029
3 changed files with 15 additions and 8 deletions

View File

@@ -37,7 +37,8 @@ async function checkUmami() {
console.log(` ✅ Umami Analytics is reachable (HTTP ${response.status})`); console.log(` ✅ Umami Analytics is reachable (HTTP ${response.status})`);
return true; return true;
} catch (err: any) { } catch (error) {
const err = error as Error;
// If /api/health fails completely, maybe try a DNS check as a fallback // If /api/health fails completely, maybe try a DNS check as a fallback
try { try {
console.warn( console.warn(
@@ -49,7 +50,8 @@ async function checkUmami() {
` ✅ Umami Analytics DNS resolved successfully (${umamiHost})`, ` ✅ Umami Analytics DNS resolved successfully (${umamiHost})`,
); );
return true; return true;
} catch (dnsErr: any) { } catch (error) {
const dnsErr = error as Error;
console.error( console.error(
` ❌ CRITICAL: Umami Analytics is completely unreachable! ${err.message} | DNS: ${dnsErr.message}`, ` ❌ CRITICAL: Umami Analytics is completely unreachable! ${err.message} | DNS: ${dnsErr.message}`,
); );
@@ -85,7 +87,7 @@ async function checkSentry() {
validateStatus: () => true, validateStatus: () => true,
}); });
console.log(` ✅ Glitchtip/Sentry API root responds to HTTP.`); console.log(` ✅ Glitchtip/Sentry API root responds to HTTP.`);
} catch (ignore) { } catch {
console.log( console.log(
` ⚠️ Glitchtip/Sentry HTTP ping failed or timed out, but DNS is valid. Proceeding.`, ` ⚠️ Glitchtip/Sentry HTTP ping failed or timed out, but DNS is valid. Proceeding.`,
); );
@@ -94,7 +96,8 @@ async function checkSentry() {
return true; return true;
} }
throw new Error("No IP addresses found for DSN host"); throw new Error("No IP addresses found for DSN host");
} catch (err: any) { } catch (error) {
const err = error as Error;
console.error( console.error(
` ❌ CRITICAL: Glitchtip/Sentry DSN is invalid or hostname is unresolvable! ${err.message}`, ` ❌ CRITICAL: Glitchtip/Sentry DSN is invalid or hostname is unresolvable! ${err.message}`,
); );

View File

@@ -57,7 +57,8 @@ async function main() {
} else { } else {
console.log(`✅ OK ${res.status} -> ${u}`); console.log(`✅ OK ${res.status} -> ${u}`);
} }
} catch (err: any) { } catch (error) {
const err = error as Error;
console.error(`❌ NETWORK ERROR: ${err.message} -> ${u}`); console.error(`❌ NETWORK ERROR: ${err.message} -> ${u}`);
hasErrors = true; hasErrors = true;
} }
@@ -74,7 +75,8 @@ async function main() {
); );
process.exit(0); process.exit(0);
} }
} catch (error: any) { } catch (e) {
const error = e as Error;
console.error(`\n❌ Critical Error during Sitemap Fetch:`, error.message); console.error(`\n❌ Critical Error during Sitemap Fetch:`, error.message);
process.exit(1); process.exit(1);
} }

View File

@@ -146,7 +146,8 @@ async function main() {
); );
pageOk = false; pageOk = false;
} }
} catch (err: any) { } catch (error) {
const err = error as Error;
console.error( console.error(
`❌ NETWORK ERROR: ${path}${alt.href}: ${err.message}`, `❌ NETWORK ERROR: ${path}${alt.href}: ${err.message}`,
); );
@@ -166,7 +167,8 @@ async function main() {
} else { } else {
totalFailed++; totalFailed++;
} }
} catch (err: any) { } catch (error) {
const err = error as Error;
console.error(`❌ NETWORK ERROR fetching ${url}: ${err.message}`); console.error(`❌ NETWORK ERROR fetching ${url}: ${err.message}`);
totalFailed++; totalFailed++;
} }