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

Update docs around floating licensing configurations #472

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ejnarvala
Copy link

@ejnarvala ejnarvala commented Aug 7, 2024

Changes

Checklist

  • Read the contribution guide and accept the
    code of conduct
  • Readme (updated or not needed)
  • Tests (added, updated or not needed)

Summary by CodeRabbit

  • New Features

    • Added documentation for configuring Unity licensing server options, including unityLicensingServer and unityLicensingProductIds.
    • Provided examples for using the new parameters in YAML configurations for the Unity Test Runner and Builder actions.
  • Documentation

    • Enhanced guidance for managing multiple product licenses with Unity licensing servers.
    • Minor formatting adjustments for improved readability and consistency.

Copy link

github-actions bot commented Aug 7, 2024

Cat Gif

@GabLeRoux
Copy link
Member

@coderabbitai do a full review

Copy link

coderabbitai bot commented Oct 27, 2024

Warning

Rate limit exceeded

@GabLeRoux has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 24 minutes and 24 seconds before requesting another review.

⌛ 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.

📥 Commits

Files that changed from the base of the PR and between 7ffdb89 and edef4fa.

Walkthrough

The documentation for Unity-related GitHub Actions has been updated to include new configuration options for utilizing a Unity licensing server. Key additions include the unityLicensingServer and unityLicensingProductIds parameters, which allow users to specify the license server URL and manage multiple product identifiers, respectively. Examples and clarifications have been integrated into the existing documentation for the Unity Builder and Unity Test Runner, enhancing the guidance for users managing complex licensing setups while maintaining the original content's structure.

Changes

File Path Change Summary
docs/03-github/02-activation.mdx Added new section for unityLicensingProductIds parameter; clarified floating license acquisition.
docs/03-github/03-test-runner.mdx Introduced unityLicensingServer and unityLicensingProductIds options; included usage examples.
docs/03-github/04-builder.mdx Added section on unityLicensingProductIds and clarified its optional nature; referenced unityLicensingServer.

Poem

In the garden of code, we hop and play,
New licenses bloom, brightening the day.
With servers and products, we dance with glee,
Unity's magic, as sweet as can be!
🐇✨ Let's build and test, let our dreams take flight,
With every new feature, our future is bright!


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>, 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 bot commented Oct 27, 2024

@GabLeRoux: I will perform a full review of the PR as per your request.

✅ Actions performed

Full review triggered.

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 (5)
docs/03-github/02-activation.mdx (2)

94-100: Enhance the YAML example with more specific guidance.

While the example structure is correct, it could be more helpful with:

  1. Real-world example values instead of placeholders
  2. A note about the expected format of product IDs

Consider updating the example like this:

 - uses: game-ci/unity-builder@v4
   with:
     targetPlatform: WebGL
-    unityLicensingServer: [url to your license server]
-    unityLicensingProductIds: [comma separated product ids]
+    unityLicensingServer: http://license.company.com:8080
+    # Specify one or more product IDs, separated by commas
+    unityLicensingProductIds: Unity_Editor_2020,Unity_Editor_2021

Line range hint 82-86: Add context about when to use a license server.

Consider adding a brief introduction explaining when organizations might want to use a license server (e.g., for managing licenses across multiple developers or CI/CD pipelines in an enterprise setting). This would help readers better understand if this option is relevant for their use case.

Example addition before the current content:

 ## License Server
 
+Enterprise users often need to manage Unity licenses across multiple developers or CI/CD pipelines. 
+A Unity license server provides centralized license management for these scenarios. 
+
 If you host your own Unity license server you can provide its url using `unityLicensingServer`. A
 floating license will be acquired before the build, and returned after.
docs/03-github/03-test-runner.mdx (2)

77-90: Improve YAML example indentation for consistency.

The content accurately documents the unityLicensingProductIds parameter. However, the YAML example could be better indented to match the style used in other examples throughout the document.

Consider adjusting the indentation:

- uses: game-ci/unity-test-runner@v4
-  with:
-    projectPath: path/to/your/project
-    unityLicensingServer: [url to your license server]
-    unityLicensingProductIds: [comma separated product ids]
+ uses: game-ci/unity-test-runner@v4
+ with:
+   projectPath: path/to/your/project
+   unityLicensingServer: [url to your license server]
+   unityLicensingProductIds: [comma separated product ids]

576-588: Enhance parameter descriptions with example values.

The parameter documentation is well-structured and accurate. Consider enhancing it with example values to make it more user-friendly.

Add examples like:

 Sets the url to a unity license server for acquiring floating licenses.
+
+Example: `http://license.example.com:8080`

 _**required:** `false`_ _**default:** `""`_

 #### unityLicensingProductIds

 Comma separated list of license product identifiers to request licenses for from the unity license
 server.
+
+Example: `Unity_Pro,Unity_Android`

 _**required:** `false`_ _**default:** `""`_
docs/03-github/04-builder.mdx (1)

90-98: Consider using more descriptive placeholder values.

While the example is well-structured, consider using more descriptive placeholder values to help users understand the expected format:

-    unityLicensingServer: [url to your license server]
-    unityLicensingProductIds: [comma separated product ids]
+    unityLicensingServer: http://license-server.company.com:8080
+    unityLicensingProductIds: Unity_Pro_2020,Unity_Pro_2021
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 7ffdb89 and edef4fa.

📒 Files selected for processing (3)
  • docs/03-github/02-activation.mdx (1 hunks)
  • docs/03-github/03-test-runner.mdx (2 hunks)
  • docs/03-github/04-builder.mdx (2 hunks)
🔇 Additional comments (3)
docs/03-github/02-activation.mdx (1)

88-90: Documentation looks good!

The explanation about multiple product licenses is clear and the reference to Unity's official documentation provides valuable additional context.

docs/03-github/03-test-runner.mdx (1)

77-90: Documentation changes look good!

The additions effectively document the floating licensing configurations with clear explanations, examples, and references to official Unity documentation. The changes align well with the PR objectives.

Also applies to: 576-588

docs/03-github/04-builder.mdx (1)

86-88: LGTM! Clear introduction to product identifiers.

The text effectively introduces the concept and provides a helpful link to Unity's official documentation for more details.

Comment on lines +454 to +459
#### unityLicensingProductIds

Comma separated list of license product identifiers to request licenses for from the unity license
server.

_**required:** `false`_ _**default:** `""`_
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Enhance parameter documentation with more details.

Consider adding more details to help users understand the parameter better:

 #### unityLicensingProductIds
 
-Comma separated list of license product identifiers to request licenses for from the unity license
-server.
+Comma separated list of license product identifiers to request from the unity license server. Each
+identifier corresponds to a specific Unity product license (e.g., Unity_Pro, Unity_Plus).
+
+Example: `Unity_Pro_2020,Unity_Pro_2021`
 
 _**required:** `false`_ _**default:** `""`_
📝 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. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
#### unityLicensingProductIds
Comma separated list of license product identifiers to request licenses for from the unity license
server.
_**required:** `false`_ _**default:** `""`_
#### unityLicensingProductIds
Comma separated list of license product identifiers to request from the unity license server. Each
identifier corresponds to a specific Unity product license (e.g., Unity_Pro, Unity_Plus).
Example: `Unity_Pro_2020,Unity_Pro_2021`
_**required:** `false`_ _**default:** `""`_

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.

2 participants