Skip to content

Branch coverage experiment#4191

Draft
ScottDugas wants to merge 5 commits into
FoundationDB:mainfrom
ScottDugas:branch-coverage-experiment
Draft

Branch coverage experiment#4191
ScottDugas wants to merge 5 commits into
FoundationDB:mainfrom
ScottDugas:branch-coverage-experiment

Conversation

@ScottDugas
Copy link
Copy Markdown
Collaborator

No description provided.

RobertBrunel and others added 5 commits May 13, 2026 15:10
…dicates

Extend `Expression.Utils.toUnderlyingPredicate()` to handle value types other than `BooleanValue`, in particular `ConstantObjectValue` and `NullValue`. Among other boolean expression types, this fixes a gap that prevented a `TRUE`, `FALSE`, or `NULL` literal from being used directly as a `WHERE` or `JOIN … ON` predicate.

Testing:
* `join-tests.yamsql` covers `WHERE {TRUE|FALSE|NULL}` and `JOIN … ON {TRUE|FALSE|NULL}`.
* `boolean-ddl.yamsql` exercises the “for DDL” code path via `CREATE INDEX … WHERE {TRUE|FALSE|NULL}`.

Resolves FoundationDB#4150.
The data was already gathered via JaCoCo so this just exposes it
in the same way as the line coverage. branch coverage is omitted if
the changed lines have no branches.
With the branch coverage it's a bit length and hard to read, use
two lines.
@github-actions
Copy link
Copy Markdown

📊 Metrics Diff Analysis Report

Summary

  • New queries: 6
  • Dropped queries: 0
  • Plan changed + metrics changed: 0
  • Plan unchanged + metrics changed: 0
ℹ️ About this analysis

This automated analysis compares query planner metrics between the base branch and this PR. It categorizes changes into:

  • New queries: Queries added in this PR
  • Dropped queries: Queries removed in this PR. These should be reviewed to ensure we are not losing coverage.
  • Plan changed + metrics changed: The query plan has changed along with planner metrics.
  • Metrics only changed: Same plan but different metrics

The last category in particular may indicate planner regressions that should be investigated.

New Queries

Count of new queries by file:

  • yaml-tests/src/test/resources/join-tests.metrics.yaml: 6

@ScottDugas ScottDugas added the build improvement Improvement to the build system label May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build improvement Improvement to the build system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants