fix(marketplace-auto-review): filter to workflow-shaped YAMLs + register providers#1645
Conversation
… register providers Two false-positive sources in validate-schema: 1. Provider registry empty when parseWorkflow runs standalone. The CLI normally populates it at startup; this script must call registerBuiltinProviders + registerCommunityProviders or every workflow with provider: claude gets rejected with Unknown provider claude. Registered. 2. Non-workflow YAMLs were being parsed as workflows. Directory submissions ship brand.yaml, config.yaml, template scaffolds alongside the workflow file. parseWorkflow rejects these for missing required workflow fields. Filter to YAMLs with a top-level nodes: block before calling parseWorkflow. Tested locally against PR #1639 submission: now returns valid: true with only video-generic.yaml validated, vs the previous 4 false-positive errors.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe marketplace validation script now registers workflow providers upfront for provider field validation, introduces a ChangesMarketplace Validation Schema
🎯 2 (Simple) | ⏱️ ~10 minutes
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
… register providers (coleam00#1645) Two false-positive sources in validate-schema: 1. Provider registry empty when parseWorkflow runs standalone. The CLI normally populates it at startup; this script must call registerBuiltinProviders + registerCommunityProviders or every workflow with provider: claude gets rejected with Unknown provider claude. Registered. 2. Non-workflow YAMLs were being parsed as workflows. Directory submissions ship brand.yaml, config.yaml, template scaffolds alongside the workflow file. parseWorkflow rejects these for missing required workflow fields. Filter to YAMLs with a top-level nodes: block before calling parseWorkflow. Tested locally against PR coleam00#1639 submission: now returns valid: true with only video-generic.yaml validated, vs the previous 4 false-positive errors.
Two false-positive sources surfaced when running auto-review against PR #1639. (1) Provider registry empty when parseWorkflow runs standalone — every 'provider: claude' workflow got rejected. (2) Non-workflow YAMLs (brand.yaml, config.yaml, template scaffolds) were validated against the workflow schema. Filter to YAMLs with a top-level nodes: block; register providers before parseWorkflow. Tested locally against PR #1639 submission: now returns valid:true with only video-generic.yaml validated. Sixth iteration.
Summary by CodeRabbit