Feat/parallel execution#176
Draft
Budaa wants to merge 4 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR: Add batch & optional-parallel publish + --no-diff flag
Summary
This PR makes the
zappifest publishcommand safe and convenient for monorepos and CI by:--manifest).parallelgem (--parallel NUM).--no-diffto skip showing diffs for existing plugins (useful for CI).Motivation
Publishing many plugins from a monorepo previously triggered repeated network calls and interactive prompts which made automated workflows slow and flaky. This patch reduces the "startup tax" and adds optional parallelism while keeping the original interactive and single-manifest flows intact.
High-level changes
zappifest publishnow accepts both:zappifest publish packages/**/manifests/*.json) and--manifest <path>option.--parallel NUMis optional; if omitted the command runs sequentially.--no-diffskips the interactive diff for updates.Files changed / added
lib/zappifest.rbcommand :publishto accept multiple manifest paths, optional--parallel, and--no-diff.process_single_manifestfor per-plugin processing and clear logging (with[path]prefixes).lib/plugin_version.rbinitializenow reads cached metadata fromoptions(if provided) and falls back to the existing network calls for backwards compatibility.Gemfileparallelto ensure optional parallel runs work in CI/environments where bundler is used.scripts/test_publish.rb--no-diffbehavior.PR_MESSAGE.md(this file)Behavior (compatibility & safety)
--parallelthe command runs sequentially; diffs are shown for updates unless you pass--no-diff.--manifestwill continue to work.Execution examples