Skip to content

Conversation

@rajchiluveru
Copy link
Contributor

@rajchiluveru rajchiluveru commented May 8, 2025

SUMMARY

This change request is to allow wait time of 120 seconds to check OCS crd is avaialble.
Successful DCI job: https://www.distributed-ci.io/jobs/391874e4-f27c-4ba6-8e66-1549e09db2df/jobStates

ISSUE TYPE

nominal change

Tests

Test-Hints: no-check

@rajchiluveru rajchiluveru requested a review from a team as a code owner May 8, 2025 10:07
@coderabbitai
Copy link
Contributor

coderabbitai bot commented May 8, 2025

📝 Walkthrough

Walkthrough

The Ansible task checking for the OCS CustomResourceDefinition (CRD) was refactored to use a block with retry logic—attempting up to 12 times with 10-second intervals—and a rescue handler that fails explicitly if the CRD is not found, consolidating the previous separate failure task.

Changes

File(s) Change Summary
roles/odf_setup/tasks/validation.yml Refactored CRD presence check to use an Ansible block with retry (12 attempts, 10s delay) and a rescue failure handler, replacing separate failure task.

Possibly related PRs

Suggested reviewers

  • manurodriguez
  • betoredhat

Tip

⚡️ Faster reviews with caching
  • CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.

Enjoy the performance boost—your workflow just got faster.


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bc04627 and ea8a035.

📒 Files selected for processing (1)
  • roles/odf_setup/tasks/validation.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • roles/odf_setup/tasks/validation.yml
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Sanity Check (stable-2.9)
  • GitHub Check: Sanity Check (stable-2.17)

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

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this 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.

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
Contributor

@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.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5167ef1 and aa6c3e7.

📒 Files selected for processing (1)
  • roles/odf_setup/tasks/validation.yml (1 hunks)

@softwarefactory-project-zuul
Copy link

@dcibot
Copy link
Collaborator

dcibot commented May 8, 2025

@softwarefactory-project-zuul
Copy link

@dcibot
Copy link
Collaborator

dcibot commented May 8, 2025

@dcibot
Copy link
Collaborator

dcibot commented May 8, 2025

@dcibot
Copy link
Collaborator

dcibot commented May 9, 2025

@softwarefactory-project-zuul
Copy link

Copy link
Contributor

@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: 3

🧹 Nitpick comments (3)
roles/odf_setup/tasks/validation.yml (3)

4-6: Specify the API version explicitly
When querying a CustomResourceDefinition, it’s best practice to set api_version: apiextensions.k8s.io/v1 so you’re always targeting the correct API endpoint.


22-22: Avoid register variable collision
Both the OCS and LSO checks use register: req_crd, so the second invocation will overwrite the first. Consider renaming the LSO register (for example, req_lso_crd) and update its associated when accordingly.


16-16: Simplify rescue block condition
In a rescue, tasks only run when the block fails—so the when: req_crd.resources | list | count == 0 is redundant. You can remove the when clause and let the fail always execute on block failure.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f97092b and bc04627.

📒 Files selected for processing (1)
  • roles/odf_setup/tasks/validation.yml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
roles/odf_setup/tasks/validation.yml

[error] 17-17: trailing spaces

(trailing-spaces)

🪛 GitHub Actions: Pull Request
roles/odf_setup/tasks/validation.yml

[error] 1-1: name[missing]: All tasks should be named.


[error] 1-1: yaml[trailing-spaces]: Trailing spaces detected.

🔇 Additional comments (1)
roles/odf_setup/tasks/validation.yml (1)

10-10: Approved: improved retry condition
Using until: req_crd.resources | length > 0 correctly waits until the CRD actually exists, fixing the previous “always true” check.

@softwarefactory-project-zuul
Copy link

@dcibot
Copy link
Collaborator

dcibot commented May 9, 2025

@dcibot
Copy link
Collaborator

dcibot commented May 9, 2025

@dcibot
Copy link
Collaborator

dcibot commented May 9, 2025

@dcibot
Copy link
Collaborator

dcibot commented May 10, 2025

@dcibot
Copy link
Collaborator

dcibot commented May 10, 2025

@dcibot
Copy link
Collaborator

dcibot commented May 12, 2025

@dcibot
Copy link
Collaborator

dcibot commented May 12, 2025

@rajchiluveru rajchiluveru requested a review from tkrishtop May 13, 2025 09:55
Copy link
Contributor

@tkrishtop tkrishtop left a comment

Choose a reason for hiding this comment

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

LGTM will approve once the job will pass

@dcibot
Copy link
Collaborator

dcibot commented May 13, 2025

@tkrishtop tkrishtop enabled auto-merge May 13, 2025 10:03
@rajchiluveru rajchiluveru disabled auto-merge May 13, 2025 10:06
@rajchiluveru rajchiluveru enabled auto-merge May 13, 2025 10:06
@rajchiluveru
Copy link
Contributor Author

recheck

@softwarefactory-project-zuul
Copy link

@rajchiluveru
Copy link
Contributor Author

recheck

@dcibot
Copy link
Collaborator

dcibot commented May 13, 2025

from change #670:

  • no check (not a code change)

1 similar comment
@dcibot
Copy link
Collaborator

dcibot commented May 13, 2025

from change #670:

  • no check (not a code change)

@rajchiluveru rajchiluveru added this pull request to the merge queue May 13, 2025
@softwarefactory-project-zuul
Copy link

Merged via the queue into main with commit 05ed8b8 May 13, 2025
8 checks passed
@rajchiluveru rajchiluveru deleted the ocs_crd branch May 13, 2025 10:25
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.

5 participants