Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new docs design #8

Merged
merged 2 commits into from
Jun 1, 2024
Merged

new docs design #8

merged 2 commits into from
Jun 1, 2024

Conversation

apoorvsadana
Copy link
Contributor

@apoorvsadana apoorvsadana commented Jun 1, 2024

Summary by CodeRabbit

  • Documentation
    • Updated README to reflect changes in the orchestrator's role and functionality.
    • Revised orchestrator flow diagram to detail updated job execution sequences and interactions with various components.

Copy link

coderabbitai bot commented Jun 1, 2024

Walkthrough

The updates primarily focus on refining the orchestrator's role, shifting from handling DA publishing in version 1 to a more flexible flow that can adapt based on external systems and constraints. This involves significant changes in the sequence of job executions and interactions with various components. There are no alterations to the declarations of exported or public entities.

Changes

Files Change Summary
README.md Updated the description of the orchestrator's role from handling DA publishing to a more flexible flow.
docs/orchestrator_da_sequencer_diagram.txt Significant alterations to job orchestration, including interactions with Madara, CairoVM, DB, prover_api, Alt DA, Settlement Layer, and DA layer.

Sequence Diagram(s) (Beta)

sequenceDiagram
    participant Orchestrator
    participant DB
    participant Madara
    participant CairoVM
    participant prover_api
    participant AltDA
    participant SettlementLayer
    participant DALayer

    Orchestrator->>DB: get PIE of SNOS/SNAR from db_id
    DB-->>Orchestrator: PIE
    Orchestrator->>Madara: get SNOS input
    Madara-->>Orchestrator: input
    Orchestrator->>CairoVM: execute SNOS
    Orchestrator->>prover_api: submit PIE for proof creation
    prover_api-->>Orchestrator: polling_id
    Orchestrator->>prover_api: polls over the polling_id and gets status
    prover_api-->>Orchestrator: success
    Orchestrator->>DB: store PIE
    DB-->>Orchestrator: ok
Loading

Poem

In the land of code, where changes flow,
The orchestrator's role begins to grow.
From DA's grasp, it now takes flight,
Adapting swiftly, day and night.
With Madara, CairoVM, and more,
It dances through each data chore.
A rabbit's cheer for this grand update,
To flexible flows, we now relate! 🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between b8a9748 and 4e4b401.

Files ignored due to path filters (1)
  • docs/orchestrator_da_sequencer_diagram.png is excluded by !**/*.png
Files selected for processing (2)
  • README.md (1 hunks)
  • docs/orchestrator_da_sequencer_diagram.txt (1 hunks)
Additional context used
LanguageTool
README.md

[uncategorized] ~8-~8: The preposition ‘of’ seems more likely in this position.
Context: ...obs to the prover 3. updating the state on Cairo core contracts The tentative flo...


[uncategorized] ~10-~10: Use a comma before ‘but’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...flow of the orchestrator looks like this but this is subject to change as we learn m...

Additional comments not posted (4)
README.md (1)

11-11: The image link to the orchestrator diagram is correctly formatted and points to the updated diagram.

docs/orchestrator_da_sequencer_diagram.txt (3)

1-1: The title change to "Orchestrator Flow" accurately reflects the updated content of the diagram.


5-10: The updated interactions in the sequence diagram are clear and accurately represent the orchestrator's enhanced role in managing various jobs.

Also applies to: 27-41


1-67: The removal of certain participants and the database reference simplifies the diagram and focuses on the essential components, aligning with the new design strategy.

README.md Outdated
@@ -7,7 +7,7 @@ parallel to Madara and handles
2. running SNOS and submitting jobs to the prover
3. updating the state on Cairo core contracts

As a v1, the orchestrator handles the DA publishing. The architecture for the
same is as follows
The tentative flow of the orchestrator looks like this but this is subject to change as we
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a comma before "but" to improve readability.

- The tentative flow of the orchestrator looks like this but this is subject to change as we
+ The tentative flow of the orchestrator looks like this, but this is subject to change as we
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
The tentative flow of the orchestrator looks like this but this is subject to change as we
The tentative flow of the orchestrator looks like this, but this is subject to change as we
Tools
LanguageTool

[uncategorized] ~10-~10: Use a comma before ‘but’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...flow of the orchestrator looks like this but this is subject to change as we learn m...

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 4e4b401 and ef7790b.

Files selected for processing (1)
  • README.md (1 hunks)
Additional context used
LanguageTool
README.md

[uncategorized] ~8-~8: The preposition ‘of’ seems more likely in this position.
Context: ...obs to the prover 3. updating the state on Cairo core contracts The tentative flo...


[uncategorized] ~10-~10: Use a comma before ‘but’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...flow of the orchestrator looks like this but this is subject to change as we learn m...

Comment on lines +10 to +11
The tentative flow of the orchestrator looks like this but this is subject to
change as we learn more about external systems and the constratins involved.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a comma before "but" to improve readability.

- The tentative flow of the orchestrator looks like this but this is subject to
+ The tentative flow of the orchestrator looks like this, but this is subject to
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
The tentative flow of the orchestrator looks like this but this is subject to
change as we learn more about external systems and the constratins involved.
The tentative flow of the orchestrator looks like this, but this is subject to
change as we learn more about external systems and the constratins involved.
Tools
LanguageTool

[uncategorized] ~10-~10: Use a comma before ‘but’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...flow of the orchestrator looks like this but this is subject to change as we learn m...

@apoorvsadana apoorvsadana merged commit 9d5cdd7 into main Jun 1, 2024
6 checks passed
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