apps_* tests run against whatever is in /opt/ecce, and a stale install fails as if the code were at fault
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- build-system, testing
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C
- Estrellas
- 10
- Forks
- 8
- Merge medio
- 6 h 32 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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de FriendsofECCE/ECCE
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
FriendsofECCE/ECCE#1353 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
FriendsofECCE/ECCE#1348 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
FriendsofECCE/ECCE#1345 ·
Todos los issues de FriendsofECCE/ECCE
Issues similares
-
Installation fails from source: missing libintl.h on macOS, undeclared R_typeToChar() on R 4.6Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
vincentarelbundock/xtx#11 ·
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
compiler-explorer/compiler-explorer#9738 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 3 días
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values insideAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
kamgurgul/mib2q-carplay#74 ·