Skip to content

chore: update Qodo config to v2#2567

Merged
openshift-merge-bot[bot] merged 2 commits intoredhat-developer:mainfrom
zdrapela:qodo-v2-update
Mar 25, 2026
Merged

chore: update Qodo config to v2#2567
openshift-merge-bot[bot] merged 2 commits intoredhat-developer:mainfrom
zdrapela:qodo-v2-update

Conversation

@zdrapela
Copy link
Copy Markdown
Member

@zdrapela zdrapela commented Mar 25, 2026

Summary

Mirrors changes from redhat-developer/rhdh#4460

https://redhat.atlassian.net/browse/RHIDP-12920

@rhdh-qodo-merge
Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🔒 No security concerns identified
⚡ Recommended focus areas for review

Config Type

Several boolean-looking settings are set as quoted strings (e.g., enable_auto_checks_feedback, persistent_comment, final_update_message). Confirm Qodo v2 expects string values here (vs TOML booleans) to avoid the settings being ignored or misinterpreted.

[checks]
enable_auto_checks_feedback = "true"
persistent_comment = "true"
final_update_message = "false"
Action Pinning

The workflow now pins actions by commit SHA and adds a version/checksum for tombi. Double-check that the referenced actions/checkout SHA actually corresponds to the intended major version noted in the comment, and that the tombi checksum matches the specified binary version for the runner platform.

- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- uses: tombi-toml/setup-tombi@cebfd308ba02edadfcee148b7473536990950c92 # v1.0.8
  with:
    version: 'v0.9.9'
    checksum: 'b50dbc90ec27591dbaf564b628bd3b3e4ead371a60931bc8ea5f34d7cd1d3607'
📄 References
  1. redhat-developer/rhdh-operator/config/profile/rhdh/plugin-deps/tekton.yaml [117-151]
  2. redhat-developer/rhdh-operator/config/profile/rhdh/plugin-deps/tekton.yaml [382-390]
  3. redhat-developer/rhdh-operator/config/profile/rhdh/plugin-deps/tekton.yaml [172-196]
  4. redhat-developer/rhdh-operator/dist/rhdh/install.yaml [431-438]
  5. redhat-developer/rhdh-operator/dist/rhdh/install.yaml [927-934]
  6. redhat-developer/rhdh-operator/dist/rhdh/install.yaml [2263-2279]
  7. redhat-developer/rhdh-operator/dist/rhdh/install.yaml [1794-1816]
  8. redhat-developer/rhdh-operator/dist/rhdh/install.yaml [1734-1754]

@rhdh-qodo-merge rhdh-qodo-merge bot added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 25, 2026
@rhdh-qodo-merge
Copy link
Copy Markdown

PR Type

Enhancement, Documentation


Description

  • Update Qodo configuration from v1 to v2 with new command structure

  • Pin setup-tombi action version and checksum for reproducibility

  • Migrate PR review commands to agentic workflow endpoints

  • Update Jira integration URL to Atlassian cloud instance


File Walkthrough

Relevant files
Configuration changes
.pr_agent.toml
Migrate Qodo configuration to v2 API structure                     

.pr_agent.toml

  • Migrated PR commands from /review, /describe, /improve to
    /agentic_review, /agentic_describe, /generate_labels
  • Updated Jira base URL from https://issues.redhat.com to
    https://redhat.atlassian.net
  • Removed jira_api_token configuration and feedback_on_draft_pr setting
  • Restructured configuration sections: consolidated pr_reviewer and
    pr_description settings into review_agent and checks sections
  • Disabled pr_test and adjusted comment publishing policies
+12/-22 
Dependencies
toml-checks.yaml
Pin setup-tombi version and update action checksums           

.github/workflows/toml-checks.yaml

  • Updated actions/checkout action checksum from
    de0fac2e4500dabe0009e67214ff5f5447ce83dd to
    8e8c483db84b4bee98b60c0593521ed34d9990e8
  • Added explicit version pinning for setup-tombi with version v0.9.9 and
    checksum
    b50dbc90ec27591dbaf564b628bd3b3e4ead371a60931bc8ea5f34d7cd1d3607
  • Introduced with block to specify tombi tool version and checksum for
    reproducible builds
