Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Probe golden 34_auto_harvest_smoke is stale: CharacterSet.isDisjoint(with: inverted) now prints true on macOS

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
67/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
swift
領域
testing

調査の方向性

まず Examples/llm_probes/expected/34_auto_harvest_smoke.out と Examples/llm_probes/34_auto_harvest_smoke.swift を併せて読み、次に probeMatchesStockSwift("34_auto_harvest_smoke") を実行し、対象の macOS 環境で出力を比較します。issue では、異なる CharacterSet.isDisjoint(with:) のアサーションと、golden 生成スクリプトの Tools/regen-probe-expectations.sh が指摘されています。probe の期待値とテストの動作が、意図された OS サポートと一致すれば完了です。

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

説明

probeMatchesStockSwift("34_auto_harvest_smoke") fails on current macOS (Darwin 27, Swift 6.4 / swiftlang-6.4.0.34.1), on untouched main (d298d01):

probe 34_auto_harvest_smoke diverged from stock Swift
normalizedOut == normalizedExpected → false

The only differing line is the 14th, print(allLetters.isDisjoint(with: nonLetters)) where nonLetters = allLetters.inverted:

value
golden Examples/llm_probes/expected/34_auto_harvest_smoke.out false
stock swift Examples/llm_probes/34_auto_harvest_smoke.swift on this machine true
SwiftScript interpreter true

So the interpreter agrees with stock Swift here; it's the checked-in golden that was captured against an older Foundation where CharacterSet.isDisjoint(with:) returned false for a set and its inverse (likely a bitmap-vs-inverted-flag quirk that Apple fixed). The suite is documented as Darwin-only and goldens come from Tools/regen-probe-expectations.sh, which makes it OS-version dependent.

Options:

  • Regenerate the golden on the current OS and accept that CI's macos-15 runner may disagree until it moves to a newer image, or
  • Drop that one line from the probe (the inverse/disjoint pair is the only OS-sensitive assertion in the file), or
  • Make the harness tolerant of a per-OS golden.

Found while moving ShellKit to a version requirement in #21; unrelated to that change.

主要言語
Swift
スター
76
フォーク
8
平均マージ
25分
マージ済み PR(30日)
1

環境構築

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

はじめの一歩

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

Cocoanetics/SwiftScript のほかの issue

Cocoanetics/SwiftScript の issue をすべて見る

似ている issue

Swift の issue をもっと見る

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

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