apps_* tests run against whatever is in /opt/ecce, and a stale install fails as if the code were at fault
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- build-system, testing
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C
- Star
- 10
- Fork
- 8
- Merge trung bình
- 6 giờ 32 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của FriendsofECCE/ECCE
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
FriendsofECCE/ECCE#1353 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
FriendsofECCE/ECCE#1348 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
FriendsofECCE/ECCE#1345 ·
Tất cả issue của FriendsofECCE/ECCE
Issue tương tự
-
Installation fails from source: missing libintl.h on macOS, undeclared R_typeToChar() on R 4.6Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vincentarelbundock/xtx#11 ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
compiler-explorer/compiler-explorer#9738 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 3 ngày
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values insideĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
kamgurgul/mib2q-carplay#74 ·