Sponsored Content
Skip to content

ci: Upload Conan recipe for merges into develop and commits to release - #6235

Merged
bthomee merged 15 commits into
developfrom
bthomee/upload
Jan 21, 2026
Merged

ci: Upload Conan recipe for merges into develop and commits to release#6235
bthomee merged 15 commits into
developfrom
bthomee/upload

Conversation

@bthomee

@bthomee bthomee commented Jan 16, 2026

Copy link
Copy Markdown
Collaborator

High Level Overview of Change

This change uploads the libxrpl library as a Conan recipe to our remote when (i) merging into the develop branch, (ii) committing to a PR that targets a release* branch, and (iii) a versioned tag is applied. Clio is only notified in the second case. The user and channel are no longer used when uploading the recipe.

Context of Change

We have downstream uses for the libxrpl library, but currently only upload the recipe to check for compatibility with Clio when making commits to a PR that targets the release branch.

  • A generate-version action is added, which extracts the build version from BuildInfo.cpp and appends the short 7-character commit hash to it for merges into the develop branch and for commits to a PR that targets a release* branch. When a tag is applied, however, the tag itself is used as the version. This functionality has been turned into a separate action as we will use the same versioning logic for creating .rpm and .deb packages, as well as Docker images.
  • An upload-recipe action is added, which calls the generate-version action and further handles the uploading of the recipe to Conan.
  • This action is called by both the on-pr and on-trigger workflows, and a new on-tag workflow.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Performance (increase or change in throughput and/or latency)
  • Tests (you added tests for code that already exists, or your new feature included in this PR)
  • Documentation update
  • Chore (no impact to binary, e.g. .gitignore, formatting, dropping support for older tooling)
  • Release

@codecov

codecov Bot commented Jan 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.4%. Comparing base (5e80879) to head (83e96ab).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           develop   #6235   +/-   ##
=======================================
  Coverage     79.4%   79.4%           
=======================================
  Files          839     839           
  Lines        71634   71634           
  Branches      8238    8237    -1     
=======================================
+ Hits         56858   56859    +1     
+ Misses       14776   14775    -1     

see 3 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread .github/actions/generate-version/action.yml Outdated
Comment thread .github/actions/upload-recipe/action.yml Outdated
Comment thread .github/workflows/reusable-upload-recipe.yml Outdated
Comment thread .github/workflows/on-pr.yml Outdated
Comment thread .github/actions/upload-recipe/action.yml Outdated
Comment thread .github/actions/generate-version/action.yml
@bthomee
bthomee requested a review from legleux January 20, 2026 19:33

@kuznetsss kuznetsss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, just one question

Comment thread .github/workflows/reusable-upload-recipe.yml
@bthomee
bthomee requested a review from mathbunnyru January 21, 2026 18:37
Comment thread .github/actions/generate-version/action.yml Outdated

@mathbunnyru mathbunnyru left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wrote a comment above, please take a look

@bthomee
bthomee merged commit a37c556 into develop Jan 21, 2026
3 checks passed
@bthomee
bthomee deleted the bthomee/upload branch January 21, 2026 22:31
bthomee added a commit that referenced this pull request Jan 22, 2026
During several iterations of development of #6235, the commit hash was supposed to be moved into the `run:` statement, but it slipped through the cracks and did not get added. This change adds the commit hash as suffix to the Conan recipe version.
@mvadari mvadari added this to the 3.2.0 milestone May 20, 2026
beartec-jpg pushed a commit to beartec-jpg/FalconLedger that referenced this pull request Jun 1, 2026
XRPLF#6235)

This change uploads the `libxrpl` library as a Conan recipe to our remote when (i) merging into the `develop` branch, (ii) committing to a PR that targets a `release*` branch, and (iii) a versioned tag is applied. Clio is only notified in the second case. The user and channel are no longer used when uploading the recipe.

Specific changes are:
* A `generate-version` action is added, which extracts the build version from `BuildInfo.cpp` and appends the short 7-character commit hash to it for merges into the `develop` branch and for commits to a PR that targets a `release*` branch. When a tag is applied, however, the tag itself is used as the version. This functionality has been turned into a separate action as we will use the same versioning logic for creating .rpm and .deb packages, as well as Docker images.
* An `upload-recipe` action is added, which calls the `generate-version` action and further handles the uploading of the recipe to Conan.
* This action is called by both the `on-pr` and `on-trigger` workflows, and a new `on-tag` workflow.

The reason for this change is that we have downstream uses for the `libxrpl` library, but currently only upload the recipe to check for compatibility with Clio when making commits to a PR that targets the release branch.
beartec-jpg pushed a commit to beartec-jpg/FalconLedger that referenced this pull request Jun 1, 2026
During several iterations of development of XRPLF#6235, the commit hash was supposed to be moved into the `run:` statement, but it slipped through the cracks and did not get added. This change adds the commit hash as suffix to the Conan recipe version.
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.

4 participants