@@ -164,15 +164,8 @@ class CICDFullCycleManager {
164164 * Wait for pipeline completion and apply auto-fixes if needed
165165 */
166166 async monitorAndFixPipeline ( ) {
167- const isTestMode = process . argv . includes ( '--test' ) || process . argv . includes ( '--quick' ) ;
168-
169167 this . log ( '🔍 Monitoring pipeline and applying auto-fixes if needed...' ) ;
170168
171- if ( isTestMode ) {
172- this . log ( '🧪 TEST MODE: Skipping long pipeline wait - checking status once' ) ;
173- return { success : true , status : 'test_mode_skip' } ;
174- }
175-
176169 // Wait a bit for the pipeline to start
177170 await this . sleep ( 5000 ) ;
178171
@@ -262,9 +255,6 @@ class CICDFullCycleManager {
262255 const startTime = new Date ( ) ;
263256 this . log ( '🚀 Starting StrRay CI/CD Full Cycle Manager' ) ;
264257
265- // Check for test mode (quick completion for development)
266- const isTestMode = process . argv . includes ( '--test' ) || process . argv . includes ( '--quick' ) ;
267-
268258 try {
269259 // Step 1: Check for changes
270260 if ( ! this . hasChanges ( ) ) {
@@ -300,16 +290,7 @@ class CICDFullCycleManager {
300290 }
301291
302292 // Step 6: Monitor and auto-fix
303- let result ;
304- if ( isTestMode ) {
305- this . log ( '🧪 TEST MODE: Simulating pipeline monitoring (quick completion)' ) ;
306- // In test mode, just check pipeline status once and return success
307- const status = await this . monitorAndFixPipeline ( ) ;
308- result = { success : true , status : 'test_mode_completed' } ;
309- this . log ( '✅ Test mode completed successfully' ) ;
310- } else {
311- result = await this . monitorAndFixPipeline ( ) ;
312- }
293+ const result = await this . monitorAndFixPipeline ( ) ;
313294
314295 const endTime = new Date ( ) ;
315296 const duration = Math . round ( ( endTime - startTime ) / 1000 ) ;
@@ -357,26 +338,30 @@ class CICDFullCycleManager {
357338// CLI interface
358339if ( require . main === module ) {
359340 const args = process . argv . slice ( 2 ) ;
360- const hasTestFlag = args . includes ( '--test' ) || args . includes ( '--quick' ) ;
361341 const commitMessage = args . find ( arg => ! arg . startsWith ( '--' ) ) ; // First non-flag argument
362342
363343 if ( args . includes ( '--help' ) || args . includes ( '-h' ) ) {
364344 console . log ( `
365345🚀 StrRay CI/CD Full Cycle Manager
366346
367- Usage: node scripts/ci-cd-full-cycle.cjs [commit-message] [options]
347+ Usage: node scripts/ci-cd-full-cycle.cjs [commit-message]
368348
369349Arguments:
370350 commit-message Optional commit message (auto-generated if not provided)
371351
372- Options:
373- --test, --quick Test mode: Skip long pipeline monitoring for quick completion
374- --help, -h Show this help message
352+ Description:
353+ Runs the complete CI/CD cycle: validate → commit → push → monitor → auto-fix
354+
355+ ⚠️ NOTE: This script waits for pipelines to complete (up to 20 minutes).
356+ Use in GitHub Actions or run with 'nohup' to avoid bash timeouts:
357+
358+ nohup node scripts/ci-cd-full-cycle.cjs "commit message" &
359+ tail -f nohup.out
375360
376361Examples:
377362 node scripts/ci-cd-full-cycle.cjs
378363 node scripts/ci-cd-full-cycle.cjs "feat: add new feature"
379- node scripts/ci-cd-full-cycle.cjs --test "quick test commit"
364+ nohup node scripts/ci-cd-full-cycle.cjs "long running commit" &
380365 ` ) ;
381366 process . exit ( 0 ) ;
382367 }
0 commit comments