Skip to content

Conversation

@iansltx
Copy link
Member

@iansltx iansltx commented Feb 8, 2026

This allows for grabbing a matching fleetctl for branch based builds following the convention in fleetdm/fleet#39522.

GitOps side of #39522.

OpenCode + Kimi K2.5; prompt: In .github/gitops-action/action.yml, strip anything after `-` or `+` when determining the FLEET_VERSION variable, such that 4.81.0-rc.1234567 or 4.81.0+foobar raw versions both resolve to 4.81.0.
OpenCode + Kimi K2.5; prompt: In .github/gitops-action/action.yml, pass FLEET_VERSION verbatim rather than stripping ending characters when it starts with 0.0.0-SNAPSHOT
@iansltx iansltx requested a review from getvictor as a code owner February 8, 2026 04:14
RCs won't have a fleetctl published yet, so we should fall back to the default.
@getvictor getvictor requested review from Copilot and removed request for getvictor February 8, 2026 13:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the composite GitHub Action that installs fleetctl so it can resolve the correct npm package version when the Fleet server reports a non-snapshot version with build metadata suffixes (e.g. branch builds).

Changes:

  • Treat 0.0.0-SNAPSHOT* server versions explicitly as “use the default pinned fleetctl version”.
  • Strip SemVer build metadata (+...) from non-snapshot versions before validating and selecting the npm fleetctl@<version> to install.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@getvictor
Copy link
Member

We don't release the RC version of fleetctl to npm right now. Do we need to start doing that for this to work?

@iansltx
Copy link
Member Author

iansltx commented Feb 8, 2026

We don't. I backed out the RC specific stuff so this just covers cases where we are (will be) appending build info to the end of a GA version (for branch builds).

@iansltx iansltx merged commit e54550d into main Feb 8, 2026
7 checks passed
@iansltx iansltx deleted the handle-non-ga-fleet-versions branch February 8, 2026 16:24
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