Skip to content

[codex] Fix Ruby Box test CI#9

Closed
se4weed wants to merge 2 commits into
masterfrom
codex-fix-ruby-box-ci
Closed

[codex] Fix Ruby Box test CI#9
se4weed wants to merge 2 commits into
masterfrom
codex-fix-ruby-box-ci

Conversation

@se4weed

@se4weed se4weed commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a GitHub Actions workflow for the gem checks on a self-hosted ruby-box runner and fixes the existing Ruby::Box test failure that happens when child Ruby processes inherit Bundler's environment.

Root Cause

The Ruby::Box child-process tests were launched from bundle exec, so Bundler-related environment variables leaked into the child process. Under RUBY_BOX=1, the child then tried to boot through the parent bundle and failed while loading the project gemspec.

Changes

  • Add a CI workflow that runs gem tests and Steep on a self-hosted ruby-box runner.
  • Guard CI with a runtime check that Ruby::Box is available.
  • Run Steep with --severity-level=error -j 1 so existing warnings do not fail CI and worker tmp cleanup stays stable.
  • Wrap Ruby::Box child-process tests in Bundler.with_unbundled_env.
  • Document the self-hosted runner requirement in English and Japanese READMEs.

Validation

  • BUNDLE_PATH=/private/tmp/torikago-bundle bundle exec rake test
  • BUNDLE_PATH=/private/tmp/torikago-bundle bundle exec steep check --severity-level=error -j 1
  • ruby -e 'require "yaml"; YAML.load_file(".github/workflows/ci.yml")'

@se4weed se4weed force-pushed the codex-fix-ruby-box-ci branch from 9f5ac57 to 807c072 Compare June 28, 2026 10:21
@se4weed se4weed closed this Jun 28, 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