fix(ci): upload both GA and preview tarballs in prerelease workflow#1386
Conversation
The bundle script now produces two tarballs (GA + preview) but the prerelease workflow only uploaded the first one it found. Upload both and include install commands in the release notes. Constraint: bundle.mjs names GA as *-<timestamp>.tgz and preview as *-preview-<timestamp>.tgz Confidence: high Scope-risk: narrow
|
Claude Security Review: no high-confidence findings. (run) |
Package TarballHow to installgh release download pr-1386-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-0.15.0.tgz |
agentcore-cli-automation
left a comment
There was a problem hiding this comment.
Reviewed the workflow change. The tarball naming logic correctly distinguishes between GA (aws-agentcore-<base>-<timestamp>.tgz) and preview (aws-agentcore-<base>-preview-<timestamp>.tgz) artifacts produced by scripts/bundle.mjs, and grep -v preview is the effective differentiator since both names match the digit-suffix glob. The notes heredoc indentation works out correctly after YAML block-scalar stripping (10 spaces) — the rendered markdown will have flush-left fenced code blocks. Concurrency group prevents the delete-then-create race.
LGTM.
Coverage Report
|
The test starts a dev server, waits up to 20s for health check, then runs two invoke calls. On slow CI runners 30s total is insufficient. Confidence: high Scope-risk: narrow
|
Claude Security Review: no high-confidence findings. (run) |
| devProcess.kill('SIGTERM'); | ||
| devProcess = null; | ||
| }, | ||
| 30000 |
There was a problem hiding this comment.
is this an unrelated fix? I saw this timing out so I think its welcome.
Summary
prerelease-tarballworkflow now uploads both the GA and preview tarballs to theprereleaseGitHub release tagnpm run bundleadded in feat: compile-time feature flag for preview/GA consolidation #1341Test plan
workflow_dispatchand verify both tarballs appear on theprereleasereleasenpm install -g <ga-url>npm install -g <preview-url>agentcore invoke --helpon GA build shows no harness optionsagentcore invoke --helpon Preview build shows harness options