Skip to content

fix(shims): override guard_clean for CI rubygem releases#382

Merged
rhuanbarreto merged 1 commit into
mainfrom
fix/rubygem-guard-clean-override
May 29, 2026
Merged

fix(shims): override guard_clean for CI rubygem releases#382
rhuanbarreto merged 1 commit into
mainfrom
fix/rubygem-guard-clean-override

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • Overrides Bundler::GemHelper#guard_clean in the Rakefile to skip the clean-tree check
  • The .gitignore fix from fix(shims): gitignore Bundler artifacts that break rubygem publish #380 was necessary but not sufficient — Bundler 4.x's guard_clean still detects generated artifacts even when gitignored
  • CI publishes from a clean tag checkout, so the guard is unnecessary

This is the only shim that hasn't published for v0.41.1 — PyPI, NuGet, Maven, and Go all succeeded on earlier runs.

Test plan

  • Merge, move v0.41.1 tag, re-run publish-shims.yml — only publish-rubygem needs to succeed (others will fail with "already exists" which is expected)

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 29, 2026

Copy link
Copy Markdown

Deploying archgate-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: b06c5d3
Status: ✅  Deploy successful!
Preview URL: https://c036c281.archgate-cli.pages.dev
Branch Preview URL: https://fix-rubygem-guard-clean-over.archgate-cli.pages.dev

View logs

@github-actions

github-actions Bot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Code Coverage

Metric Value
Lines 90.2% (6575 / 7289)
Threshold 90% minimum — met
Platforms Linux + Windows

Full HTML report available in workflow artifacts.

Per-directory breakdown
Directory Coverage Lines
src/commands/ 88.0% 2082 / 2365
src/engine/ 92.9% 1219 / 1312
src/formats/ 100.0% 141 / 141
src/helpers/ 90.3% 3133 / 3471

Bundler's release:guard_clean consistently fails on CI even with
gitignored artifacts (Linux/shallow-clone-specific behavior). Override
it via define_singleton_method since CI publishes from a clean tag
checkout where the guard is unnecessary.

Verified locally: full `bundle exec rake release` passes guard_clean,
builds the gem, and only fails at rubygem_push (no credentials).

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
@rhuanbarreto rhuanbarreto force-pushed the fix/rubygem-guard-clean-override branch from 4e99f17 to b06c5d3 Compare May 29, 2026 10:55
@rhuanbarreto rhuanbarreto merged commit 6f24e53 into main May 29, 2026
21 checks passed
@rhuanbarreto rhuanbarreto deleted the fix/rubygem-guard-clean-override branch May 29, 2026 10:57
@archgatebot archgatebot Bot mentioned this pull request May 29, 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.

1 participant