Skip to content

ci: add release-please configuration#14

Merged
korniltsev-grafanista merged 13 commits intomainfrom
kk/release-please
Apr 3, 2026
Merged

ci: add release-please configuration#14
korniltsev-grafanista merged 13 commits intomainfrom
kk/release-please

Conversation

@korniltsev-grafanista
Copy link
Copy Markdown
Collaborator

Adds release-please to automate version bumps, changelog generation, and tag creation.

  • release type: ruby (natively updates lib/pyroscope/version.rb)
  • component: ruby → tags: ruby-X.Y.Z (no v prefix)
  • extra-files: ext/rbspy/Cargo.toml via generic marker
  • skip-github-release: true — only creates tags, existing release.yml handles draft GitHub releases
  • includes update-lockfile job to keep Cargo.lock in sync for cargo test --locked
  • bootstrap-sha set to current HEAD to avoid huge first changelog

korniltsev-grafanista and others added 2 commits April 2, 2026 23:01
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

This comment has been minimized.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

This comment has been minimized.

- Add package-name: pyroscope so ruby type finds lib/pyroscope/version.rb
- Use explicit generic type for extra-files to fix Cargo.toml version updates

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

This comment has been minimized.

The ruby release type looks for lib/ruby/version.rb (using component name)
instead of lib/pyroscope/version.rb. Adding it as a generic extra-file with
the x-release-please-version marker ensures it gets updated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

This comment has been minimized.

korniltsev-grafanista and others added 3 commits April 3, 2026 09:45
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@korniltsev-grafanista
Copy link
Copy Markdown
Collaborator Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 54b8f29f36

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +19 to +22
uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Pass a PAT token to release-please action

This step omits the token input, so googleapis/release-please-action falls back to GITHUB_TOKEN; per the action’s docs, tags/PRs created with that token do not trigger other workflows. In this repo the new config sets skip-github-release: true, so the release handoff depends on the ruby-* tag push triggering .github/workflows/release.yml; with the default token that tag push will not fan out, and the gem release pipeline will stop after the release PR is merged.

Useful? React with 👍 / 👎.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@korniltsev-grafanista korniltsev-grafanista marked this pull request as ready for review April 3, 2026 22:34
@korniltsev-grafanista korniltsev-grafanista requested review from a team as code owners April 3, 2026 22:34
Base automatically changed from kk/import2 to main April 3, 2026 22:34
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7292af9ad6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/pyroscope/version.rb Outdated
@@ -1,3 +1,7 @@
module Pyroscope
<<<<<<< HEAD
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P0 Badge Remove merge-conflict markers from version file

lib/pyroscope/version.rb now contains unresolved conflict markers, which makes the file invalid Ruby and raises a SyntaxError as soon as the version file is loaded. Any runtime path that requires this file (including gem initialization) will fail immediately, so the release produced from this commit is unusable until the conflict markers are removed.

Useful? React with 👍 / 👎.

Comment thread ext/rbspy/Cargo.toml Outdated
@@ -1,6 +1,10 @@
[package]
name = "ffiruby"
<<<<<<< HEAD
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Remove merge-conflict markers from Cargo manifest

ext/rbspy/Cargo.toml includes unresolved conflict markers, so Cargo cannot parse the manifest (key with no value, expected '='). This breaks Rust-based tasks in this repo (e.g., the new lockfile update step and any native extension build/test path using this manifest) until the markers are resolved.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6e2c268c0a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ext/rbspy/Cargo.toml
[package]
name = "ffiruby"
version = "1.0.1"
version = "1.0.1" # x-release-please-version
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep Cargo version line free of trailing marker text

Adding # x-release-please-version to the version line makes the existing make check/tag-version parser misread CARGO_VERSION: sed in Makefile:40 replaces only the matched prefix and leaves the trailing comment, producing 1.0.1 # x-release-please-version instead of 1.0.1. The release workflow runs this check in .github/workflows/release.yml (“Verify tag matches package version”), so every ruby-* tag release will fail before artifacts are built.

Useful? React with 👍 / 👎.

@korniltsev-grafanista korniltsev-grafanista merged commit 878995f into main Apr 3, 2026
27 checks passed
@cursor cursor bot mentioned this pull request Apr 7, 2026
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