Skip to content

chore: update devnotes #97

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

Merged
merged 3 commits into from
Nov 26, 2024
Merged

chore: update devnotes #97

merged 3 commits into from
Nov 26, 2024

Conversation

tchow-zlai
Copy link
Collaborator

@tchow-zlai tchow-zlai commented Nov 26, 2024

Summary

  • Update devnotes based on onboarding doc.

Checklist

  • Added Unit Tests
  • Covered by existing CI
  • Integration tested
  • Documentation update

Summary by CodeRabbit

  • Documentation
    • Enhanced setup instructions for the Chronon project.
    • Expanded prerequisites section with environment variable configurations.
    • Clarified installation instructions for Thrift, emphasizing version compatibility.
    • Added guidance for installing Java, Scala, and Python using asdf.
    • Restructured IntelliJ configuration instructions for improved clarity.
    • Updated troubleshooting section with commands for project cleaning and assembly.
    • Elaborated on the release process for artifact publishing and code pushing.

Copy link

coderabbitai bot commented Nov 26, 2024

Walkthrough

The changes primarily focus on enhancing the devnotes.md file for the Chronon project. Key modifications include expanded setup instructions, a new section for environment configurations, clarified Thrift version requirements, and detailed installation instructions for Java, Scala, and Python using asdf. The IntelliJ configuration section has been restructured and expanded with additional setup steps. The troubleshooting section has been updated, and the release process now includes detailed artifact publishing steps. No changes were made to exported or public entity declarations.

Changes

File Change Summary
devnotes.md - Expanded prerequisites and environment variable configurations.
- Clarified Thrift version requirements (0.13 only).
- Added installation instructions for Java, Scala, and Python with asdf.
- Restructured IntelliJ configuration with new setup steps.
- Updated troubleshooting commands for project cleaning and assembling.
- Elaborated release process with steps for publishing to JFrog Artifactory and Maven Central.

Suggested reviewers

  • nikhil-zlai
  • piyush-zlai
  • chewy-zlai
  • ken-zlai

🐇 In the garden where rabbits play,
New guides bloom, brightening the way.
With Thrift and Java, all set to go,
IntelliJ's ready, let the code flow!
Clean and assemble, the project will shine,
With each little change, our work is divine! 🌼


🪧 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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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 using 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.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration 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

🧹 Outside diff range and nitpick comments (3)
devnotes.md (3)

32-38: Add specific Python version and installation commands

