Tests fail in some timezones
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- cpp
- 领域
- testing-qa
调研方向
首先在 TZ="Europe/Dublin" 下运行 ./run_all 和 make test,然后将失败结果与 UTC 和 America/Los_Angeles 的结果进行比较。优先关注报告中围绕案例 3152-3167 的 eoq 测试,并跟踪其日期值的生成方式;完成的标准是完整测试套件在报告的时区中都能稳定通过。
由索引模型根据 Issue 内容生成。
描述
$ 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.
- 主要语言
- C++
- 星标
- 7
- 派生
- 30
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GothenburgBitFactory/libshared 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 4/5 3-5 天 新手友好度 30/100
GothenburgBitFactory/libshared#112 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
GothenburgBitFactory/libshared#77 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
GothenburgBitFactory/libshared#49 · 2 条评论 ·
查看 GothenburgBitFactory/libshared 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 92/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
cp-algorithms/cp-algorithms#1715 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
Icinga/icinga2#11058 · 1 条评论 ·
维护者通常 1 天内回复
-
status:needs-triage
难度 2/5 1-3 小时 新手友好度 88/100
PX4/PX4-Autopilot#28924 ·
维护者通常 1 天内回复
-
component: split-view platform: windows
难度 2/5 1-3 小时 新手友好度 74/100
zen-browser/desktop#15616 · 1 个 reaction ·
维护者通常 1 天内回复