UBI: Gitaly missing bzip2 binary, invalid contents returned for GetArchive RPC
Summary
Found here, the UBI variants of Gitaly images
did not have bzip2 binary, as the package was not installed. This may have passed Make dependencies
Steps to reproduce
Make an API call to /api/v4/projects/PROJECT_SLUG/repository/archive.tar.bz2?private_token=[FILTERED] when deployed with UBI images.
Current behavior
Failure
Expected behavior
Success
Versions
CNG up to current
Relevant logs
(Please provide any relevate log snippets you have collected, using code blocks (```) to format)
gitaly {"component": "gitaly","subcomponent":"gitaly","level":"error","catfile.duration_ms":1,"catfile.flush_count":1,"catfile.flush_ms":0,"catfile.read_info_count":1,"catfile.read_info_ms":1,"catfile.request_info_count":1,"catfile.request_info_ms":0,"command.count":3,"command.cpu_time_ms":6,"command.inblock":0,"command.majflt":0,"command.maxrss":367184,"command.minflt":361,"command.oublock":0,"command.real_time_ms":16,"command.spawn_token_wait_ms":0,"command.system_time_ms":6,"command.user_time_ms":0,"correlation_id":"01GV3F39NEWEKZG65XR37TFEHF","error":"starting process \[bzip2 -c\]: exec: "bzip2": executable file not found in $PATH","grpc.code":"Internal","grpc.meta.auth_version":"v2","grpc.meta.client_name":"gitlab-workhorse","grpc.meta.deadline_type":"none","grpc.meta.method_type":"server_stream","grpc.method":"GetArchive","grpc.request.fullMethod":"/gitaly.RepositoryService/GetArchive","grpc.request.glProjectPath":"gitlab-qa-user1/project-archive-download-5c9a0ebe90ed1748","grpc.request.glRepository":"project-443","grpc.request.payload_bytes":303,"grpc.request.repoPath":"@hashed/6d/05/6d05621ab7cb7b4fb796ca2ffbe1a141e0d4319d3deb6a05322b9de85d69b923.git","grpc.request.repoStorage":"default","grpc.response.payload_bytes":0,"grpc.service":"gitaly.RepositoryService","grpc.start_time":"2023-03-09T15:16:11.159","grpc.time_ms":14.67,"level":"error","limit.concurrency_queue_ms":0,"msg":"finished streaming call with code Internal","peer.address":"10.40.22.48:35756","pid":1,"span.kind":"server","system":"grpc","time":"2023-03-09T15:16:11.174Z"}
gitlab-workhorse {"correlation_id":"01GV3F3BATB7RDQ210Y2E5GA1V","error":"SendArchive: copy 'git archive' output: rpc error: code = Internal desc = starting process \[bzip2 -c\]: exec: "bzip2": executable file not found in $PATH","level":"error","method":"GET","msg":"","time":"2023-03-09T15:16:12Z","uri":"/api/v4/projects/gitlab-qa-user2%2Fproject-archive-download-5c9a0ebe90ed1748/repository/archive.tar.bz2?private_token=\[FILTERED\]"}