Wire tests/skills/test_fullsend_upgrade.py into pre-commit gate and CI test execution

Abierto Apto para principiantes
#752 3 comentarios 1 reacción 0 asignados Ver en GitHub

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
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github-actions, python, yaml

Línea de trabajo

Lee .pre-commit-config.yaml y los hooks de prueba existentes bajo repo: local; después, revisa scripts/lint.py y scripts/rehearse_gate.py para entender cómo se ejecutan los hooks de pre-commit en CI. Añade el hook propuesto para tests/skills/test_fullsend_upgrade.py con los patrones de archivo indicados. El trabajo estará terminado cuando el hook se ejecute para el archivo de prueba y los cambios correspondientes en skills o workflows, y python3 scripts/rehearse_gate.py pase.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

blocked infra pr-open ready-for-triage risk/low

What happened

In PR #740 (resolving Issue #713), the coder agent updated tests/skills/test_fullsend_upgrade.py to align test expectations with post-v0.56.1 workflow structure and added a new live-workflow parity guard: test_prioritize_fixture_omits_install_mode_like_the_live_workflow. The review agent approved the PR in run 47423512217. However, as maintainer @JohnStrunk noted in human review (comment N1), neither tests/skills/ nor test_fullsend_upgrade.py is configured in .pre-commit-config.yaml or executed in .github/workflows/ci-workflow.yaml or scripts/lint.py. The suite only runs when manually invoked by a developer or agent. Because CI does not execute it, the newly added regression guard and existing skill tests provide zero automated regression protection against future drift.

What could go better

When unit test files are created or modified to guard against contract regressions, they must be registered in the repository's automated gate checks. In ProtoBot, Python test suites under scripts/test_*.py are wired as hooks into .pre-commit-config.yaml, which runs during local gate checks and across all files in CI via scripts/lint.py --all-files. A similar hook for tests/skills/test_fullsend_upgrade.py was omitted when the file was initially introduced. Adding it to .pre-commit-config.yaml ensures that changes to skill scripts or workflow fixtures trigger the tests locally before push and deterministically in CI on every PR.

Proposed change

In .pre-commit-config.yaml, add a new local hook entry under repo: local:

      - id: test-fullsend-upgrade
        name: test-fullsend-upgrade
        entry: python3 -m unittest tests/skills/test_fullsend_upgrade.py
        language: system
        pass_filenames: false
        files: ^(\.agents/skills/upgrade-fullsend/.*|tests/skills/test_fullsend_upgrade\.py|\.github/workflows/prioritize\.ya?ml)$

Validate the gate configuration changes by running python3 scripts/rehearse_gate.py per AGENTS.md requirements.

Validation criteria

  1. Running pre-commit run --files tests/skills/test_fullsend_upgrade.py executes the test-fullsend-upgrade hook and passes all 46 unit tests in under 1 second.
  2. Modifying .agents/skills/upgrade-fullsend/scripts/update_fullsend_pins.py or .github/workflows/prioritize.yml triggers the hook during gate execution.
  3. CI execution of scripts/lint.py --all-files runs test-fullsend-upgrade and reports passing status without requiring modifications to .github/workflows/ci-workflow.yaml.

Related issues checked

Searched: test_fullsend_upgrade pre-commit; tests/skills CI; test_fullsend_upgrade; tests/skills
Considered: #696, #713, #725, fullsend-ai/fullsend#73, fullsend-ai/fullsend#2944
#696 added tests to test_fullsend_upgrade.py but did not wire the file into CI or pre-commit.
#713 updated mock template assertions in test_fullsend_upgrade.py without addressing CI execution.
#725 proposes adding pin synchronization tests to test_fullsend_upgrade.py.
fullsend-ai/fullsend#73 is an upstream issue proposing regression test evals across all agent skills.
fullsend-ai/fullsend#2944 tracks adding automated CI tests for upstream merge-queue scripts.


Generated by retro agent from https://github.com/redhat-et/ProtoBot/pull/740

Lenguaje dominante
Go
Estrellas
8
Forks
9
Merge medio
18 h 17 min
PR fusionados (30 d)
187

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de redhat-et/ProtoBot

Todos los issues de redhat-et/ProtoBot

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.