Skip to content

chore: add run-pictopy script#1171

Closed
gurusatsangi wants to merge 1 commit intoAOSSIE-Org:mainfrom
gurusatsangi:chore/run-pictopy
Closed

chore: add run-pictopy script#1171
gurusatsangi wants to merge 1 commit intoAOSSIE-Org:mainfrom
gurusatsangi:chore/run-pictopy

Conversation

@gurusatsangi
Copy link

@gurusatsangi gurusatsangi commented Feb 14, 2026

Addressed Issues:

Fixes #(issue number)

Screenshots/Recordings:

Additional Notes:

Checklist

  • My PR addresses a single issue, fixes a single bug or makes a single improvement.
  • My code follows the project's code style and conventions
  • If applicable, I have made corresponding changes or additions to the documentation
  • If applicable, I have made corresponding changes or additions to tests
  • My changes generate no new warnings or errors
  • I have joined the Discord server and I will share a link to this PR with the project maintainers there
  • I have read the Contribution Guidelines
  • Once I submit my PR, CodeRabbit AI will automatically review it and I will address CodeRabbit's comments.

⚠️ AI Notice - Important!

We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact.

Summary by CodeRabbit

  • Chores
    • Added a PowerShell orchestrator script that automates the startup and management of frontend and backend services with integrated logging and cleanup functionality.

@github-actions
Copy link
Contributor

⚠️ No issue was linked in the PR description.
Please make sure to link an issue (e.g., 'Fixes #issue_number')

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 14, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

Introduces a new PowerShell orchestrator script that launches and manages the PictoPy frontend with two backend services as coordinated background jobs, monitoring their health, collecting and displaying color-coded logs, handling errors, and performing cleanup on exit.

Changes

Cohort / File(s) Summary
PowerShell Orchestrator Script
run-pictopy.ps1
New script that coordinates PictoPy frontend startup with Backend and Sync services as background jobs. Includes job health monitoring, color-coded log collection with repeat aggregation and summary output, error handling with critical failure detection, and cleanup routines (job termination, process force-kill on ports 52123/52124, directory reset).

Sequence Diagram

sequenceDiagram
    participant User
    participant Orchestrator as run-pictopy.ps1
    participant Backend
    participant Sync
    participant Frontend as Tauri Frontend
    
    User->>Orchestrator: Execute script
    Orchestrator->>Orchestrator: Setup environment
    Orchestrator->>Backend: Start as background job
    Orchestrator->>Sync: Start as background job
    Orchestrator->>Frontend: Launch via npm run tauri dev
    
    loop Health Monitoring
        Orchestrator->>Backend: Check job status
        Orchestrator->>Sync: Check job status
        Orchestrator->>Orchestrator: Collect & aggregate logs
        Orchestrator->>User: Display color-coded logs
    end
    
    alt Backend/Sync Crash
        Backend-->>Orchestrator: Critical error
        Orchestrator->>Orchestrator: Throw error
    else Normal Exit
        User->>Orchestrator: Close/Ctrl+C
    end
    
    Orchestrator->>Backend: Stop job
    Orchestrator->>Sync: Stop job
    Orchestrator->>Orchestrator: Kill processes (ports 52123/52124)
    Orchestrator->>Orchestrator: Reset directory
    Orchestrator->>User: Confirmation message
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 A rabbit's ode to orchestration:

Three jobs hop together in harmony,
Backend and Sync, Frontend so free,
With colored logs dancing across the screen,
The finest coordination I've ever seen! 🎭✨

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gurusatsangi gurusatsangi deleted the chore/run-pictopy branch February 14, 2026 11:27
@github-actions
Copy link
Contributor

⚠️ No issue was linked in the PR description.
Please make sure to link an issue (e.g., 'Fixes #issue_number')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant