Skip to content

test: gen-only e2e scenarios for opt-in workflow generators#114

Merged
joshua-temple merged 2 commits into
mainfrom
test/e2e-opt-in-gen-scenarios
Jun 11, 2026
Merged

test: gen-only e2e scenarios for opt-in workflow generators#114
joshua-temple merged 2 commits into
mainfrom
test/e2e-opt-in-gen-scenarios

Conversation

@joshua-temple

Copy link
Copy Markdown
Collaborator

Adds gen-only e2e scenarios covering the opt-in workflow generators that were
previously not expressible in harness Config.

Changes

  • Extends harness Config with passthrough map fields (validate, validate_check,
    merge_queue, pr_preview, notify, external) so scenarios can declare them and
    the generator emits the corresponding workflows. Generic maps keep the harness
    decoupled from the generator struct shapes while preserving every key across the
    marshal round-trip.
  • Adds not_exists to WorkflowFileExpect so scenarios can assert a generated file
    is absent (the conditional-generation case).
  • New scenarios: 14-validate-check, 15-merge-queue, 16-pr-preview,
    17-validate-callback, hotfix/hotfix-generation-threshold (two envs),
    hotfix/hotfix-no-hotfix-single-env (one env, asserts absence).

Verification

  • go build ./... && go vet ./... clean in both the root and e2e modules.
  • e2e harness test suite passes; new scenarios parse and generate the expected
    workflow files.
  • golangci-lint run ./... clean in the e2e module.

Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
Scenario 15 was asserting the substring 'cascade orchestrate setup'
which only appears in a Go source comment, never in the generated
cascade-merge-queue.yaml. The generator emits
'cascade --dry-run orchestrate setup'; update the assertion to match
the real output and also verify the dry-run safety flag is present.

Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
@joshua-temple joshua-temple merged commit 926bd69 into main Jun 11, 2026
6 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.

1 participant