+5/-2     

@rhdh-qodo-merge
Copy link
Copy Markdown

rhdh-qodo-merge bot commented Mar 25, 2026

PR Code Suggestions ✨

Explore these optional code suggestions:

CategorySuggestion                                                                                                                                    Impact
High-level
Verify impact of removed tooling features

The suggestion notes that the Qodo v2 migration removes or replaces features
like the /improve command and various review settings. It requests confirmation
that these changes and their impact on the developer workflow are intentional
and acceptable.

Examples:

.pr_agent.toml [6-22]
pr_commands = [
    "/agentic_review",
    "/agentic_describe --pr_description.final_update_message=false",
    "/generate_labels",
]

[pr_test]
enable=false

[review_agent]

 ... (clipped 7 lines)

Solution Walkthrough:

Before:

# .pr_agent.toml

[github_app]
pr_commands = [
    "/review",
    "/describe ...",
    "/improve",
]

[pr_reviewer]
persistent_comment = true
require_tests_review = false
...

[pr_description]
enable_pr_diagram = false
...

After:

# .pr_agent.toml

[github_app]
pr_commands = [
    "/agentic_review",
    "/agentic_describe ...",
    "/generate_labels",
]

# [pr_reviewer] and [pr_description] sections are removed

[review_agent]
comments_location_policy = "summary"

[checks]
enable_auto_checks_feedback = "true"
...
Suggestion importance[1-10]: 8

__

Why: This is a high-impact suggestion that correctly identifies significant changes to developer workflow due to the tool migration, questioning the removal of key features like /improve and configuration sections.

Medium
Possible issue
Use boolean literals for configuration
Suggestion Impact:Updated the [checks] configuration values from quoted strings ("true"/"false") to proper boolean literals (true/false).

code diff:

 [checks]
-enable_auto_checks_feedback = "true"
-persistent_comment = "true"
-final_update_message = "false"
+enable_auto_checks_feedback = true
+persistent_comment = true
+final_update_message = false

In the [checks] section of the TOML file, replace the string values for boolean
settings with boolean literals (e.g., "true" should be true).

.pr_agent.toml [18-21]

 [checks]
-enable_auto_checks_feedback = "true"
-persistent_comment = "true"
-final_update_message = "false"
+enable_auto_checks_feedback = true
+persistent_comment = true
+final_update_message = false

[Suggestion processed]

Suggestion importance[1-10]: 7

__

Why: The suggestion correctly identifies that using strings for boolean values in the TOML configuration is prone to parsing errors and suggests using proper boolean literals, which improves the configuration's robustness.

Medium
Organization
best practice
Correct misleading version comments

Update the inline comment to match the actual major version of the pinned
actions/checkout commit (or remove the version comment entirely).

.github/workflows/toml-checks.yaml [15]

-- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
+- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
  • Apply / Chat
Suggestion importance[1-10]: 6

__

Why:
Relevant best practice - Keep comments/metadata accurate so pinned versions are auditable and maintainers aren’t misled.

Low
  • Update

@zdrapela
Copy link
Copy Markdown
Member Author

/agentic_review

@rhdh-qodo-merge
Copy link
Copy Markdown

rhdh-qodo-merge bot commented Mar 25, 2026

Code Review by Qodo

🐞 Bugs (3) 📘 Rule violations (0) 📎 Requirement gaps (0) 📐 Spec deviations (0)

Grey Divider


Action required

1. Quoted TOML booleans🐞 Bug ✓ Correctness
Description
In .pr_agent.toml the [checks] flags are set to quoted strings ("true"/"false"), so TOML parsers
will treat them as strings and downstream logic expecting booleans may misbehave (e.g., checks not
enabling/disabling). This is inconsistent with other booleans in the same file (enable=false,
enable_rag=true).
Code

.pr_agent.toml[R18-21]

+[checks]
+enable_auto_checks_feedback = "true"
+persistent_comment = "true"
+final_update_message = "false"
Evidence
The updated config sets [checks] values as strings, while the same file uses actual TOML booleans
elsewhere; TOML does not auto-convert quoted strings to booleans, so consumers reading these as
booleans will see wrong types.