While the Java and Scala versions are clearly specified, the Python version requirement is missing. Additionally, consider adding the exact asdf commands for installing these versions.

 ### Install appropriate java, scala, and python versions
 Recommend you do this through a runtime version manager. [asdf](https://asdf-vm.com/) recommended since it works for most all languages.
 
 - Use scala`2.13` and java `corretto-17` for the Zipline Chronon distribution.
 
 - Use scala `2.12.18` and java `corretto-8` for the OSS Chronon distribution.
+
+Example installation commands:
+```bash
+# Install plugins
+asdf plugin add java
+asdf plugin add scala
+asdf plugin add python
+
+# Install versions
+asdf install java corretto-17
+asdf install scala 2.13
+asdf install python 3.x.x  # specify required version
+```

49-52: Fix formatting and punctuation

Minor formatting improvements needed:

-Under Intellij IDEA > Settings > Editor > Code Style > Scala enable `scalafmt`.
+Under Intellij IDEA > Settings > Editor > Code Style > Scala, enable `scalafmt`.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~51-~51: Possible missing comma found.
Context: ...IDEA > Settings > Editor > Code Style > Scala enable scalafmt. - Follow the steps b...

(AI_HYDRA_LEO_MISSING_COMMA)


57-57: Fix grammar in instructions

Minor grammar correction needed:

-Set the following [java arguments](https://stackoverflow.com/questions/72724816/running-unit-tests-with-spark-3-3-0-on-java-17-fails-with-illegalaccesserror-cl) by copy pasting into the run configuration arguments list:
+Set the following [java arguments](https://stackoverflow.com/questions/72724816/running-unit-tests-with-spark-3-3-0-on-java-17-fails-with-illegalaccesserror-cl) by copying and pasting into the run configuration arguments list:
🧰 Tools
🪛 LanguageTool

[grammar] ~57-~57: Did you mean “copying and pasting”?
Context: ...17-fails-with-illegalaccesserror-cl) by copy pasting into the run configuration arguments li...

(COPY_PASTE)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 0bad656 and 058f2a7.

⛔ Files ignored due to path filters (3)
  • intellij_unit_test_1.png is excluded by !**/*.png
  • intellij_unit_test_2.png is excluded by !**/*.png
  • intellij_unit_test_3.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • devnotes.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
devnotes.md

[uncategorized] ~51-~51: Possible missing comma found.
Context: ...IDEA > Settings > Editor > Code Style > Scala enable scalafmt. - Follow the steps b...

(AI_HYDRA_LEO_MISSING_COMMA)


[grammar] ~57-~57: Did you mean “copying and pasting”?
Context: ...17-fails-with-illegalaccesserror-cl) by copy pasting into the run configuration arguments li...

(COPY_PASTE)

🪛 Markdownlint (0.35.0)
devnotes.md

55-55: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


73-73: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


76-76: null
Images should have alternate text (alt text)

(MD045, no-alt-text)

- Follow the steps below to configure unit tests in intellij:

Run > Edit Configurations
![](./intellij_unit_test_1.png)
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add alt text to images for accessibility

The images lack alt text, which is important for accessibility. Please add descriptive alt text to each image:

-![](./intellij_unit_test_1.png)
+![IntelliJ Run Configuration dialog showing test configuration settings](./intellij_unit_test_1.png)

-![](./intellij_unit_test_2.png)
+![IntelliJ VM options configuration showing Java arguments](./intellij_unit_test_2.png)

-![](./intellij_unit_test_3.png)
+![IntelliJ classpath configuration for module selection](./intellij_unit_test_3.png)

Also applies to: 73-73, 76-76

🧰 Tools
🪛 Markdownlint (0.35.0)

55-55: null
Images should have alternate text (alt text)

(MD045, no-alt-text)

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: 0

🧹 Outside diff range and nitpick comments (4)
devnotes.md (4)

35-37: Clarify Scala version compatibility

The instructions mention using Scala "2.12" for Zipline distribution but "2.12.18" for OSS distribution. Consider being more specific about the exact version for Zipline distribution to avoid confusion.

-Use scala`2.12` and java `corretto-17` for the Zipline Chronon distribution.
+Use scala `2.12.18` and java `corretto-17` for the Zipline Chronon distribution.

57-72: Add explanation for Java arguments

While the link to StackOverflow is helpful, it would be beneficial to briefly explain why these Java arguments are necessary (i.e., for Spark compatibility with Java 17).

Add a brief explanation before the arguments:

-Set the following [java arguments](https://stackoverflow.com/questions/72724816/running-unit-tests-with-spark-3-3-0-on-java-17-fails-with-illegalaccesserror-cl) by copy pasting into the run configuration arguments list:
+Set the following Java arguments to enable Spark compatibility with Java 17 by copying and pasting into the run configuration arguments list. These arguments allow Spark to access necessary Java internal APIs:
🧰 Tools
🪛 LanguageTool

[grammar] ~57-~57: Did you mean “copying and pasting”?
Context: ...17-fails-with-illegalaccesserror-cl) by copy pasting into the run configuration arguments li...

(COPY_PASTE)


Line range hint 316-321: Add warning about release timing

Consider adding a note about the best time to perform releases (e.g., during low-traffic periods) and estimated time for completion.

Add a warning before the release steps:

# Chronon Release Process

+> **Note**: Release process typically takes 30-45 minutes to complete. Consider performing releases during low-traffic periods to minimize impact.
+
## Publishing all the artifacts of Chronon
🧰 Tools
🪛 LanguageTool

[grammar] ~57-~57: Did you mean “copying and pasting”?
Context: ...17-fails-with-illegalaccesserror-cl) by copy pasting into the run configuration arguments li...

(COPY_PASTE)

🪛 Markdownlint (0.35.0)

85-85: null
Emphasis used instead of a heading

(MD036, no-emphasis-as-heading)


55-55: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


73-73: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


76-76: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


Line range hint 441-463: Enhance the zpush function with error handling

The zpush function could be improved with better error handling and validation.

Consider enhancing the function:

 function zpush() {
     if [ $# -eq 0 ]; then
         echo "Error: Please provide a commit message."
         return 1
     fi

     local commit_message="$1"
+    local exit_code=0
+
+    echo "Running compilation and formatting checks..."
+    
+    # Run each command and capture its status
+    sbt compile
+    exit_code=$((exit_code + $?))
+    
+    sbt scalafixAll
+    exit_code=$((exit_code + $?))
+    
+    sbt scalafmt
+    exit_code=$((exit_code + $?))
+
+    if [ $exit_code -ne 0 ]; then
+        echo "Error: Compilation or formatting failed. Please fix the issues before committing."
+        return 1
+    fi

-    sbt compile && \
-    sbt scalafixAll && \
-    sbt scalafmt && \
     git add -u && \
     git commit -m "$commit_message" && \
     git push

     if [ $? -eq 0 ]; then
         echo "Successfully compiled, formatted, committed, and pushed changes."
     else
         echo "An error occurred during the process."
+        return 1
     fi
 }
🧰 Tools
🪛 LanguageTool

[grammar] ~57-~57: Did you mean “copying and pasting”?
Context: ...17-fails-with-illegalaccesserror-cl) by copy pasting into the run configuration arguments li...

