Autopkgtest regression trigerred by Ruby 2.7

Bug #1866884 reported by Lucas Kanashiro
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ruby-em-hiredis (Ubuntu)
Fix Released
Lucas Kanashiro

Bug Description

ruby-em-hiredis version 0.3.1-1 has a regression in all architectures triggered by ruby-defaults/1:2.7~0.

autopkgtest log on amd64 as an example:

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :


    def eval_script(lua, lua_sha, keys, args)
      df =
      method_missing(:evalsha, lua_sha, keys.size, *keys, *args).callback(
      ).errback { |e|
        if e.kind_of?(RedisError) && e.redis_error.message.start_with?("NOSCRIPT")
          self.eval(lua, keys.size, *keys, *args)


whenever evalsha method is not available, self.eval(lua, keys.size, *keys, *args) complains about the number of variables being given to self.eval(). It is likely that the method definition (self) has changed among ruby versions. The arguments seem fine, example:

lua =

-- Set key to token with expiry of timeout, if:
-- - It doesn't exist
-- - It exists and already has value of token (further set extends timeout)
-- Used to implement a re-entrant lock.
local key = KEYS[1]
local token = ARGV[1]
local timeout = ARGV[2]

local value ='get', key)

if value == token or not value then
    -- Great, either we hold the lock or it's free for us to take
    return'setex', key, timeout, token)
    -- Someone else has it
    return false

lua_sha = 32d8d2000576c02c167c899979858c886d4524aa
keys = ["test-lock"]
args= ["b978de50e36126d49314bbcec2ccc76e", 2]

Changed in ruby-em-hiredis (Ubuntu):
status: New → Confirmed
assignee: nobody → Lucas Kanashiro (lucaskanashiro)
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Upstream is dead and only ruby-em-synchrony depends on it, so I decided to make ruby-em-synchrony not depend on it anymore and request its removal from Focal:

The same was made in Debian.

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

ruby-em-hiredis was already removed from Focal, check the bug url linked above.

Changed in ruby-em-hiredis (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers