DEV: Don't attempt to install minio binary in CI (#32438)

The binary is already preinstalled in the Docker image so we don't have
to attempt to install it again.

### Reviewer notes

Installing the minio binary is taking more than 45 seconds consistently
causing the test to timeout:
https://github.com/discourse/discourse/actions/runs/14638755310/job/41075932169

<img width="1091" alt="Screenshot 2025-04-24 at 6 15 48 PM"
src="https://github.com/user-attachments/assets/ec746740-fe46-4ef8-8a76-c210be1e3204"
/>
This commit is contained in:
Alan Guo Xiang Tan
2025-04-24 18:58:58 +08:00
committed by GitHub
parent ed2740d0ca
commit bc6dae07ee
2 changed files with 3 additions and 4 deletions

View File

@ -199,8 +199,7 @@ module SystemHelpers
SiteSetting.secure_uploads = enable_secure_uploads
# On CI, the minio binary is preinstalled in the docker image so there is no need for us to check for a new binary
MinioRunner.config.cache_time = 2.day.to_i if ENV["CI"]
MinioRunner.start
MinioRunner.start(install: ENV["CI"] ? false : true)
end
def skip_unless_s3_system_specs_enabled!