Skip to content

Update ohai gem to 18.1.3

Andrew Patterson requested to merge update-ohai-v18 into master

What does this MR do and why?

Update the ohai gem to 3.1.3 to support ruby 3.1.

Related

Closes #424131 (closed)

How to set up and validate locally

  1. Green pipeline.

  2. Install omnibus package.

  3. Verify ohai version is installed:

    /opt/gitlab/embedded/bin/gem list ohai
    *** LOCAL GEMS ***
    
    ohai (18.1.3, 17.9.0)
  4. Check version in rails:

    sudo gitlab-rails console
    irb(main):001:0> Gem.loaded_specs["ohai"]
    .
    .
    .
    s.name = "ohai"
    s.version = Gem::Version.new("18.1.3")
    .
    .
    .
  5. Verify operating system returned by ohai:

    sudo gitlab-rake gitlab:usage_data:generate | grep operating_system
    "operating_system": "ubuntu-22.04",

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Andrew Patterson

Merge request reports