Pr/upload script parallel#5
Open
asarkar157 wants to merge 3 commits into
Open
Conversation
Refactor upload_stackgen_modules.sh for significantly faster bulk uploads: - Parallel uploads via xargs -P (default: 10 concurrent, tunable with --parallel) - Retry logic with exponential backoff (3 attempts per module) - Thread-safe progress counter using mkdir-based spinlock (works on macOS + Linux) - Fail-at-end instead of fail-fast: collects all errors, reports summary - Structured summary report (succeeded/skipped/failed counts) New flags: --parallel <N> Set concurrency level (default: 10) --provider <name> Filter to a single provider (aws, azurerm, gcp) --version <ver> Set module version string --overwrite-version Overwrite existing version instead of skipping Performance: reduces upload time from ~60 min to ~5 min for 800+ modules.
Document upload_stackgen_modules.sh with complete flag reference, usage examples, and explanation of internals (parallelism, retry logic, progress tracking). Also documents bulk-tag-modules.sh and other support files.
Sync the Options table and Behavior section with the current script: - Add --provider, --version, --overwrite-version, --parallel flags - Document parallel uploads, retry logic, and fail-at-end behavior - Add Default column to the flags table - Reference tools/README.md for detailed docs - Add bulk-tag-modules.sh to Tools section
jaingounchained
approved these changes
May 8, 2026
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.
performance optimization for upload script (10x upload parallelism by default) and argline flag maintenance