Skip to content

Introduce .rspec config and drop RUBYOPT=-w from CI workflows#294

Merged
yahonda merged 1 commit into
rsim:masterfrom
yahonda:introduce-rspec-config
May 13, 2026
Merged

Introduce .rspec config and drop RUBYOPT=-w from CI workflows#294
yahonda merged 1 commit into
rsim:masterfrom
yahonda:introduce-rspec-config

Conversation

@yahonda
Copy link
Copy Markdown
Collaborator

@yahonda yahonda commented May 13, 2026

Summary

Mirror the .rspec from rsim/oracle-enhanced:

--force-color
--backtrace
--require spec_helper
--warnings

The --warnings flag replaces the per-workflow RUBYOPT=-w prefix on bundle exec rspec, so the same warning surface is now driven from a single project-level file rather than seven workflow scripts plus one workflow-level env block in devcontainer.yml.

  • --force-color keeps RSpec output colored when piped through CI log capture
  • --backtrace shows full backtraces on failure
  • --require spec_helper lets future spec files skip the explicit require (existing require "spec_helper" lines remain — they are now redundant but harmless, and cleaning them up is out of scope here)
  • --warnings is equivalent to RUBYOPT=-w for the rspec process

Files changed

  • .rspec (new)
  • .github/workflows/test.yml
  • .github/workflows/test_11g.yml
  • .github/workflows/test_11g_ojdbc11.yml
  • .github/workflows/test_gemfiles.yml
  • .github/workflows/ruby_head.yml
  • .github/workflows/jruby_head.yml
  • .github/workflows/truffleruby.yml
  • .github/workflows/devcontainer.yml (drops the workflow-level env: RUBYOPT: "-w" block; bundle exec rake spec picks up .rspec via RSpec::Core::RakeTask)

Diff stat: 9 files changed, 11 insertions(+), 10 deletions(-)

Test plan

  • bundle exec rspec spec/plsql/procedure_spec.rb — 195 examples, 0 failures, 1 pre-existing pending
  • bundle exec rspec spec/plsql/version_spec.rb spec/plsql/sequence_spec.rb — confirms .rspec is picked up locally (ANSI color appears in piped output → --force-color active)
  • No new Ruby warnings emitted under --warnings
  • CI matrix exercises the JRuby / Ruby head / multi-AR-version paths

🤖 Generated with Claude Code

Mirror the `.rspec` from rsim/oracle-enhanced:

    --force-color
    --backtrace
    --require spec_helper
    --warnings

The `--warnings` flag replaces the per-workflow `RUBYOPT=-w` prefix on
`bundle exec rspec`, so the same warning surface is now driven from a
single project-level file rather than seven workflow scripts plus one
workflow-level env block in devcontainer.yml. `--force-color` and
`--backtrace` make CI logs (and local runs) more debuggable;
`--require spec_helper` lets individual specs skip the require eventually.

No spec changes; spec/plsql/procedure_spec.rb stays green
(195 examples, 0 failures, 1 pre-existing pending) and no new warnings
are emitted with `--warnings` on.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@yahonda yahonda merged commit f661316 into rsim:master May 13, 2026
20 checks passed
@yahonda yahonda deleted the introduce-rspec-config branch May 13, 2026 01:43
yahonda added a commit that referenced this pull request May 13, 2026
The project-level .rspec (added in #294) sets `--require spec_helper`,
so each spec file's explicit `require "spec_helper"` is now redundant.
Remove the require line and the trailing blank line from all 11 spec
files under spec/plsql/.

Net change: -22 LOC. No behavior change. Full suite is green
(468 examples, 0 failures, 1 pre-existing pending).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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