bug: install-stats by-release table credits smoke installs to the newest-published release, not the one installed
Maintainer thường phản hồi trong vòng 1 ngày
Một pull request liên quan đã được merge.
- #1623 của @Alan-Cha — đã merge
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go, javascript, shell
- Lĩnh vực
- devtools, documentation
Hướng nghiên cứu
Start in the install-stats page code that defines renderReleases, byPublication and ciByTag, and check how compareRelease is used there. Compare with scripts/release_smoke_test_linux.sh, which picks the highest stable release. The fix assigns each smoke run to the highest stable release published at or before the run's created_at. Done when the by-release table credits v0.8.1 for the Oct 4 to Oct 14 runs, with the tag-push residuals left documented.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
The by-release table on docs/install-stats/ subtracts each release's smoke-test CI installs from its Linux column. It assigns each smoke run to whichever release was published most recently when the run started (byPublication / ciByTag in renderReleases), pre-releases included.
The smoke test installs something else. A job's fresh install is the highest-versioned stable release: gh release list --exclude-pre-releases, then sort -V | tail -1 (scripts/release_smoke_test_linux.sh). The script has excluded pre-releases since it was added in d0be885c.
The two rules disagree whenever the most recently published release isn't the highest stable version:
- A pre-release is newest. This happened from Oct 4 to Oct 14, while v0.9.0-rc.1 through rc.4 were published. Every smoke run in those windows installed v0.8.1. I confirmed this from one run log per window: each says
Fresh install: v0.8.1. The page credited those runs to the rcs instead. - A backport is newest. For example, a v0.8.2 published after v0.9.4. The page would credit it with runs that installed v0.9.4. This hasn't happened yet.
Effect on today's page
| Release | Linux | CI the page subtracts | CI by the smoke test's rule |
|---|---|---|---|
| v0.8.1 | 93 | 8 (shows 85 people) | 80 (13 people) |
| v0.9.0-rc.1 to rc.4 | 1 to 9 each | 4, 25, 39, 4 (rows show ~0) |
none from main pushes |
| v0.9.0 and later | unchanged | unchanged |
So about 72 CI installs are attributed to the wrong releases. The daily table isn't affected, because it subtracts the CI total whichever release was installed.
The page recomputes everything from data.json on each load, so fixing the rule also corrects the existing history. Nothing needs re-collecting.
Fix
Assign each run to the highest-versioned stable release published at or before the run started, using the page's existing compareRelease. That is the smoke script's own rule, applied to data data.json already has (prerelease, published_at and each run's created_at).
Known residuals
- Tag-push runs. A run triggered by a stable tag push installs the stable version below that tag, but this rule picks the tag itself. That puts 1 install on v0.9.0 and 2 on v0.9.1 into the wrong row so far. Fixing it needs the collector to record which ref triggered each run; today the smoke run's own
head_branchismaineven for tag pushes. - Contradicting comments. The collector's header says a tag push makes the people figure run "1-2 low per job"; the page says "1-2 high". The page is right: a tag-push job also installs the tag itself, which the page doesn't subtract. The "1-2" estimate also predates the cpex steps added in #1431, which install the tag several more times per job.
Found during the review of #1457.
- Ngôn ngữ chính
- Go
- Star
- 23
- Fork
- 44
- Merge trung bình
- 16 giờ 37 phút
- Pull request đã merge (30 ngày)
- 250
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không 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 rossoctl/cortex
-
UI shows costs for all sessions even when drilled into a sessionCó thể đã có người làm @esnible đã nhận 20 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
rossoctl/cortex#1116 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feedback laptop
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 60/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của rossoctl/cortex
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
riverqueue/river#1576 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
NFS StorageProvider renders a missing nfsSubDir as "<no value>"Có thể đã có người làm @ldming đã nhận hôm nay. Đang mởkind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apecloud/kubeblocks#11067 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
emersion/go-msgauth#87 ·
-
CLI: `describe <ns>.<table>` reports "namespace does not exist" when only the table is missingCó thể đã có người làm @Shruthirdy đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
apache/iceberg-go#2423 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Add tests for CSV email parsingĐang mởgood first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
mafzalkalwardev/mailforge#21 ·