apps_* tests run against whatever is in /opt/ecce, and a stale install fails as if the code were at fault
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 领域
- build-system, testing
调研方向
Start with tests/apps/apps.py and the listed apps_* tests, then inspect how the install is produced and how CTest reports skipped tests. The issue proposes recording and comparing build IDs, logging install details, and making an all-skipped group visible; the acceptance criteria and behavior for that summary still need design decisions.
由索引模型根据 Issue 内容生成。
描述
The apps_* ctest tests drive an installed ECCE tree, not the build directory:
tests/apps/apps.py:51-52 resolves
INSTALL = os.environ.get("ECCE_TEST_HOME", "/opt/ecce")
WRAPPERS = os.environ.get("ECCE_TEST_WRAPPERS", "/usr/bin")
A plain ctest run builds but does not install, so these tests exercise whatever
happens to be in /opt/ecce -- in practice an install from an earlier commit.
What each test checks today. The non-examples tests check only that the wrapper file
exists, e.g. tests/apps/props_switch_paint_test.py:44 and
tests/apps/property_list_click_test.py:81:
print("SKIP: no ecce-builder under %s" % apps.WRAPPERS)
return SKIP # 77, and the ctest entry sets SKIP_RETURN_CODE 77
So the "no install at all" case is handled. The case that is not handled is an install
that is present but is not the tree under test. apps.versionMismatch()
(apps.py:73-85) exists for exactly that and produces a SKIP naming both versions,
but it is called only by the examples_* tests (examples_test.py,
examples_preparsed_test.py, examples_topup_test.py, examples_upgrade_test.py,
examples_workflow_test.py, examples_workflow_steps_test.py). No other apps_*
test calls it.
Consequence. A full ctest run on main reported apps_props_switch_paint and
apps_property_list_click as failures that were caused by the installed tree being
older than the working tree, not by a fault in the code under test. The log shows the
test's own assertion text, with no line saying which tree the binary came from, so the
failure reads as a GUI regression and is investigated as one.
versionMismatch() alone would not have caught this run: it compares
data/client/config/Version, which does not change between commits within a release
cycle (here both the install and the tree read 9.6.0). So the check needs to be
stronger than the version string -- for instance recording the git describe/commit of
the tree the install was built from in the install, and comparing that.
Suggested direction:
- Record the build id of the tree an install was made from, and expose it beside
Version. - Have
apps.pyoffer one guard that everyapps_*test calls (as theexamples_*
tests callversionMismatch()), returning 77 with a message that names the install
path, its build id and the tree's. - Have every
apps_*test print the install path and build id it used at the top of
its log, pass or fail, so a stale-install failure is recognisable afterwards.
Tension to resolve, not to paper over. A SKIP that satisfies a completeness guard is
itself a silent-success hazard, the same shape as #1309 and #1301: a run in which
every apps_* test skips must not look like a run in which they passed. Whatever
guard is added, the skip has to be visible in the summary (count of skipped
apps_* tests, and a non-zero exit or an explicit statement when the whole group
skipped), not swallowed into a green run.
- 主要语言
- C
- 星标
- 10
- 派生
- 8
- 平均合并
- 6 小时 32 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
FriendsofECCE/ECCE 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
FriendsofECCE/ECCE#1353 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
FriendsofECCE/ECCE#1348 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
FriendsofECCE/ECCE#1345 ·
查看 FriendsofECCE/ECCE 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
vincentarelbundock/xtx#11 ·
-
难度 1/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 70/100
compiler-explorer/compiler-explorer#9738 ·
维护者通常 2 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 3 天内回复
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values inside未关闭
难度 1/5 1 小时以内 新手友好度 92/100
kamgurgul/mib2q-carplay#74 ·