Skip to content

fix(shims): fix rubygem and pypi publish failures#377

Merged
rhuanbarreto merged 5 commits into
mainfrom
claude/compassionate-driscoll-ccb6ab
May 29, 2026
Merged

fix(shims): fix rubygem and pypi publish failures#377
rhuanbarreto merged 5 commits into
mainfrom
claude/compassionate-driscoll-ccb6ab

Conversation

@rhuanbarreto

@rhuanbarreto rhuanbarreto commented May 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes the v0.41.0 Publish Shims CI failures (consolidates #378):

  • publish-rubygem: Ruby 4.0.5 removed rake from default gems. Added gem "rake", "~> 13.0" to shims/rubygem/Gemfile so bundle exec rake release can find it.
  • publish-pypi: Replaced pip install build + python -m build with uv build --python 3.12 (via SHA-pinned astral-sh/setup-uv). Eliminates the pip --hash CLI incompatibility and avoids Scorecard Pinned-Dependencies flags.

Local validation

Both shim builds verified locally before pushing:

Shim Tool Result
PyPI uv build --python 3.12 ✅ Built archgate-0.41.0 sdist + wheel, import verified
RubyGem Ruby 4.0.5 + bundle exec rake build ✅ Resolved rake 13.4.2, built archgate-0.41.0.gem

Test plan

  • Merge and re-run publish-shims.yml via workflow_dispatch with tag v0.41.0
  • Verify publish-rubygem and publish-pypi jobs succeed

Ruby 4.0 removed rake from default gems — add it to the Gemfile.

pip 25.1+ dropped --hash as a CLI argument — move hash-pinned build
deps to a requirements file where --hash is still supported.

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
@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: 3c5bb40
Status: ✅  Deploy successful!
Preview URL: https://d03fc0c9.archgate-cli.pages.dev
Branch Preview URL: https://claude-compassionate-driscol.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

uv build handles the entire sdist+wheel pipeline from pyproject.toml
without needing a separate build dep install step. Eliminates the
pip --hash compatibility issue entirely.

Locally validated: uv build produces archgate-0.41.0 sdist + wheel.

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
- Use `uv build --python 3.12` instead of action-level python-version
- Use pessimistic `~> 13.0` constraint for rake (idiomatic Ruby)
- Add comments explaining why rake and uv build are needed

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
Keep python-version as a setup-uv action input so Renovate/Dependabot
can detect and bump it automatically.

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
Document pip --hash CLI removal and Ruby 4.0 rake default gem removal
so future agents don't reintroduce the broken patterns.

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
@rhuanbarreto rhuanbarreto enabled auto-merge (squash) May 29, 2026 01:08
@rhuanbarreto rhuanbarreto disabled auto-merge May 29, 2026 01:12
@rhuanbarreto rhuanbarreto merged commit 76324d1 into main May 29, 2026
23 checks passed
@rhuanbarreto rhuanbarreto deleted the claude/compassionate-driscoll-ccb6ab branch May 29, 2026 01:12
@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