Skip to content

fix: restore main CI (Ruby 4.0 logger dep, lutaml-model main branch) - #28

Merged
ronaldtse merged 2 commits into
mainfrom
fix/ruby4-logger-runtime-dep
Jun 27, 2026
Merged

fix: restore main CI (Ruby 4.0 logger dep, lutaml-model main branch)#28
ronaldtse merged 2 commits into
mainfrom
fix/ruby4-logger-runtime-dep

Conversation

@ronaldtse

@ronaldtse ronaldtse commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Two unrelated fixes that both block CI on main:

  • unitsdb.gemspec: declare logger as a runtime dependency. Ruby 4.0 removed logger from default gems, and rdf (loaded by lib/unitsdb/commands/check_si/si_ttl_parser.rb) requires it without declaring it. Result on Ruby 4.0:
    LoadError: cannot load such file -- logger
      from rdf-3.3.1/lib/rdf/util/logger.rb:2
    
  • Gemfile: repoint lutaml-model at branch: "main". The previous fix/global-context-register-lookup-fallback branch was deleted upstream after merging, so every bundle install on main fails with:
    Git error: ... Revision fix/global-context-register-lookup-fallback
    does not exist in the repository
    

Why now

The Opal PR (#27) surfaced both — they're not Opal-specific. Main has been silently broken (no CI runs since April 2026) until #27 pushed the first wave of CI against current Ruby heads. Splitting these out keeps #27 focused on Opal compatibility.

Test plan

  • bundle exec rspec spec/unitsdb/commands/check_si_command_spec.rb -- 3 examples, 0 failures (Ruby 3.4)
  • bundle install resolves with lutaml-model from main
  • CI green on Ruby 4.0 (rake / Test on Ruby 4.0 ...)

Ruby 4.0 removed logger from default gems. The rdf gem (a runtime
dependency of unitsdb via lib/unitsdb/commands/check_si/si_ttl_parser.rb)
requires logger at load time but does not declare it as a dependency.

Without this declaration, unitsdb fails on Ruby 4.0 with:
  LoadError: cannot load such file -- logger
  (from rdf-3.3.1/lib/rdf/util/logger.rb:2)

Adding logger as an explicit runtime dependency makes unitsdb usable
on Ruby 4.0 without behavior change on earlier versions.
The fix/global-context-register-lookup-fallback branch was deleted
upstream after merging, so bundle install on main fails with:

  Git error: ... Revision fix/global-context-register-lookup-fallback
  does not exist in the repository

This change repoints the Gemfile at lutaml-model main so bundle
install resolves again.
@ronaldtse ronaldtse changed the title fix: declare logger as runtime dependency for Ruby 4.0 fix: restore main CI (Ruby 4.0 logger dep, lutaml-model main branch) Jun 27, 2026
@ronaldtse
ronaldtse merged commit 61c6c73 into main Jun 27, 2026
16 of 22 checks passed
@ronaldtse
ronaldtse deleted the fix/ruby4-logger-runtime-dep branch June 27, 2026 15:28
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