Skip to content

fix: prevent dev build versions from being pinned in action.yml - #790

Merged
waynesun09 merged 2 commits into
mainfrom
fix-dev-version-pin
May 9, 2026
Merged

fix: prevent dev build versions from being pinned in action.yml#790
waynesun09 merged 2 commits into
mainfrom
fix-dev-version-pin

Conversation

@waynesun09

Copy link
Copy Markdown
Member

Summary

  • Local builds produce git-describe versions like v0.7.0-58-g4273effb that get pinned into the scaffolded action.yml version input default. When workflows run in GitHub Actions, they try to download this nonexistent release from github.com/fullsend-ai/fullsend/releases and fail.
  • Replace the exact "dev" string check in pinVersionInAction with a regex that only pins clean semver release tags (v1.2.3 or 1.2.3). All other versions — dev, git-describe output, dirty builds, bare commit hashes — fall back to "latest" with a warning.

Test plan

  • Existing tests pass: PinsCliVersion (clean v0.2.0), DevVersionFallsBackToLatest, EmptyVersionKeepsLatest, ReinstallUpdatesVersion
  • New test GitDescribeVersionFallsBackToLatest covers: v0.7.0-58-g4273effb, v0.7.0-dirty, v0.7.0-3-g1234567-dirty, 4273effb
  • go vet ./... clean

Local builds produce git-describe versions like v0.7.0-58-g4273effb
that get pinned into the scaffolded action.yml. When workflows run,
they try to download this nonexistent release and fail.

Replace the exact "dev" string check with a regex that only pins
clean release tags (v1.2.3 or 1.2.3). All other versions — dev,
git-describe output, dirty builds, bare commit hashes — fall back
to "latest" with a warning.

Signed-off-by: Wayne Sun <gsun@redhat.com>
@github-actions

github-actions Bot commented May 9, 2026

Copy link
Copy Markdown

fullsend review is working on this — view logs

@github-actions

github-actions Bot commented May 9, 2026

Copy link
Copy Markdown

Site preview

Preview: https://181eeeed-site.fullsend-ai.workers.dev

Commit: e8e5301b2438bd6481537f31bb02c5dc4f1033cd

@ralphbean ralphbean left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean, well-scoped bug fix. The whitelist approach (regex for clean semver tags) is a better design than the previous blacklist ("dev" only). Tests cover the real-world git-describe patterns that caused the issue. Two minor notes inline about test coverage gaps — neither is blocking.

LGTM — approving.

Comment thread internal/layers/workflows_test.go
Comment thread internal/layers/workflows_test.go
Address review feedback by adding "dev" and "v1.0.0-rc.1" to the
GitDescribeVersionFallsBackToLatest test slice, making coverage of the
new code path explicit.

Signed-off-by: Wayne Sun <gsun@redhat.com>
@github-actions

github-actions Bot commented May 9, 2026

Copy link
Copy Markdown

fullsend review is working on this — view logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants