Skip to content

feat: unify pipeline session creation between analyze and run commands#185

Closed
shrutu0929 wants to merge 2 commits into
Refactron-ai:mainfrom
shrutu0929:feat/unify-session-creation
Closed

feat: unify pipeline session creation between analyze and run commands#185
shrutu0929 wants to merge 2 commits into
Refactron-ai:mainfrom
shrutu0929:feat/unify-session-creation

Conversation

@shrutu0929
Copy link
Copy Markdown

solve #179
This task involved unifying the session creation and management logic between the core library's RefactronPipeline and the CLI's analyze and run commands. By refactoring the orchestration layer, I eliminated duplicate code paths that were previously handling analysis results and session state independently, which often led to inconsistent timing metrics and data drift. I implemented robust JSON-based persistence in the PipelineSession model, allowing sessions to be saved to and loaded from a centralized storage directory for better observability. With these changes, every analysis run now automatically initializes a structured session that captures phase-specific timings, tracks queued fixes, and persists metadata, ensuring a consistent and reliable state across all Refactron orchestration workflows.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 20, 2026

Warning

Rate limit exceeded

@shrutu0929 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 43 minutes and 52 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 43 minutes and 52 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0c211835-5f04-4b2d-88e8-0864c75bc6b5

📥 Commits

Reviewing files that changed from the base of the PR and between a9659f5 and 361bcd3.

📒 Files selected for processing (8)
  • .refactron.yaml
  • refactron/cli/analysis.py
  • refactron/cli/main.py
  • refactron/cli/run.py
  • refactron/core/pipeline.py
  • refactron/core/pipeline_session.py
  • tests/test_pipeline.py
  • tests/test_pipeline_session.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

This pull request has been automatically marked as stale because it has not had recent activity for 14 days.

If you believe this PR is still relevant, please:

  • Add a comment explaining why
  • Remove the stale label
  • Or simply comment to keep it active

This helps us keep the repository focused on active contributions. Thank you! 🙏

@github-actions github-actions Bot added the stale label May 5, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

This pull request has been automatically closed because it was marked as stale and had no recent activity for 3 days.

If you believe this PR should be reopened, please:

  • Add a comment explaining why
  • Remove the closed-by-stale-bot label
  • Or create a new PR with updated information

Thank you for your understanding! 🙏

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant