v0 ECS: image name and version are wrong when the container image is pinned by digest
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Read pkg/app/piped/platformprovider/ecs/task.go, especially parseContainerImage, and compare its behavior with the v1 ECS plugin and the handling described in #7633. Reproduce the digest case from the issue and check the tests for parseContainerImage, FindImageTag, and FindArtifactVersions; done means the image name is web and the digest is used as the version. The reporter says a fix with tests is ready and will open a PR.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happened:
parseContainerImage in pkg/app/piped/platformprovider/ecs/task.go splits the image on the last ":" of the last path segment, but it doesn't split off the "@digest" part first. For an image pinned by digest, the digest ends up as the tag and "@sha256" stays in the name:
123456789012.dkr.ecr.us-east-1.amazonaws.com/web@sha256:0123... => name="web@sha256", tag="0123..."
FindImageTag and FindArtifactVersions use this, so the application version and the artifact versions shown for a v0 ECS app are wrong.
What you expected to happen:
name="web", and the digest is used as the version when the image has one. This is what the pipedv1 ECS plugin already does, and what #7633 does for v0 Kubernetes and Cloud Run.
How to reproduce it:
Call parseContainerImage with "123456789012.dkr.ecr.us-east-1.amazonaws.com/web@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef". It returns name "web@sha256" and the hex part as the tag. I checked this with a small test on master (d8de050).
Environment:
pipedversion: master (d8de050), v0 pipedcontrol-planeversion: n/a- Others: pkg/app/piped/platformprovider/ecs
I have a fix with tests ready and will open a PR.
- Ngôn ngữ chính
- Go
- Star
- 1.4k
- Fork
- 403
- Merge trung bình
- 2 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 40
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pipe-cd/pipecd
-
kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
pipedv1 Terraform plugin fails to parse plans that invoke actionsCó thể đã có người làm @abhiraj75 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Add a community meetings calendar to the websiteCó thể đã có người làm @Dhirenderchoudhary đã nhận 8 ngày trước. Đang mởarea/docs community good first issue
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 65/100
pipe-cd/pipecd#7648 · 4 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
plugin/waitapproval: approvers list is unenforced, allowing approvals from unauthorized usersĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
pipe-cd/pipecd#7643 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pipedv1: stopSignal handler panics on closed channel upon concurrent or duplicate signal callsCó thể làm lại được @darshpatel1052 đã nhận 11 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pipe-cd/pipecd#7642 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pipe-cd/pipecd
Issue tương tự
-
hive
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
/v1/chat/completions logprobs leave out top_logprobs when none are requestedCó thể đã có người làm @Shizoqua đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
service stage:spec
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] 172.15.0.0/16 rejected as "not a private LAN address", causing "Pairing port not found"Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug(terraform): a `kubernetes_manifest` the scan can't fully read is dropped and nothing says soCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày