Sponsored Content
Skip to content

ci: Fix rules used to determine when to upload Conan recipes - #6524

Merged
bthomee merged 10 commits into
developfrom
bthomee/upload
Mar 11, 2026
Merged

ci: Fix rules used to determine when to upload Conan recipes#6524
bthomee merged 10 commits into
developfrom
bthomee/upload

Conversation

@bthomee

@bthomee bthomee commented Mar 11, 2026

Copy link
Copy Markdown
Collaborator

High Level Overview of Change

This change fixes how rules are used to determine when to upload Conan recipes.

Context of Change

The refs as previously used pointed to the source branch, not the target branch. However, determining the target branch is different depending on the GitHub event. For pull request events, the base ref in github.pull_request.base.ref is a short ref (e.g. develop), while for pushes, the ref in github.ref is a full ref (e.g. refs/heads/develop). The pull request logic was therefore incorrect and needed to be fixed.

Moreover, after a closer inspection of when the upload workflow is called, i.e. pushes => develop, pull requests => release candidate, tag => release, the logic inside the workflow could be simplified.

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

Copilot AI review requested due to automatic review settings March 11, 2026 09:11
@bthomee
bthomee changed the base branch from develop to bthomee/repo March 11, 2026 09:12
@bthomee bthomee added the Trivial Simple change with minimal effect, or already tested. Only needs one approval. label Mar 11, 2026
@bthomee
bthomee requested a review from mathbunnyru March 11, 2026 09:13

Copilot AI 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.

Pull request overview

Updates GitHub Actions workflow gating and branch-detection logic to ensure Conan uploads/artifacts only run in the canonical XRPLF/rippled repository and to make recipe-upload branch selection more robust across event types.

Changes:

  • Replace github.repository_owner == 'XRPLF' checks with github.repository == 'XRPLF/rippled' for upload steps (Conan, artifacts, coverage).
  • Add a normalized BASE_REF to the reusable Conan recipe upload workflow and use it for develop/release* recipe selection.
  • Fix PR recipe-upload triggering to key off the PR base branch name (release branches).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/upload-conan-deps.yml Restricts Conan remote login/upload steps to only run in XRPLF/rippled.
.github/workflows/reusable-upload-recipe.yml Introduces BASE_REF normalization for branch-based recipe uploads.
.github/workflows/reusable-build-test-config.yml Restricts artifact and Codecov upload steps to only run in XRPLF/rippled.
.github/workflows/on-trigger.yml Restricts develop-branch recipe upload job to only run in XRPLF/rippled.
.github/workflows/on-tag.yml Restricts tag-triggered recipe upload job to only run in XRPLF/rippled.
.github/workflows/on-pr.yml Updates release-branch PR detection for recipe upload gating.

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

Comment thread .github/workflows/reusable-upload-recipe.yml Outdated
Comment thread .github/workflows/on-pr.yml Outdated
@codecov

codecov Bot commented Mar 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.8%. Comparing base (3baf545) to head (3268c00).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           develop   #6524     +/-   ##
=========================================
- Coverage     79.8%   79.8%   -0.0%     
=========================================
  Files          862     862             
  Lines        67881   67881             
  Branches      7549    7554      +5     
=========================================
- Hits         54194   54191      -3     
- Misses       13687   13690      +3     

see 6 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.

@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.

Copilot might have a valid point here, please take a look

Base automatically changed from bthomee/repo to develop March 11, 2026 10:48

Copilot AI 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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


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

Comment thread .github/workflows/reusable-upload-recipe.yml Outdated
Comment thread .github/workflows/reusable-upload-recipe.yml Outdated
@bthomee bthomee changed the title ci: Fix refs used to determine when to upload Conan recipes ci: Fix rules used to determine when to upload Conan recipes Mar 11, 2026
@bthomee
bthomee requested a review from Copilot March 11, 2026 12:19

Copilot AI 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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


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

Comment thread .github/workflows/reusable-upload-recipe.yml
Comment thread .github/workflows/reusable-upload-recipe.yml
@bthomee
bthomee merged commit 01c977b into develop Mar 11, 2026
3 checks passed
@bthomee
bthomee deleted the bthomee/upload branch March 11, 2026 12:44
@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
)

The refs as previously used pointed to the source branch, not the target branch. However, determining the target branch is different depending on the GitHub event. The pull request logic was incorrect and needed to be fixed, and the logic inside the workflow could be simplified. Both modifications have been made in this commit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Trivial Simple change with minimal effect, or already tested. Only needs one approval.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants