Probe golden 34_auto_harvest_smoke is stale: CharacterSet.isDisjoint(with: inverted) now prints true on macOS
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 67/100
Línea de trabajo
Empieza leyendo Examples/llm_probes/expected/34_auto_harvest_smoke.out junto con Examples/llm_probes/34_auto_harvest_smoke.swift, luego ejecuta probeMatchesStockSwift("34_auto_harvest_smoke") y compara la salida en el entorno macOS de destino. El issue identifica la aserción diferente de CharacterSet.isDisjoint(with:) y el script de generación de golden, Tools/regen-probe-expectations.sh. El trabajo estará terminado cuando la expectativa de la sonda y el comportamiento de la prueba sean coherentes con la compatibilidad prevista del SO.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Swift
- Estrellas
- 75
- Forks
- 6
- Merge medio
- 25 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Cocoanetics/SwiftScript
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Cocoanetics/SwiftScript#20 ·
-
Member walks silently drop unrecognized declarations (nested types, typealiases, indexed subscripts)Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 74/100
Cocoanetics/SwiftScript#18 ·
Todos los issues de Cocoanetics/SwiftScript
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
bug milestone-qa mobile
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
lognorman20/monaco#4011 ·
-
🚀 [firebase_core] Bump Firebase iOS SDK (12.19.0 → 13.0.0)Posiblemente ocupada @SelaseKay la tomó hoy. AbiertoNeeds Attention type: enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
firebase/flutterfire#18769 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
🎉 Add NijiaAbiertoaddition
Dificultad 1/5 1-3 horas Aptitud para principiantes 68/100
jaywcjlove/awesome-mac#3269 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100