[CI]: test-scripts skips two test files, and one of them fails

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, python
领域
ci-cd, testing

调研方向

从.github/workflows/test-parser.yml和.github/scripts/tests目录开始。更新test_lintcommit.py中的test_subject_uppercase,使其符合 issue 中描述的规则变更,然后运行python -m pytest .github/scripts/tests。当test-scripts作业运行整个目录且该命令通过时,任务即完成。

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

描述

needs-triage

Found while working on Python #971: add PR status labels and bump issue triage.

Problem

The test-scripts job in test-parser.yml runs a fixed list of test files, so a new file under .github/scripts/tests runs in CI only after someone adds it to the list. No other job runs these files, because the pytest testpaths setting lists only packages/*/tests directories.

Two files are not on the list, so CI does not run them:

Change
  • Change test_subject_uppercase to expect no error, since uppercase subjects are allowed on purpose.
  • Run the whole .github/scripts/tests directory in test-scripts instead of the list, so a new test file runs without a list edit.
Acceptance criteria
  • test-scripts runs every test file under .github/scripts/tests.
  • python -m pytest .github/scripts/tests passes on main.
主要语言
Python
星标
59
派生
32
平均合并
1 天 5 小时
30 天内合并 PR
76

环境准备

从这里开始

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

aws/aws-durable-execution-sdk-python 的其他 Issue

查看 aws/aws-durable-execution-sdk-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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