Repo checker: a clean result on two targets says "a wheel for all 2 targets"

オープン 初心者向け
#255 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, node.js
領域
frontend, web-dev

調査の方向性

誤った表現は site/check/check-logic.mjs の verdictText() 内にある where の行が原因で、2 つのターゲットに対して「2 つのターゲットすべて」と表示されます。Node で targets を 1、2、3 に設定して verdictText を呼び出すと再現できます。2 つのターゲットの見出しが「両方のターゲット」になり、1 つのターゲットと 3 つ以上の表現が変わらず、node --test tests/site/check-logic.test.mjs が 1、2、3 ターゲットの新しいケース(notChecked パッケージあり・なし両方)を含めて成功すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug good first issue

A clean result on two targets gets the headline "All 3 packages have a wheel for all 2 targets". Read from verdictText() in site/check/check-logic.mjs on main and run in Node:

verdictText({packages: 3, gaps: 0, unknown: 0, targets: 2})  ->  "✓ All 3 packages have a wheel for all 2 targets"
verdictText({packages: 3, gaps: 0, unknown: 0, targets: 5})  ->  "✓ All 3 packages have a wheel for all 5 targets"

"all 2" isn't how anyone says it; "both targets" is. Two targets is a common pick (Linux x86_64 and Linux ARM64, say), so this is the headline many visitors see first. The gaps headline for two targets ("at least one of the 2 targets") reads fine and isn't part of this.

Where

verdictText() in site/check/check-logic.mjs: const where = h.targets === 1 ? "this target" : \all ${h.targets} targets`;`

What to do

  • Make where "both targets" for 2, keep "this target" for 1 and "all N targets" for 3 or more.
  • Check whether any other text built from the same count says "all 2" (shareText() says "2 platforms", which is fine) and fix it the same way if so.

Done when

  • Tests in tests/site/check-logic.test.mjs for 1, 2 and 3 targets, with and without packages left unchecked (notChecked). The 2-target ones fail on main.
  • node --test tests/site/check-logic.test.mjs passes. The tests need no network.
主要言語
JavaScript
スター
0
フォーク
0
平均マージ
1時間 37分
マージ済み PR(30日)
134

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wheelgap/tracker のほかの issue

wheelgap/tracker の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。