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

未关闭 适合新手
#752 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, python, yaml

调研方向

阅读 .pre-commit-config.yaml 和 repo: local 下现有的测试钩子,然后检查 scripts/lint.py 和 scripts/rehearse_gate.py,了解 pre-commit 钩子在 CI 中的运行方式。使用列出的文件模式,为 tests/skills/test_fullsend_upgrade.py 添加建议的钩子。完成的标准是:该钩子会针对测试文件以及匹配的 skill 或 workflow 变更运行,并且 python3 scripts/rehearse_gate.py 通过。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Go
星标
8
派生
9
平均合并
18 小时 17 分钟
30 天内合并 PR
187

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

redhat-et/ProtoBot 的其他 Issue

查看 redhat-et/ProtoBot 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。