(COPY_PASTE)

🪛 Markdownlint (0.35.0)

85-85: null
Emphasis used instead of a heading

(MD036, no-emphasis-as-heading)


55-55: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


73-73: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


76-76: null
Images should have alternate text (alt text)

(MD045, no-alt-text)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 058f2a7 and fbb3441.

📒 Files selected for processing (1)
  • devnotes.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
devnotes.md

[grammar] ~57-~57: Did you mean “copying and pasting”?
Context: ...17-fails-with-illegalaccesserror-cl) by copy pasting into the run configuration arguments li...

(COPY_PASTE)

🪛 Markdownlint (0.35.0)
devnotes.md

55-55: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


73-73: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


76-76: null
Images should have alternate text (alt text)

(MD045, no-alt-text)

🔇 Additional comments (1)
devnotes.md (1)

55-76: Add alt text to images for better accessibility

This was previously mentioned in an earlier review. Please add descriptive alt text to all images to improve accessibility.

🧰 Tools
🪛 LanguageTool

[grammar] ~57-~57: Did you mean “copying and pasting”?
Context: ...17-fails-with-illegalaccesserror-cl) by copy pasting into the run configuration arguments li...

(COPY_PASTE)

🪛 Markdownlint (0.35.0)

55-55: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


73-73: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


76-76: null
Images should have alternate text (alt text)

(MD045, no-alt-text)

@tchow-zlai tchow-zlai merged commit d78592c into main Nov 26, 2024
8 checks passed
@tchow-zlai tchow-zlai deleted the tchow/update-devnotes branch November 26, 2024 23:46
@coderabbitai coderabbitai bot mentioned this pull request Dec 4, 2024
4 tasks
@coderabbitai coderabbitai bot mentioned this pull request Mar 14, 2025
4 tasks
@coderabbitai coderabbitai bot mentioned this pull request Apr 3, 2025
4 tasks
kumar-zlai pushed a commit that referenced this pull request Apr 25, 2025
## Summary
- Update devnotes based on onboarding doc. 

## Checklist
- [ ] Added Unit Tests
- [ ] Covered by existing CI
- [ ] Integration tested
- [ ] Documentation update



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Documentation**
	- Enhanced setup instructions for the Chronon project.
- Expanded prerequisites section with environment variable
configurations.
- Clarified installation instructions for Thrift, emphasizing version
compatibility.
	- Added guidance for installing Java, Scala, and Python using `asdf`.
- Restructured IntelliJ configuration instructions for improved clarity.
- Updated troubleshooting section with commands for project cleaning and
assembly.
- Elaborated on the release process for artifact publishing and code
pushing.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
kumar-zlai pushed a commit that referenced this pull request Apr 29, 2025
## Summary
- Update devnotes based on onboarding doc. 

## Checklist
- [ ] Added Unit Tests
- [ ] Covered by existing CI
- [ ] Integration tested
- [ ] Documentation update



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Documentation**
	- Enhanced setup instructions for the Chronon project.
- Expanded prerequisites section with environment variable
configurations.
- Clarified installation instructions for Thrift, emphasizing version
compatibility.
	- Added guidance for installing Java, Scala, and Python using `asdf`.
- Restructured IntelliJ configuration instructions for improved clarity.
- Updated troubleshooting section with commands for project cleaning and
assembly.
- Elaborated on the release process for artifact publishing and code
pushing.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
chewy-zlai pushed a commit that referenced this pull request May 15, 2025
## Summary
- Update devnotes based on onboarding doc. 

## Checklist
- [ ] Added Unit Tests
- [ ] Covered by existing CI
- [ ] Integration tested
- [ ] Documentation update



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Documentation**
	- Enhanced setup instructions for the Chronon project.
- Expanded prerequisites section with environment variable
configurations.
- Clarified installation instructions for Thrift, emphasizing version
compatibility.
	- Added guidance for installing Java, Scala, and Python using `asdf`.
- Restructured IntelliJ configuration instructions for improved clarity.
- Updated troubleshooting section with commands for project cleaning and
assembly.
- Elaborated on the release process for artifact publishing and code
pushing.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
chewy-zlai pushed a commit that referenced this pull request May 16, 2025
## Summary
- Update devnotes based on onboarding doc. 

## Cheour clientslist
- [ ] Added Unit Tests
- [ ] Covered by existing CI
- [ ] Integration tested
- [ ] Documentation update



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Documentation**
	- Enhanced setup instructions for the Chronon project.
- Expanded prerequisites section with environment variable
configurations.
- Clarified installation instructions for Thrift, emphasizing version
compatibility.
	- Added guidance for installing Java, Scala, and Python using `asdf`.
- Restructured IntelliJ configuration instructions for improved clarity.
- Updated troubleshooting section with commands for project cleaning and
assembly.
- Elaborated on the release process for artifact publishing and code
pushing.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
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.

3 participants