Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto Apto para principiantes
#22 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
67/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
swift
Área
testing

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-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.

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Cocoanetics/SwiftScript

Todos los issues de Cocoanetics/SwiftScript

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.