Skip to content

ci: gate Ubuntu backup runners on UBUNTU_BACKUP_ENABLED variable#3306

Merged
QuantumExplorer merged 1 commit into
v3.1-devfrom
ci/ubuntu-backup-toggle
Mar 15, 2026
Merged

ci: gate Ubuntu backup runners on UBUNTU_BACKUP_ENABLED variable#3306
QuantumExplorer merged 1 commit into
v3.1-devfrom
ci/ubuntu-backup-toggle

Conversation

@QuantumExplorer

@QuantumExplorer QuantumExplorer commented Mar 15, 2026

Copy link
Copy Markdown
Member

Summary

  • All Ubuntu backup jobs (test shards, formatting/linting, doctests) now only run when repository variable UBUNTU_BACKUP_ENABLED is true
  • Toggle at Settings > Variables > Actions — no code changes needed
  • When Mac runners are healthy: leave unset or false (saves ~6 Ubuntu runners per PR)
  • When Mac runners are down: set to true to enable fallback

Setup

  1. Go to https://github.com/dashpay/platform/settings/variables/actions
  2. Add variable UBUNTU_BACKUP_ENABLED with value true or false
  3. If not set, defaults to disabled (Ubuntu backups don't run)

Test plan

  • Verify Ubuntu backup jobs are skipped when variable is unset/false
  • Verify Ubuntu backup jobs run when variable is true

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated continuous integration workflows to conditionally execute test and lint jobs based on environment configuration settings.

All Ubuntu backup jobs (test shards, formatting/linting, doctests)
now only run when the repository variable UBUNTU_BACKUP_ENABLED is
set to 'true'. Toggle at Settings > Variables > Actions to enable
when Mac runners are down, disable to save runner costs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added this to the v3.1.0 milestone Mar 15, 2026
@coderabbitai

coderabbitai Bot commented Mar 15, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

Pull request was closed or merged during review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d2adaece-84da-4d53-ba4b-630473a2486e

📥 Commits

Reviewing files that changed from the base of the PR and between 755cbe2 and d297d9d.

📒 Files selected for processing (2)
  • .github/workflows/tests-rs-doctests.yml
  • .github/workflows/tests-rs-workspace.yml

📝 Walkthrough

Walkthrough

GitHub Actions workflow configuration files are updated to add conditional execution guards. The changes introduce if: env.UBUNTU_BACKUP_ENABLED == 'true' conditions to specific CI/CD jobs, controlling when they execute based on an environment variable setting.

Changes

Cohort / File(s) Summary
GitHub Actions Conditional Guards
.github/workflows/tests-rs-doctests.yml, .github/workflows/tests-rs-workspace.yml
Added environment variable conditionals (UBUNTU_BACKUP_ENABLED == 'true') to job execution. Doctests backup job gains one condition; test-ubuntu and lint-ubuntu jobs each gain a condition. Jobs skip execution when the environment variable is false.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 When workflows need a guard so wise,
Environment checks open our eyes,
Ubuntu backups dance to the tune,
Of conditional flags—skip or soon!
A hop, a skip, let jobs align,
With toggles that make workflows shine! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: adding conditional logic to gate Ubuntu backup runners on the UBUNTU_BACKUP_ENABLED variable.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ci/ubuntu-backup-toggle
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@QuantumExplorer QuantumExplorer merged commit 10e92f8 into v3.1-dev Mar 15, 2026
18 of 19 checks passed
@QuantumExplorer QuantumExplorer deleted the ci/ubuntu-backup-toggle branch March 15, 2026 15:13
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.

1 participant