Transient failure in spec/lib/gitlab/health_checks/fs_shards_check_spec.rb on MySQL
As seen in https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/20004085, this seems to happen on MySQL only (?):
1) Gitlab::HealthChecks::FsShardsCheck when popen always finds required binaries behaves like filesystem checks #metrics storage points to not existing folder
Failure/Error: stdin.write(RANDOM_STRING)
Errno::EPIPE:
Broken pipe
Shared Example Group: "filesystem checks" called from ./spec/lib/gitlab/health_checks/fs_shards_check_spec.rb:172
# ./lib/gitlab/health_checks/fs_shards_check.rb:101:in `write'
# ./lib/gitlab/health_checks/fs_shards_check.rb:101:in `block in storage_read_test'
# ./lib/gitlab/popen.rb:24:in `block in popen'
# ./lib/gitlab/popen.rb:23:in `popen'
# ./lib/gitlab/health_checks/fs_shards_check.rb:68:in `exec_with_timeout'
# ./spec/lib/gitlab/health_checks/fs_shards_check_spec.rb:163:in `call'
# ./spec/lib/gitlab/health_checks/fs_shards_check_spec.rb:163:in `block (4 levels) in <top (required)>'
# ./lib/gitlab/health_checks/fs_shards_check.rb:100:in `storage_read_test'
# ./lib/gitlab/health_checks/fs_shards_check.rb:40:in `block (2 levels) in metrics'
# ./lib/gitlab/health_checks/base_abstract_check.rb:32:in `with_timing'
# ./lib/gitlab/health_checks/fs_shards_check.rb:48:in `operation_metrics'
# ./lib/gitlab/health_checks/fs_shards_check.rb:40:in `block in metrics'
# ./lib/gitlab/health_checks/fs_shards_check.rb:35:in `each'
# ./lib/gitlab/health_checks/fs_shards_check.rb:35:in `flat_map'
# ./lib/gitlab/health_checks/fs_shards_check.rb:35:in `metrics'
# ./spec/lib/gitlab/health_checks/fs_shards_check_spec.rb:91:in `block (4 levels) in <top (required)>'
# ./spec/lib/gitlab/health_checks/fs_shards_check_spec.rb:103:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:90:in `block (2 levels) in <top (required)>'
Finished in 42 minutes 3 seconds (files took 41.71 seconds to load)
1658 examples, 1 failure
Failed examples:
rspec './spec/lib/gitlab/health_checks/fs_shards_check_spec.rb[1:2:1:2:1:3]' # Gitlab::HealthChecks::FsShardsCheck when popen always finds required binaries behaves like filesystem checks #metrics storage points to not existing folder