Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Tests fail in some timezones

Aperta
#41 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
cpp
Ambito
testing-qa

Direzione di ricerca

Inizia eseguendo ./run_all e make test con TZ="Europe/Dublin", quindi confronta i fallimenti con i risultati di UTC e America/Los_Angeles. Concentrati prima sui test eoq segnalati relativi ai casi 3152-3167 e traccia il modo in cui vengono prodotti i loro valori di data; il lavoro è completo quando l'intera suite passa in modo consistente nei fusi orari indicati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

$ date                                            
Wed Jul  7 22:18:59 2021

# ^^^ summer time

$ TZ="Europe/Dublin" ./run_all
Passed:                          8283
Failed:                            54
Unexpected successes:               0
Skipped:                            1
Expected failures:                  0
Runtime:                         0.30 seconds

Seems like some actual values about an hour off:

$ make test
<...>
ok 3152 - eoq > now
actual (first - relative:true): 20210731T230000Z now: 20210707T211751Z
ok 3153 - 1st not in same month as now
ok 3154 - 1st day is 1
actual (second - relative:true): 20210801T230000Z now: 20210707T211751Z
ok 3155 - 2nd not in same month as now
ok 3156 - 2nd day is 2
actual (third - relative:true): 20210802T230000Z now: 20210707T211751Z
ok 3157 - 3rd not in same month as now
ok 3158 - 3rd day is 3
actual (fourth - relative:true): 20210803T230000Z now: 20210707T211751Z
ok 3159 - 4th not in same month as now
ok 3160 - 4th day is 4
actual (first - relative:false): 20210630T230000Z now: 20210707T211751Z
ok 3161 - 1st in same month as now
ok 3162 - 1st day is 1
actual (second - relative:false): 20210701T230000Z now: 20210707T211751Z
ok 3163 - 2nd in same month as now
ok 3164 - 2nd day is 2
actual (third - relative:false): 20210702T230000Z now: 20210707T211751Z
ok 3165 - 3rd in same month as now
ok 3166 - 3rd day is 3
actual (fourth - relative:false): 20210703T230000Z now: 20210707T211751Z
ok 3167 - 4th in same month as now
<...>

However:

$ TZ="UTC" ./run_all
Passed:                          8337
Failed:                             0
Unexpected successes:               0
Skipped:                            1
Expected failures:                  0
Runtime:                         0.30 seconds
$ TZ="America/Los_Angeles" ./run_all
Passed:                          8337
Failed:                             0
Unexpected successes:               0
Skipped:                            1
Expected failures:                  0
Runtime:                         0.30 seconds

I didn't dig any further.

Lingua principale
C++
Stelle
7
Fork
30
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GothenburgBitFactory/libshared

Tutte le issue di GothenburgBitFactory/libshared

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.