Investigate sidekiq 7.1.6 vendored gem spec flakiness
The vendored sidekiq 7.1.6 gem specs are failing in a flaky manner as experienced in !152319 (comment 1897324749).
Locally, running bundle exec rake test
with a running Redis listening to port 6379 would pass.
Example: https://gitlab.com/gitlab-org/gitlab/-/jobs/6804558054
Click to expand
Failure:
Actors::processor#test_0002_deals with errors [/builds/gitlab-org/gitlab/vendor/gems/sidekiq-7.1.6/test/actors_test.rb:97]:
Expected nil to be truthy.
rails test /builds/gitlab-org/gitlab/vendor/gems/sidekiq-7.1.6/test/actors_test.rb:79
Sidekiq::Web#test_0003_can display queues [/builds/gitlab-org/gitlab/vendor/gems/sidekiq-7.1.6/test/web_test.rb:136]:
Expected /0.0/ to match # encoding: ASCII-8BIT
# valid: true
"<!doctype html>\n<html dir=\"ltr\">\n <head>\n <title>[DEVELOPMENT] Sidekiq</title>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0\" />\n\n <link href=\"/stylesheets/bootstrap.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n \n\n <link href=\"/stylesheets/application.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n <link href=\"/stylesheets/application-dark.css\" media=\"screen and (prefers-color-scheme: dark)\" rel=\"stylesheet\" type=\"text/css\" />\n \n\n <link rel=\"apple-touch-icon\" href=\"/images/apple-touch-icon.png\">\n <link rel=\"shortcut icon\" type=\"image/ico\" href=\"/images/favicon.ico\" />\n <script type=\"text/javascript\" src=\"/javascripts/application.js\"></script>\n <meta name=\"google\" content=\"notranslate\" />\n \n </head>\n <body class=\"admin\" data-locale=\"en\">\n <div class=\"navbar navbar-default navbar-fixed-top\">\n <div class=\"container-fluid\">\n <div class=\"navbar-header\" data-navbar=\"static\">\n <button type=\"button\" class=\"navbar-toggle collapsed\" data-toggle=\"navbar-menu\" data-target=\"#navbar-menu\">\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n </button>\n <div class=\"navbar-toggle collapsed navbar-livereload\">\n \n <a class=\"live-poll-start live-poll btn btn-primary\">Live Poll</a>\n <a class=\"live-poll-stop live-poll btn btn-primary active\">Stop Polling</a>\n\n\n \n </div>\n <a class=\"navbar-brand\" href=\"/\">\n Sidekiq\n <span class=\"status\">\n <i class=\"status-sprite status-idle\"></i>\n idle\n</span>\n\n </a>\n </div>\n\n <div class=\"collapse navbar-collapse\" id=\"navbar-menu\">\n <ul class=\"nav navbar-nav\" data-navbar=\"static\">\n \n \n <li class=\"\">\n <a href=\"/\">Dashboard</a>\n </li>\n \n \n \n <li class=\"\">\n <a href=\"/busy\">Busy</a>\n </li>\n \n \n \n <li class=\"active\">\n <a href=\"/queues\">Queues</a>\n </li>\n \n \n \n <li class=\"\">\n <a href=\"/retries\">Retries</a>\n </li>\n \n \n \n <li class=\"\">\n <a href=\"/scheduled\">Scheduled</a>\n </li>\n \n \n \n <li class=\"\">\n <a href=\"/morgue\">Dead</a>\n </li>\n \n \n \n <li class=\"\">\n <a href=\"/metrics\">Metrics</a>\n </li>\n \n \n\n \n\n <li class=\"navbar-livereload\">\n <div class=\"poll-wrapper\">\n \n <a class=\"live-poll-start live-poll btn btn-primary\">Live Poll</a>\n <a class=\"live-poll-stop live-poll btn btn-primary active\">Stop Polling</a>\n\n\n \n </div>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n <div id=\"page\">\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-sm-12 summary_bar\">\n <ul class=\"list-unstyled summary row\">\n <li class=\"processed col-sm-1\">\n <span id=\"txtProcessed\" class=\"count\">0</span>\n <span class=\"desc\">Processed</span>\n </li>\n <li class=\"failed col-sm-1\">\n <span id=\"txtFailed\" class=\"count\">0</span>\n <span class=\"desc\">Failed</span>\n </li>\n <li class=\"busy col-sm-1\">\n <a href=\"/busy\">\n <span id=\"txtBusy\" class=\"count\">0</span>\n <span class=\"desc\">Busy</span>\n </a>\n </li>\n <li class=\"enqueued col-sm-1\">\n <a href=\"/queues\">\n <span id=\"txtEnqueued\" class=\"count\">1</span>\n <span class=\"desc\">Enqueued</span>\n </a>\n </li>\n <li class=\"retries col-sm-1\">\n <a href=\"/retries\">\n <span id=\"txtRetries\" class=\"count\">0</span>\n <span class=\"desc\">Retries</span>\n </a>\n </li>\n <li class=\"scheduled col-sm-1\">\n <a href=\"/scheduled\">\n <span id=\"txtScheduled\" class=\"count\">0</span>\n <span class=\"desc\">Scheduled</span>\n </a>\n </li>\n <li class=\"dead col-sm-1\">\n <a href=\"/morgue\">\n <span id=\"txtDead\" class=\"count\">0</span>\n <span class=\"desc\">Dead</span>\n </a>\n </li>\n</ul>\n\n </div>\n\n <div class=\"col-sm-12\">\n <div class=\"header-container\">\n <h1>Queues</h1>\n</div>\n\n<div class=\"table_container\">\n <table class=\"queues table table-hover table-bordered table-striped\">\n <thead>\n <th>Queue</th>\n <th>Size</th>\n <th>Latency</th>\n <th>Actions</th>\n </thead>\n \n <tr>\n <td>\n <a href=\"/queues/foo\">foo</a>\n \n </td>\n <td>1 </td>\n <td>1.0 </td>\n <td class=\"delete-confirm\">\n <form action=\"/queues/foo\" method=\"post\">\n <input type='hidden' name='authenticity_token' value=''/>\n <input class=\"btn btn-danger\" type=\"submit\" name=\"delete\" title=\"This will delete all jobs within the queue, it will reappear if you push more jobs to it in the future.\" value=\"Delete\" data-confirm=\"Are you sure you want to delete the foo queue? This will delete all jobs within the queue, it will reappear if you push more jobs to it in the future.\" />\n\n \n </form>\n </td>\n </tr>\n \n </table>\n</div>\n\n </div>\n </div>\n </div>\n </div>\n <div class=\"navbar navbar-fixed-bottom navbar-inverse ltr\">\n <div class=\"navbar-inner\">\n <div class=\"container text-center\">\n <ul class=\"nav\">\n <li>\n <p class=\"navbar-text product-version\">Sidekiq v7.1.6</p>\n </li>\n <li>\n <p class=\"navbar-text redis-url\" title=\"redis://redis:6379/0\">redis://redis:6379/0</p>\n </li>\n <li>\n <p id=\"serverUtcTime\" class=\"navbar-text server-utc-time\">07:56:54 UTC</p>\n </li>\n <li>\n <p class=\"navbar-text\"><a rel=help href=\"https://github.com/sidekiq/sidekiq/wiki\">docs</a></p>\n </li>\n <li>\n <p class=\"navbar-text\"><a rel=external href=\"https://github.com/sidekiq/sidekiq/tree/main/web/locales\">en</a></p>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n </body>\n</html>\n".
rails test /builds/gitlab-org/gitlab/vendor/gems/sidekiq-7.1.6/test/web_test.rb:129