LLM code reviews, on Forgejo, are unnecessarily verbose

An example is:

It states:

AI Code Review

Detailed Code Review

The task accurately uses ansible.builtin.replace to point production Fedora Accounts URLs to staging on staging environments. The replacement pattern accounts\.fedoraproject\.org is specific enough to avoid unintended text replacement, and because accounts.stg.fedoraproject.org will not match the pattern on subsequent runs, the task remains idempotent.

The commit history indicates that staging quoting requested in review discussions has been addressed via when: env == "staging". The notify handler and tags match existing role conventions.

:open_file_folder: File Reviews

[details=“:page_facing_up: `roles/ipsilon/tasks/main.yml` - Adds a task to rewrite production Fedora Accounts URLs to staging in template files when the environment is staging.”]

:white_check_mark: Summary

  • Overall Assessment: No critical or blocking issues identified. The task is idempotent, properly conditionalized on the staging environment, and addresses previous review feedback.

:robot: AI Code Review | Generated with ai-code-review | Model: gemini-3.7-flash

:warning: AI-generated suggestions may be incorrect. Verify before applying. Not a replacement for human review.

Instead, could it be something similar to the undermentioned?

AI Code Review

  • Overall Assessment

    No critical or blocking issues identified. The task is idempotent, properly conditionalized on the staging environment, and addresses previous review feedback.

  • Detailed Code Review

    roles/ipsilon/tasks/main.yml adds a task to rewrite production Fedora Accounts URLs to staging in template files when the environment is staging.

    The task accurately uses ansible.builtin.replace to point production Fedora Accounts URLs to staging on staging environments. The replacement pattern accounts\.fedoraproject\.org is specific enough to avoid unintended text replacement, and because accounts.stg.fedoraproject.org will not match the pattern on subsequent runs, the task remains idempotent.

    The commit history indicates that staging quoting requested in review discussions has been addressed via when: env == "staging". The notify handler and tags match existing role conventions.

  • Environment

AI-generated suggestions may be incorrect. Verify before applying. Not a replacement for human review.

I ask because I swear that less emojis are more readable, and that no need for so many sections exists, when they barely contain anything.

Hmm..

because this is a forge action, that infra team has chosen to use. Isn’t this a discussion best posed to the infra team concerning adjustments to their action workflow or to the upstream project the action makes use of?

I’m still not an expert in forgejo actions so I can’t be a reliable help on pointing you to exactly the correct location for action configuration if this is tunable via config..

This is the obvious place to start:
https://forge.fedoraproject.org/infra/ansible/src/branch/main/.forgejo/workflows/ai-review.yaml

But my reading of that.. I’m not sure on simple inspection where the referenced
quality/workflows/.forgejo/workflows/ai-review.yml

I have more experience with github actions, so please forgive me as I’m also learning how to grok forgejo action language with enough proficiency to trace how workflow configs layer.

the upstream tool code looks to be:
https://gitlab.com/redhat/edge/ci-cd/ai-code-review

But I would naively hope this is something tunable with the action config.. i just can’t quickly point to it.

I will say.. i LOVE the label based opt-in action approach to this. This feels like the right way to introduce this sort of tool. Humans are making a choice via a label to engage with an assistive review tool. Hopefully the configuration is tunable.

1 Like

I do have to agree that the use of emojis is distracting.

1 Like

Those reviews are somewhat verbose (but less so than they used to be actually).

I personally don’t mind the emojis and the reviews are for the infrastructure team / folks reviewing that pull request, so if thats not you I would just ignore them?

They were setup by @adamwill I don’t know if he has any improvements planned…

The workflow is in Making sure you're not a bot! , but the output format is determined by the upstream tool, ai-code-review. The maintainer is responsive, so you could send a pull request to change the default output format, or add options for it.