Actualización de dependencia idna de 3.4 a 3.7 en scripts de upgrade de CodeQL
Description
please enter the description of your change here
Change request type
- [ ] Release or process automation (GitHub workflows, internal scripts)
- [ ] Internal documentation
- [ ] External documentation
- [ ] Query files (
.ql,.qll,.qlsor unit tests) - [ ] External scripts (analysis report or other code shipped as part of a release)
Rules with added or modified queries
- [ ] No rules added
- [ ] Queries have been added for the following rules:
- rule number here
- [ ] Queries have been modified for the following rules:
- rule number here
Release change checklist
A change note (development_handbook.md#change-notes) is required for any pull request which modifies:
- The structure or layout of the release artifacts.
- The evaluation performance (memory, execution time) of an existing query.
- The results of an existing query in any circumstance.
If you are only adding new rule queries, a change note is not required.
Author: Is a change note required?
- [ ] Yes
- [ ] No
🚨🚨🚨 Reviewer: Confirm that format of shared queries (not the .qll file, the .ql file that imports it) is valid by running them within VS Code.
- [ ] Confirmed
Reviewer: Confirm that either a change note is not required or the change note is required and has been added.
- [ ] Confirmed
Query development review checklist
For PRs that add new queries or modify existing queries, the following checklist should be completed by both the author and reviewer:
Author
- [ ] Have all the relevant rule package description files been checked in?
- [ ] Have you verified that the metadata properties of each new query is set appropriately?
- [ ] Do all the unit tests contain both "COMPLIANT" and "NON_COMPLIANT" cases?
- [ ] Are the alert messages properly formatted and consistent with the style guide?
- [ ] Have you run the queries on OpenPilot and verified that the performance and results are acceptable?
As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process. - [ ] Does the query have an appropriate level of in-query comments/documentation?
- [ ] Have you considered/identified possible edge cases?
- [ ] Does the query not reinvent features in the standard library?
- [ ] Can the query be simplified further (not golfed!)
Reviewer
- [ ] Have all the relevant rule package description files been checked in?
- [ ] Have you verified that the metadata properties of each new query is set appropriately?
- [ ] Do all the unit tests contain both "COMPLIANT" and "NON_COMPLIANT" cases?
- [ ] Are the alert messages properly formatted and consistent with the style guide?
- [ ] Have you run the queries on OpenPilot and verified that the performance and results are acceptable?
As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process. - [ ] Does the query have an appropriate level of in-query comments/documentation?
- [ ] Have you considered/identified possible edge cases?
- [ ] Does the query not reinvent features in the standard library?
- [ ] Can the query be simplified further (not golfed!)
Gracias por contribir Andres y bienvenido! 🎊
(Òjala no equivoco tanto mi español, ha pasado mucho tiempo desde lo ha usado. Si algo no esté claro, avìsame por favor y puedo intentar otra vez o escribir en ingles si lo prefiere 😄 )
Si, veo ahora que tenemos estas alertas en nuestro lado, gracias por tomar el tiempo resolvarlas. No veo ningunas problemas con el cambio asi, y voy a probarlo manualmente un poco porque estas scripts no tienen tests automaticos. Se ve como estos asuntos no nos afectan pero si no hay incompatibilidades seria mucho mejor arreglarlas.
Se responderà cuando tengo resultas de mis pruebas. No espero ningunos asuntos y espero que podemos unir/merge. Gracias!
Veo que fallaron el CI/CD sobre MarkupSafe. Puedo investigarlo luego, quizas esta semana o la proxima. Si usted tiene tiempo para seguir este trabajo antes de mi, lo agradecerían. Si no tiene tiempo, no se preocupe, aunque va a pasar un poco mas tiempo antes de cumplir. Nada aqui se ve tan dificil.
Gracias otra vez Andres!
¡Gracias por la bienvenida, Michael! 🙌 Me alegra que la contribución sea útil. Revisaré el tema de MarkupSafe y el fallo de CI/CD para ver si puedo adelantar trabajo antes de tus pruebas. Si detecto algo relevante o una solución rápida, lo compartiré por aquí para que podamos integrarlo sin demoras.
He validado que la actualización de idna de la versión 3.4 a la 3.7 en /scripts/upgrade-codeql-dependencies/requirements.txt no introduce cambios incompatibles con las dependencias actuales ni con el flujo de actualización de CodeQL. Esta actualización atiende una alerta de seguridad moderada detectada por Dependabot, asegurando que la base de dependencias esté al día y libre de vulnerabilidades conocidas.
Respecto al fallo de CI/CD relacionado con MarkupSafe, he identificado que el error se produce en fases de validación y unit testing para C/C++ en el pipeline de CodeQL, posiblemente por incompatibilidad transitoria entre la versión instalada de MarkupSafe y una dependencia indirecta de Jinja2. Mi plan es reproducir el fallo en un entorno controlado, aplicar un upgrade o pinning temporal de MarkupSafe a una versión estable y reejecutar el pipeline para confirmar que no haya efectos colaterales en la generación de documentación HTML ni en la ejecución de queries.
Una vez tenga los resultados de la prueba, actualizaré este hilo con la solución propuesta para que podamos fusionar sin bloquear el flujo de releases ni comprometer la seguridad del proyecto.