Files
wehub-resource-sync 7a0da7932b
OSV-Scanner (Scheduled) / scan-scheduled (push) Failing after 0s
Create Release / test-gate (push) Has been cancelled
Create Release / release-gate (push) Has been cancelled
Create Release / ci-gate (push) Has been cancelled
Create Release / version-check (push) Has been cancelled
Create Release / e2e-test-gate (push) Has been cancelled
Create Release / responsive-test-gate (push) Has been cancelled
Create Release / compat-test-gate (push) Has been cancelled
Create Release / compose-integration-gate (push) Has been cancelled
Create Release / vulture-gate (push) Has been cancelled
Create Release / build (push) Has been cancelled
Create Release / provenance (push) Has been cancelled
Create Release / prerelease-docker (push) Has been cancelled
Create Release / publish-docker (push) Has been cancelled
Create Release / create-release (push) Has been cancelled
Create Release / cleanup-changelog (push) Has been cancelled
Create Release / trigger-pypi (push) Has been cancelled
Create Release / monitor-pypi (push) Has been cancelled
Create Release / Clean up orphan prerelease tags and signatures (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [research-form] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [research-metrics] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [research-workflow] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [settings-core] (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [history-news] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [library] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [link-analytics] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [chat-core] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [chat-lifecycle] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [error-benchmark] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [settings-pages] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) (push) Has been cancelled
Docker Tests (Consolidated) / Accessibility Tests (push) Has been cancelled
Docker Tests (Consolidated) / LLM Unit Tests (push) Has been cancelled
Docker Tests (Consolidated) / LLM Example Tests (push) Has been cancelled
Docker Tests (Consolidated) / Production Image Smoke Test (push) Has been cancelled
Docker Tests (Consolidated) / Infrastructure Tests (push) Has been cancelled
OSSF Scorecard / OSSF Security Scorecard Analysis (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [mobile] (push) Has been cancelled
Backwards Compatibility / Verify Encryption Constants (push) Has been cancelled
Backwards Compatibility / PyPI Version Compatibility (push) Has been cancelled
Backwards Compatibility / Database Migration Tests (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Docker Tests (Consolidated) / detect-changes (push) Has been cancelled
Docker Tests (Consolidated) / Build Test Image (push) Has been cancelled
Docker Tests (Consolidated) / All Pytest Tests + Coverage (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [accessibility] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [api-crud] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [auth-login] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [auth-pages] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [auth-register] (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:08:55 +08:00

129 lines
3.6 KiB
JavaScript

const { spawn } = require('child_process');
const path = require('path');
const fs = require('fs');
// Tests to check
const testsToCheck = [
'test_metrics_display.js',
'test_simple_metrics.js',
'test_research_form.js',
'test_full_navigation.js',
'test_complete_workflow.js',
'test_export_functionality.js',
'test_cost_analytics.js',
'test_benchmark_settings.js'
];
async function checkTest(testFile) {
return new Promise((resolve) => {
const testPath = path.join(__dirname, testFile);
if (!fs.existsSync(testPath)) {
resolve({ name: testFile, status: 'NOT_FOUND' });
return;
}
const testProcess = spawn('node', [testPath], {
cwd: __dirname,
env: { ...process.env, NODE_ENV: 'test' }
});
let hasError = false;
let errorMsg = '';
testProcess.stdout.on('data', () => {
// Just consume output
});
testProcess.stderr.on('data', (data) => {
hasError = true;
errorMsg = data.toString().substring(0, 100);
});
const timeout = setTimeout(() => {
testProcess.kill();
resolve({ name: testFile, status: 'TIMEOUT' });
}, 45000); // 45 second timeout
testProcess.on('close', (code) => {
clearTimeout(timeout);
if (code === 0) {
resolve({ name: testFile, status: 'PASS' });
} else {
resolve({
name: testFile,
status: 'FAIL',
code,
error: errorMsg
});
}
});
testProcess.on('error', (err) => {
clearTimeout(timeout);
resolve({ name: testFile, status: 'ERROR', error: err.message });
});
});
}
async function main() {
console.log('🔍 Checking test status...\n');
const results = {
pass: [],
fail: [],
timeout: [],
notFound: [],
error: []
};
for (const test of testsToCheck) {
process.stdout.write(`Checking ${test}...`);
const result = await checkTest(test);
switch(result.status) {
case 'PASS':
console.log(' ✅ PASS');
results.pass.push(test);
break;
case 'FAIL':
console.log(` ❌ FAIL (code ${result.code})`);
results.fail.push(test);
break;
case 'TIMEOUT':
console.log(' ⏱️ TIMEOUT');
results.timeout.push(test);
break;
case 'NOT_FOUND':
console.log(' ❓ NOT FOUND');
results.notFound.push(test);
break;
case 'ERROR':
console.log(' 💥 ERROR');
results.error.push(test);
break;
default:
console.log(` ❔ UNKNOWN (${result.status})`);
break;
}
}
console.log('\n📊 Summary:');
console.log(`✅ Passed: ${results.pass.length}`);
console.log(`❌ Failed: ${results.fail.length}`);
console.log(`⏱️ Timeout: ${results.timeout.length}`);
console.log(`❓ Not Found: ${results.notFound.length}`);
console.log(`💥 Error: ${results.error.length}`);
if (results.pass.length > 0) {
console.log('\n✅ Passing tests:');
results.pass.forEach(t => console.log(` - ${t}`));
}
if (results.fail.length > 0) {
console.log('\n❌ Failing tests:');
results.fail.forEach(t => console.log(` - ${t}`));
}
}
main().catch(console.error);