Skip to content

Conversation

rowanseymour
Copy link
Member

No description provided.

@Copilot Copilot AI review requested due to automatic review settings September 18, 2025 18:35
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request switches from the unofficial Bitnami MinIO container to the official MinIO container in the CI workflow to improve reliability and standardization.

  • Replaced the Bitnami MinIO service configuration with a Docker run command using the official MinIO image
  • Updated test setup to create S3 buckets dynamically and added proper cleanup
  • Switched from test context background to test-specific context for better cancellation handling

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/ci.yml Replaced Bitnami MinIO service with official MinIO container using docker run command
archives/archives_test.go Added dynamic bucket creation, test cleanup, and proper context usage

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +46 to +49
if s3Client.Test(ctx, "temba-archives") != nil {
_, err = s3Client.Client.CreateBucket(ctx, &s3.CreateBucketInput{Bucket: aws.String("temba-archives")})
require.NoError(t, err)
}
Copy link
Preview

Copilot AI Sep 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bucket name 'temba-archives' is hardcoded in multiple places. Consider defining it as a constant to improve maintainability and reduce the risk of typos.

Copilot uses AI. Check for mistakes.

--health-interval 10s \
--health-timeout 5s \
--health-retries 5 \
minio/minio:latest minio server /data --console-address ":9001"
Copy link
Preview

Copilot AI Sep 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using 'latest' tag for the MinIO container can lead to unpredictable CI builds when new versions are released. Consider pinning to a specific version tag for reproducible builds.

Suggested change
minio/minio:latest minio server /data --console-address ":9001"
minio/minio:RELEASE.2024-05-10T03-52-56Z minio server /data --console-address ":9001"

Copilot uses AI. Check for mistakes.

Copy link

codecov bot commented Sep 18, 2025

Codecov Report

❌ Patch coverage is 14.28571% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.11%. Comparing base (c01db89) to head (039d6d6).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
archives/s3.go 16.66% 4 Missing and 1 partial ⚠️
cmd/rp-archiver/main.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #120      +/-   ##
==========================================
- Coverage   59.16%   59.11%   -0.05%     
==========================================
  Files           7        7              
  Lines        1310     1311       +1     
==========================================
  Hits          775      775              
- Misses        429      430       +1     
  Partials      106      106              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rowanseymour rowanseymour merged commit 29ba3ed into main Sep 18, 2025
5 of 7 checks passed
@rowanseymour rowanseymour deleted the minio branch September 18, 2025 18:44
@github-actions github-actions bot locked and limited conversation to collaborators Sep 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant