person_detection_int8_vela_convert.sh installs Vela with the venv's seeded pip before upgrading it
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 76/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Área
- build-system, security
Línea de trabajo
Empieza por tensorflow/lite/micro/tools/make/ext_libs/person_detection_int8_vela_convert.sh, especialmente la configuración de venv y las instalaciones de pip alrededor de las líneas 61–64. Lee las indicaciones de Python enlazadas y luego comprueba cómo puede el script instalar y verificar pip 26.2.2 o posterior sin depender del almacén de confianza de pip incluido. La tarea estará completa cuando la venv nueva actualice pip antes de instalar NumPy y Vela, con la verificación TLS activada; la comprobación de regresión propuesta puede verificar el comportamiento con un pip incluido antiguo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
tensorflow/lite/micro/tools/make/ext_libs/person_detection_int8_vela_convert.sh creates a fresh venv and installs NumPy and Vela with the pip that python3 -m venv seeds from the interpreter's ensurepip (:61-64):
python3 -m venv $TEMPFILE
source $TEMPFILE/bin/activate
pip install numpy==1.26.4 >&2
pip install --prefer-binary ethos-u-vela >&2
pip loads its vendored certifi bundle in addition to the system trust store, so the downloads trust whatever roots the seeded pip shipped with. After the eMudhra/emSign incident, the Python maintainers' guidance is that pip must be at least 26.2.2, and that until the CPython ensurepip fix ships, pip should be upgraded in every new venv before it is used: https://discuss.python.org/t/information-for-python-users-regarding-emudhra-emsign-ca-certificate-security-incident/109576/1. Upgrading the parent environment or the OS trust store does not change the pip inside the new venv.
The script runs when ethos_u.inc:82 converts the person-detection model and ethos-u-vela is not already installed, for example in Corstone-300 builds with CO_PROCESSOR=ethos_u (test_cortex_m_corstone_300.sh:39).
Observed
We found this in heliaRT (Ambiq's TFLM fork), which carries this script unchanged. In our CI image, the ensurepip wheel holds pip 23.0.1 with certifi 2022.12.07, which still includes the distrusted emSign ECC Root CA - G3. We measured this in our image only, not in upstream's CI images or runners. The script is unchanged at tensorflow/tflite-micro@0f3f6012.
Suggested fix
After creating the venv, install a fixed pip (>= 26.2.2) in a way that does not depend on the old pip's trust store (for example a hash-pinned wheel, as the guidance above does), check its version, then install NumPy and Vela. TLS verification stays enabled throughout. I can send a PR with a regression check that seeds the venv with an old pip.
- Lenguaje dominante
- C++
- Estrellas
- 3.1k
- Forks
- 1.1k
- Merge medio
- 1 d 48 min
- PR fusionados (30 d)
- 83
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 tensorflow/tflite-micro
-
Update linux-x86-n2-16 runers to linux-x86-n4-16Posiblemente ocupada @veblush la tomó hace 16 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 73/100
tensorflow/tflite-micro#3895 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Hardening Request Optional bounds-validation for Slice kernel when processing untrusted modelsAbierto
Dificultad 3/5 Medio día Aptitud para principiantes 15/100
tensorflow/tflite-micro#3984 ·
Los mantenedores suelen responder en 1 día
-
type:feature
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
tensorflow/tflite-micro#3982 ·
Los mantenedores suelen responder en 1 día
-
Improve layer_by_layer_debugger for use with models using DECODEPosiblemente ocupada @ddavis-2015 la tomó hace 5 días. Abiertotype:bug
tensorflow/tflite-micro#3977 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
type:cleanup
Dificultad 4/5 3-5 días Aptitud para principiantes 54/100
tensorflow/tflite-micro#3974 ·
Los mantenedores suelen responder en 1 día
Todos los issues de tensorflow/tflite-micro
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
-
area:qmc bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
Los mantenedores suelen responder en 3 días
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
ASGC-Game-Jam/asgc-gamejam-2026#563 ·
Los mantenedores suelen responder en 1 día
-
area/ysql kind/bug priority/medium status/awaiting-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
yugabyte/yugabyte-db#37523 ·
Los mantenedores suelen responder en 1 día
-
Let agents name their jobsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100