Skip to content

Fix cmake testPresets filter syntax. - #378

Merged
rfrm-opendap merged 1 commit into
masterfrom
fix/cmake-presets-syntax
Oct 23, 2026
Merged

rfrm-opendap merged 1 commit into
masterfrom
fix/cmake-presets-syntax

Conversation

@rfrm-opendap

Copy link
Copy Markdown
Contributor

Fix cmake testPresets filter syntax.

Description

The specification for the unit/int tests in the cmake presets used an unknown "includeLabel" field. This would cause some tools, like the cmake-tools vscode plugin, to error and not work. The fix is to use the "include"+"label" regex specification to get equivalent functionality.

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2d37d36e-ab70-4310-9ce7-954b81179c56
📥 Commits

Reviewing files that changed from the base of the PR and between 6bdea5a and 40d3fb0.

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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3bdfa518-f77e-4d0b-845c-8f45fdb43b8e
📥 Commits

Reviewing files that changed from the base of the PR and between cc9f47c and 6bdea5a.

📒 Files selected for processing: 1
  • CMakePresets.json

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

📝 Summary
  • Replaced unsupported includeLabel filters in the unit and int CMake test presets.
  • Added equivalent include.label filters for unit and integration tests.
  • Prevented preset errors in CMake tools.
Author Lines added Lines removed
René Ferdinand Rivera Morell 2 2

The unit and int test presets now filter tests with include objects. The selected labels remain unit and integration.

Changes: Test preset filters

Layer / File(s) Summary
Update test preset label selection
CMakePresets.json
The unit and int presets use include objects instead of includeLabel arrays. Their selected labels remain unchanged.

Priority: ⬇️ Low

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

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 6bdea

No actionable merge-blocking risk is identified in this preset syntax correction.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description explains the syntax issue and the replacement approach, but it omits the required reference ticket and Tasks sections from the repository template. Add the required Reference ticket entry, include the Tasks checklist, and confirm the relevant checklist items. Add the template title section if the repository requires the full template structure.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: correcting the CMake test preset filter syntax.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • 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

A rabbit checks the labels with care,
“Unit” and “integration” are there.
The presets now use a new shape,
While test selection keeps its place.
I hop away, content and neat.

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

@jgallagher59701

Copy link
Copy Markdown
Member

To address the pre-commit issue, checkout the README-pre-commit.md. Either you love it or you hate it...

The Travis failure might be a Travis issue - sometimes it gets stuck. I restarted the task.

@rfrm-opendap

Copy link
Copy Markdown
Contributor Author

To address the pre-commit issue, checkout the README-pre-commit.md. Either you love it or you hate it...

I usually like pre-commit hooks. I'll check on the readme. But, this case is complaining about a file that's no part of the PR https://github.com/OPENDAP/libdap4/actions/runs/39656215275/job/119417063181?pr=378#step:4:273. Perhaps I could fix that in a different PR and rebase this one? As I don´t like mixing unrelated changes.

The Travis failure might be a Travis issue - sometimes it gets stuck. I restarted the task.

Interesting.

@rfrm-opendap

Copy link
Copy Markdown
Contributor Author

#379 fixes the pre-commit problem.

The specification for the unit/int tests in the cmake presets used an unknown "includeLabel" field. This would cause some tools, like the cmake-tools vscode plugin, to error and not work. The fix is to use the "include"+"label" regex specification to get equivalent functionality.
@rfrm-opendap
rfrm-opendap force-pushed the fix/cmake-presets-syntax branch from 6bdea5a to 40d3fb0 Compare October 22, 2026 20:45
@sonarqubecloud

Copy link
Copy Markdown

@ndp-opendap ndp-opendap left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woo!

@jgallagher59701 jgallagher59701 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@rfrm-opendap
rfrm-opendap merged commit 343c4e3 into master Oct 23, 2026
7 checks passed
@rfrm-opendap
rfrm-opendap deleted the fix/cmake-presets-syntax branch October 23, 2026 13:52
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.

3 participants