Commit cf83007
fix: rewrite plugin.contracts.json in wfctl descriptor format; add downloads to plugin.json; add wfctl-strict-contracts CI job
- Rewrite plugin.contracts.json from legacy moduleContracts/triggerContracts
dict format to pluginContractDescriptorFile format expected by wfctl:
{version, contracts:[{kind, type, mode:"strict"}]} for all 15 modules,
64 steps, and 1 trigger type
- Add downloads[] to plugin.json (required for type:external plugins)
with linux/darwin amd64/arm64 release asset URLs for v0.3.0
- Add wfctl-strict-contracts job to .github/workflows/ci.yml that runs
`wfctl plugin validate --file plugin.json --strict-contracts`
- Update TestPlugin_ModuleContractCoverage to parse the new contracts
descriptor format (kind+type index) instead of old moduleContracts maps
wfctl validate output: OK workflow-plugin-data-engineering v0.3.0 (plugin.json)
All tests pass: go test ./... ✓ go vet ./... ✓
Agent-Logs-Url: https://github.com/GoCodeAlone/workflow-plugin-data-engineering/sessions/18d98b1e-7eba-4f0f-8446-bc1fbffb2c53
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>1 parent d804ac8 commit cf83007
4 files changed
Lines changed: 449 additions & 191 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
29 | 42 | | |
30 | 43 | | |
31 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
578 | 585 | | |
579 | 586 | | |
580 | 587 | | |
| |||
635 | 642 | | |
636 | 643 | | |
637 | 644 | | |
638 | | - | |
| 645 | + | |
639 | 646 | | |
640 | 647 | | |
641 | 648 | | |
642 | 649 | | |
643 | 650 | | |
644 | 651 | | |
645 | | - | |
646 | | - | |
| 652 | + | |
| 653 | + | |
647 | 654 | | |
648 | 655 | | |
649 | 656 | | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
650 | 663 | | |
651 | 664 | | |
652 | 665 | | |
653 | 666 | | |
654 | 667 | | |
655 | | - | |
| 668 | + | |
656 | 669 | | |
657 | 670 | | |
658 | 671 | | |
659 | 672 | | |
660 | | - | |
| 673 | + | |
661 | 674 | | |
662 | 675 | | |
663 | 676 | | |
664 | 677 | | |
665 | 678 | | |
666 | 679 | | |
667 | | - | |
| 680 | + | |
668 | 681 | | |
669 | 682 | | |
670 | 683 | | |
671 | 684 | | |
672 | | - | |
| 685 | + | |
673 | 686 | | |
674 | 687 | | |
675 | 688 | | |
| 689 | + | |
| 690 | + | |
676 | 691 | | |
677 | | - | |
678 | | - | |
| 692 | + | |
| 693 | + | |
679 | 694 | | |
0 commit comments