Skip to content

W-23595942: Migrate integration tests to the TCK artifact - #141

Merged
mlischetti merged 1 commit into
masterfrom
tck-cli-migration
Jul 27, 2026
Merged

W-23595942: Migrate integration tests to the TCK artifact#141
mlischetti merged 1 commit into
masterfrom
tck-cli-migration

Conversation

@mlischetti

Copy link
Copy Markdown
Contributor

What

Migrates native-cli-integration-tests from the three test@zip artifacts (runtime, yaml-module, core-modules) to the DataWeave runtime's new tck@zip artifact, available in 2.13.0-SNAPSHOT and 2.12.2-SNAPSHOT.

TCK scenarios are pre-expanded and self-contained, so the CLI test no longer manipulates the DataWeave AST.

Changes

  • build.gradle — pull runtime + yaml-module + core-modules as tck@zip (was three test@zip); drop the parser dependency (no longer needed); load each zip by its natural <module>-<ver>-tck.zip name.
  • gradle.properties — supported versions → 2.13.0-SNAPSHOT / 2.12.2-SNAPSHOT; drop support for < 2.12.
    listFiles accept filters (single non-in/out dwl, inX/outX-config.properties, groovy, config.properties); collapse the version-conditional ignoreTests (2.4–2.10 no longer supported) into a single list whose entries are the full
    <scenario>-out.<ext> directory names that acceptScenario matches on.
  • .github/workflows/main.yml — regression steps run 2.12.2-SNAPSHOT and 2.13.0-SNAPSHOT (was 2.9.8 / 2.10.0); master-only gating unchanged.

Testing

native-cli-integration-tests:test against the compiled dw binary:

  • 2.13.0-SNAPSHOT → 709 passed, 0 failed
  • 2.12.2-SNAPSHOT → 709 passed, 0 failed

🤖 Generated with Claude Code

@mlischetti
mlischetti requested a review from a team as a code owner July 27, 2026 15:38
…ifact

Migrate native-cli-integration-tests from the three test@zip artifacts
(runtime, yaml-module, core-modules) to the DataWeave runtime's new tck@zip
artifact, available in 2.13.0-SNAPSHOT and 2.12.2-SNAPSHOT. TCK scenarios are
pre-expanded and self-contained, so the CLI test no longer manipulates the AST.

- build.gradle: pull runtime + yaml-module + core-modules as tck@zip (was three
  test@zip); drop the parser dependency (no longer needed); load each zip by its
  natural <module>-<ver>-tck.zip name.
- gradle.properties: supported versions -> 2.13.0-SNAPSHOT / 2.12.2-SNAPSHOT;
  drop support for < 2.12.
- TCKCliTest.scala: remove all AST manipulation (CodeGenerator, MappingParser,
  output-directive rewriting); run transform.dwl directly; read encoding from
  the `encoding` sidecar file when present; keep the original listFiles accept
  filters (single non-in/out dwl, inX/outX-config.properties, groovy,
  config.properties); collapse the version-conditional ignoreTests (2.4-2.10 no
  longer supported) into a single list whose entries are the full
  <scenario>-out.<ext> directory names that acceptScenario matches on.
- main.yml: regression steps run 2.12.2-SNAPSHOT and 2.13.0-SNAPSHOT (was
  2.9.8 / 2.10.0); master-only gating unchanged.

Validated: native-cli-integration-tests:test -> 709 passed, 0 failed on both
2.13.0-SNAPSHOT and 2.12.2-SNAPSHOT.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mlischetti
mlischetti merged commit 9f3176c into master Jul 27, 2026
4 checks passed
@mlischetti
mlischetti deleted the tck-cli-migration branch July 27, 2026 16:09
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