Skip to content

Fix CI regression: add missing enrich_window arg to enrich_with_commerce_par call sites - #182

Merged
Likhithsai2580 merged 1 commit into
auto/round-2026-10-12T1709Zfrom
fix/auto-ci-regression-2026-10-12T1709Z
Oct 16, 2026
Merged

Likhithsai2580 merged 1 commit into
auto/round-2026-10-12T1709Zfrom
fix/auto-ci-regression-2026-10-12T1709Z

Conversation

@Likhithsai2580

Copy link
Copy Markdown
Member

Root Cause

The enrich_with_commerce_par function signature was changed to take a 4th argument (enrich_window: usize) when COMMERCE_ENRICH_WINDOW was replaced by CommerceConfig.enrich_window, but 6 call sites were not updated:

  • 2 production call sites (main /search path + second-pass enrichment)
  • 4 test call sites (parallel enrichment tests)

Also fixed the enrich_window_is_wider_than_display_cap test which still referenced the removed COMMERCE_ENRICH_WINDOW constant.

Fix

  • Added CommerceConfig::default().enrich_window as the 4th argument to all 4 test call sites
  • Added state.commerce_config.enrich_window as the 4th argument to both production call sites
  • Updated enrich_window_is_wider_than_display_cap to use CommerceConfig::default() instead of the removed constant

Verification

All 455 gateway tests pass (cargo test --locked in Docker container).

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b1981e7b-bcee-44bf-98ee-b02c3eb08c77

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • 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

Comment @coderabbitai help to get the list of available commands.

@Likhithsai2580
Likhithsai2580 merged commit ecdf114 into auto/round-2026-10-12T1709Z Oct 16, 2026
3 checks passed
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