feat(ci): add --skip-tasks flag to bit ci pr#10436
Conversation
Exposes the existing builder skipTasks mechanism on `bit ci pr`, letting a PR build skip named build/publish tasks. On the throwaway PR lane the schema and preview artifacts and the npm publish aren't needed (they're regenerated on the final export to main), so skipping them speeds up the job. Wire bit_pr CI to skip ExtractSchema, GeneratePreview, GenerateEnvTemplate and PublishComponents (~8-10m). Flag is general/user-facing and reaches both the build and snap/tag pipelines.
PR Summary by Qodofeat(ci): add --skip-tasks to Description
Diagram
High-Level Assessment
Files changed (7)
|
Code Review by Qodo
1. Unvalidated skip-tasks names
|
The schema/preview artifacts and npm publish are generally useful (browsable preview, API schema, installable packages); we're deliberately skipping them on the PR validation lane to optimize for speed, not because they're never needed. They're still produced on the final export to main.
|
Code review by qodo was updated up to the latest commit 9e9b50b |
|
Code review by qodo was updated up to the latest commit 4511d7d |
|
Code review by qodo was updated up to the latest commit 08ae96c |
Exposes the builder's existing
skipTasksmechanism onbit ci prvia a new--skip-tasks <names>flag (comma-separated task names or aspect-ids). It reaches both the build pipeline and the snap/tag pipeline, so it can skip build artifacts and publishing.The schema/preview artifacts and the npm publish are generally useful (browsable preview, API schema, installable lane packages), but on our PR validation lane we deliberately trade them for speed — they're produced again on the final export to main. The
bit_prCI job now skipsExtractSchema,GeneratePreview,GenerateEnvTemplateandPublishComponents(~8-10m saved). The flag itself is general and user-facing, useful for anyone wanting faster PR builds.Stacks on top of the
--skip-cleanupwork (#10431).e2e: a control run proves the tasks run by default (non-vacuous), then
--skip-tasksis asserted to omit them while a non-skipped sibling (PackComponents) confirms the pipeline still ran.