.pr_agent.toml[12-28]
.pr_agent.toml[18-22]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`.pr_agent.toml` defines `[checks]` values as quoted strings (e.g., `"true"`), which are parsed as TOML strings rather than booleans. Any consumer expecting booleans may not toggle features correctly.

## Issue Context
The same file already uses proper boolean literals in other sections (`enable=false`, `enable_rag=true`), so `[checks]` should likely follow the same convention.

## Fix Focus Areas
- .pr_agent.toml[18-22]
 - Change `"true"/"false"` to `true/false` (unquoted) for boolean settings.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

2. Jira URL mismatch 🐞 Bug ⚙ Maintainability
Description
The Jira base URL in .pr_agent.toml was changed to https://redhat.atlassian.net, while the
repository documentation still directs contributors to https://issues.redhat.com. This
inconsistency will confuse or break any ticket-linking behavior for users following the documented
Jira host.
Code

.pr_agent.toml[2]

+jira_base_url = "https://redhat.atlassian.net"
Evidence
The PR-agent config now points to a different Jira host than the one referenced in the repo’s README
for reporting/browsing issues, so either the config or the docs are out of sync.

.pr_agent.toml[1-3]
README.md[84-88]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`.pr_agent.toml` sets `jira_base_url` to `https://redhat.atlassian.net`, but the repository README instructs users to use `https://issues.redhat.com`. This creates an ambiguity about which Jira instance is authoritative.

## Issue Context
If the Jira instance truly changed, documentation should be updated accordingly; otherwise, revert the config change.

## Fix Focus Areas
- .pr_agent.toml[1-3]
- README.md[84-88]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Checkout pin inconsistency 🐞 Bug ⛨ Security
Description
.github/workflows/toml-checks.yaml pins actions/checkout to a different SHA than other workflows
in this repo, which increases maintenance burden and supply-chain audit complexity. Keeping a
consistent SHA across workflows reduces unexpected behavioral drift.
Code

.github/workflows/toml-checks.yaml[R15-16]

+      - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
+      - uses: tombi-toml/setup-tombi@cebfd308ba02edadfcee148b7473536990950c92 # v1.0.8
Evidence
The TOML validator workflow uses actions/checkout@8e8c... while other workflows use
actions/checkout@de0f..., meaning the repo is not consistently pinned to one reviewed commit for
the same action.

.github/workflows/toml-checks.yaml[14-19]
.github/workflows/pr.yaml[30-33]
.github/workflows/validate-image-digests.yaml[18-21]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
One workflow pins `actions/checkout` to a different SHA than the rest of the repository workflows.

## Issue Context
Most workflows use `actions/checkout@de0fac2e...` while `toml-checks.yaml` uses `actions/checkout@8e8c483d...`.

## Fix Focus Areas
- .github/workflows/toml-checks.yaml[14-16]
- .github/workflows/pr.yaml[30-33]
- .github/workflows/validate-image-digests.yaml[18-21]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Advisory comments

4. Missing EOF newline 🐞 Bug ⚙ Maintainability
Description
.github/workflows/toml-checks.yaml is missing a trailing newline, which can cause needless diffs
and may fail strict formatting/lint tooling. This is a simple hygiene fix.
Code

.github/workflows/toml-checks.yaml[R20-21]

      - name: Validate TOML files
        run: tombi lint
Evidence
The workflow ends on run: tombi lint with no additional line afterward (the PR diff flags it as
missing a newline at EOF).

.github/workflows/toml-checks.yaml[19-21]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The workflow file does not end with a newline.

## Issue Context
Some linters and tooling expect text files to end with a newline, and missing it can create noisy diffs.

## Fix Focus Areas
- .github/workflows/toml-checks.yaml[20-21]
 - Ensure file ends with a newline.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@sonarqubecloud
Copy link
Copy Markdown

@openshift-ci openshift-ci bot added the lgtm label Mar 25, 2026
@openshift-merge-bot openshift-merge-bot bot merged commit 12e18ad into redhat-developer:main Mar 25, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request lgtm Review effort 2/5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants