Probe golden 34_auto_harvest_smoke is stale: CharacterSet.isDisjoint(with: inverted) now prints true on macOS
まだ誰も着手していません。
評価
調査の方向性
まず 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-15runner 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Cocoanetics/SwiftScript のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
Cocoanetics/SwiftScript#20 ·
-
Member walks silently drop unrecognized declarations (nested types, typealiases, indexed subscripts)オープン
難易度 3/5 1〜2日 初心者へのやさしさ 74/100
Cocoanetics/SwiftScript#18 ·
Cocoanetics/SwiftScript の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
omacom/try-omarchy#402 ·
メンテナーはふだん 1 日以内に返信
-
area: build-and-ci S3: minor
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
manaflow-ai/cmux#22595 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 61/100
mozilla-mobile/firefox-ios#36202 ·
メンテナーはふだん 1 日以内に返信
-
clawsweeper:fix-shape-clear clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro issue-rating: 🦞 diamond lobster P3
難易度 1/5 1時間未満 初心者へのやさしさ 87/100
steipete/CodexBar#4668 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信