Skip to content

[fork test, do not merge] mutants workflow: green case - #13

Closed
edmondop wants to merge 3 commits into
mainfrom
mutants-test-green
Closed

edmondop wants to merge 3 commits into
mainfrom
mutants-test-green

Conversation

@edmondop

Copy link
Copy Markdown
Owner

Throwaway PR inside the fork to exercise .github/workflows/mutants.yml. Expected: green.

edmondop and others added 2 commits November 13, 2026 20:08
Adds an advisory workflow that mutates only the lines a PR changes. It
tests each mutant against its own package's tests, then retests the
survivors against the datafusion core tests and sqllogictest, and lists
mutants that no test caught in the job summary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TAeJdSfRAQtKMjuAtTDnuH
(cherry picked from commit e7ab040)
…pache#26716)

## Which issue does this PR close?

- Part of apache#26299

## Rationale for this change

Step 1 from the issue. The per-child closure in
`ensure_distribution_with_stats` works out several flags inline
(`allow_subset_satisfy_partitioning`, `add_roundrobin`,
`needs_repartition`, ...). They depend on each other and can only be
tested through full plan tests right now. This moves them into one place
so they can be unit tested. No behaviour change.

## What changes are included in this PR?

- `ChildPolicyConfig`: the settings that are the same for every child.
- `ChildPolicy::new`: works out the flags for one child. The partial
aggregate check (including the
`partial_aggregate_input_keeps_groups_local` case from apache#26449) is passed
as a closure, so it still only runs when it did before.
- `ChildPolicy::needs_hash_repartition`: the repartition decision from
the hash arm.
- The closure now uses these. The rest of the function is unchanged.

## What is the testing strategy for this PR?

New unit tests in `enforce_distribution.rs` for the flags. The existing
`physical_optimizer` tests and sqllogictests pass without changes.

<!-- screenshot: cargo test -p datafusion-physical-optimizer --lib --
enforce_distribution -->

## Are there any user-facing changes?

No

(cherry picked from commit 4c7b307)
@edmondop edmondop closed this Nov 14, 2026
@edmondop edmondop reopened this Nov 14, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TAeJdSfRAQtKMjuAtTDnuH
(cherry picked from commit b7282e6)
@github-actions github-actions Bot added documentation Improvements or additions to documentation optimizer development-process labels Nov 14, 2026
@edmondop

Copy link
Copy Markdown
Owner Author

Fork-only test of the mutants workflow; done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development-process documentation Improvements or additions to documentation optimizer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants