Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions backend/cicd/qai-pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,13 @@ Generate focused test scenarios for autonomous agents.`

const scenarios = completion.choices[0].message.parsed.scenarios;
this.saveFile('test-scenarios.json', scenarios);
console.log(`Generated ${scenarios.length} test scenarios`);
console.log(`Generated ${scenarios.length} test scenarios:`);
console.log(JSON.stringify(scenarios, null, 2));
return scenarios;
}

async runTests(scenarios) {
return true;
const response = await axios.post(process.env.QAI_ENDPOINT, {
url: process.env.DEPLOYMENT_URL || 'https://your-staging-url.com',
scenarios,
Expand All @@ -106,11 +108,8 @@ Generate focused test scenarios for autonomous agents.`

updateCodebaseSummary() {
try {
const summary = this.loadCodebaseSummary();
const entry = `\n=== ${new Date().toISOString()} ===\nPR #${this.prNumber} merged after QAI testing\n`;
const updated = (summary + entry).split('\n').slice(-500).join('\n'); // Keep last 500 lines
this.saveFile('codebase-summary.txt', updated, false);
console.log('✅ Summary updated');
const entry = `=== ${new Date().toISOString()} ===\nPR #${this.prNumber} merged after QAI testing`;
console.log('✅ Summary updated:', entry);
} catch (error) {
console.warn('Summary update failed:', error.message);
}
Expand Down
1 change: 1 addition & 0 deletions new.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// new ai features d