Skip to content

test: fix fold test failures - #1106

Merged
marcpaterno merged 1 commit into
Framework-R-D:mainfrom
greenc-FNAL:hotfix/fix-fold-test-failures
Nov 24, 2026
Merged

marcpaterno merged 1 commit into
Framework-R-D:mainfrom
greenc-FNAL:hotfix/fix-fold-test-failures

Conversation

@greenc-FNAL

@greenc-FNAL greenc-FNAL commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Use a valid creator/suffix product specification in the fold adapter test.
  • Update the accumulator-only fold compile-failure test to match the current diagnostic.
  • Addresses the failures in Actions run 45234415226, reproduced on both amd64 and arm64.

Testing

  • Configured and built make_fold_like in ghcr.io/framework-r-d/phlex-dev:latest with GCC 15.3.0.
  • make_fold_like and fold_accumulator_only passed via CTest (2/2).
  • Commit hooks and the pre-push checks passed.
  • Compile-fail test (test/compile-fail/CMakeLists.txt):
    • Expected diagnostic for fold_accumulator_only_diagnostic changes from at_least_two_input_parameters to A fold function must take at least one.
    • Matches the current compile diagnostic for the accumulator-only fold case.
  • Fold adapter test (test/make_fold_like_test.cpp):
    • Handle-input test product specification changes from "product" to "test/product".
    • Uses a valid creator/suffix form.
  • Scope: 2 files, 2 lines added, 2 removed. No public declarations changed.
  • Checks: author reports make_fold_like and fold_accumulator_only pass via CTest (2/2) under GCC 15.3.0. CI results on the current head were not available.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request updates the expected diagnostic in a compile-fail test and changes the product specification used by a handle-input test.

Changes: Fold diagnostic

Layer / File(s) Summary
Update expected fold diagnostic
test/compile-fail/CMakeLists.txt
The fold_accumulator_only test now expects A fold function must take at least one.

Handle-input specification

Layer / File(s) Summary
Change handle-input product specification
test/make_fold_like_test.cpp
The handle-input test now uses test/product as its product specification.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related PRs

  • Framework-R-D/phlex#1005: Changes fold signature rules that determine the diagnostic checked by this pull request’s compile-fail test.

Suggested reviewers: beojan, knoepfel, marcpaterno

Merge Risk: Minimal · up to 7dabc

This change only updates test expectations to match current behavior. It does not affect production code, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "test: fix fold test failures" matches the main change. The PR changes the fold adapter test to use a valid creator/suffix product specification and updates the accumulator-only fold compile…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "test: fix fold test failures" matches the main change. The PR changes the fold adapter test to use a valid creator/suffix product specification and updates the accumulator-only fold compile-failure expectation to the current diagnostic text. The title names the test fixes at a general level, which is accurate for this changeset. It does not name the specific fixes, but that is acceptable for a short title.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 70854ba8-db38-40fb-a2a1-a572794c08dc
Commits

Reviewing files that changed from the base of the PR and between 2e2612d and 7dabc89.

Files selected for processing: 2

  • test/compile-fail/CMakeLists.txt
  • test/make_fold_like_test.cpp

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Recent review details

Context from checks skipped due to timeout: 7

  • GitHub Check: Analyze cpp with CodeQL
  • GitHub Check: build (gcc, none, arm64, ubuntu-24.04-arm)
  • GitHub Check: build (gcc, none, amd64, ubuntu-24.04)
  • GitHub Check: CodeRabbit
  • GitHub Check: coverage (amd64)
  • GitHub Check: coverage (arm64)
  • GitHub Check: clang-tidy-check
Additional context used

Code guidelines: 1

AGENTS.md — auto-discovered
Path-based instructions: 2

Source excerpt: gersemi or cmake-format: `dangle_align: "child"`, `dangle_parens: true`

CodeRabbit inference engine (AGENTS.md)

Files:

  • test/compile-fail/CMakeLists.txt
Source excerpt: **Authoritative sources**: `.clang-format` and `.clang-tidy` are the ground truth for formatting and naming.

CodeRabbit inference engine (AGENTS.md)

Files:

  • test/make_fold_like_test.cpp

@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@            Coverage Diff             @@
##             main    #1106      +/-   ##
==========================================
- Coverage   91.57%   91.45%   -0.12%     
==========================================
  Files         184      185       +1     
  Lines        6062     6073      +11     
  Branches      973      973              
==========================================
+ Hits         5551     5554       +3     
- Misses        325      331       +6     
- Partials      186      188       +2     
Flag Coverage Δ
amd64 91.45% <ø> (-0.12%) ⬇️
arm64 91.45% <ø> (-0.12%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 2 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e2612d...7dabc89. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@marcpaterno
marcpaterno self-requested a review November 24, 2026 17:04
@marcpaterno
marcpaterno merged commit 5a73c5c into Framework-R-D:main Nov 24, 2026
42 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.

2 participants