Skip to content

fix(runner): run a module that a test case lists more than once - #792

Merged
chinmayajha merged 1 commit into
mozarkai:mainfrom
chinmayajha:fix/repeated-module-in-test-case
Nov 28, 2026
Merged

chinmayajha merged 1 commit into
mozarkai:mainfrom
chinmayajha:fix/repeated-module-in-test-case

Conversation

@chinmayajha

@chinmayajha chinmayajha commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

A test case that lists the same module twice stopped the run and the dry run with E0701, because the runner found a module's result by its name and the second occurrence got the first one's result. A module result now carries its node's id and is found by that id.

Confidence Score: 5/5 · The PR appears safe to merge and fixes a real failure when a test case repeats a module.RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge and fixes a real failure when a test case repeats a module.

Summary

This fix is needed: matching modules by name selected the first occurrence’s result, leaving the second occurrence’s keyword ID unmatched.

  • Repeated modules in a test case keep separate results.

No actionable issues were found. Tests were not run during this review.

Reviews (1) · Last reviewed commit: "fix(runner): run a module that a test ca..." · Reviewed by Greptile

The runner found a module's result by its name, so a second occurrence got the first one's result, whose keyword ids are different, and the run and the dry run stopped with E0701. A module result now carries its node's id and is found by that id.
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 55 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1c3e344f-7be6-47c8-901a-d5ce003e88d9
Commits

Reviewing files that changed from the base of the PR and between 49f8092 and 0738c62.

Files selected for processing: 4

  • CLAUDE.md
  • optics_framework/common/runner/printers.py
  • optics_framework/common/runner/test_runnner.py
  • tests/integration/test_run_report.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@sonarqubecloud

Copy link
Copy Markdown

@chinmayajha
chinmayajha merged commit 26999c3 into mozarkai:main Nov 28, 2026
14 checks passed
@chinmayajha
chinmayajha deleted the fix/repeated-module-in-test-case branch November 28, 2026 13:56
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.

1 participant