Skip to content

compat/new2old: Add CampaignIterateVariables#347

Merged
apaolillo merged 2 commits into
mainfrom
newtoolditerate
May 22, 2026
Merged

compat/new2old: Add CampaignIterateVariables#347
apaolillo merged 2 commits into
mainfrom
newtoolditerate

Conversation

@apaolillo

Copy link
Copy Markdown
Collaborator

The compat layer already adapted new-protocol benchmarks to the legacy cartesian-product engine via the existing helper. The iterate-style legacy campaign (where variables is an iterable of records (one per run) rather than a {name -> values} cross-product) had no compat path.

Add a sibling helper that accepts iterate-style records, aggregates per-name distinct values across records, and reuses _check_fetch_args to enforce that fetch parameters remain single-valued (fetch runs once during bootstrap). It returns a legacy CampaignIterateVariablesOld.

Mirror the LevelDB cartesian-helper test under iterate to exercise the new path, with a deliberately sparse set of three records (not a full cross-product) and a scatter plot.

The compat layer already adapted new-protocol benchmarks to the
legacy cartesian-product engine via the existing helper. The
iterate-style legacy campaign (where `variables` is an iterable of
records (one per run) rather than a `{name -> values}` cross-product)
had no compat path.

Add a sibling helper that accepts iterate-style records, aggregates
per-name distinct values across records, and reuses
`_check_fetch_args` to enforce that fetch parameters remain
single-valued (fetch runs once during bootstrap). It returns a
legacy `CampaignIterateVariablesOld`.

Mirror the LevelDB cartesian-helper test under iterate to exercise
the new path, with a deliberately sparse set of three records (not a
full cross-product) and a scatter plot.

Signed-off-by: Antonio Paolillo <apaolill@gmail.com>
@apaolillo apaolillo requested a review from matsvanmolle May 22, 2026 07:27
@apaolillo apaolillo self-assigned this May 22, 2026
Signed-off-by: Antonio Paolillo <apaolill@gmail.com>

@matsvanmolle matsvanmolle left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@apaolillo apaolillo merged commit c8682fd into main May 22, 2026
2 checks passed
@apaolillo apaolillo deleted the newtoolditerate branch May 22, 2026 08:55
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