Skip to content

ci: run all script tests and allow uppercase (#977) - #979

Open
srivilliamsai wants to merge 2 commits into
aws:mainfrom
srivilliamsai:ci/test-scripts-run-all-tests
Open

srivilliamsai wants to merge 2 commits into
aws:mainfrom
srivilliamsai:ci/test-scripts-run-all-tests

Conversation

@srivilliamsai

Copy link
Copy Markdown
Contributor

Issue #, if available

Fixes #977

Description of changes

  • Run the whole .github/scripts/tests directory in test-scripts (.github/workflows/test-parser.yml) instead of maintaining a hardcoded list of test files. Any new test files added under .github/scripts/tests will now run in CI automatically without requiring a workflow edit.
  • Update test_subject_uppercase in .github/scripts/tests/test_lintcommit.py to expect None (no error), aligning it with the removal of the lowercase requirement in fix: remove lowercase requirement from linter #382.
  • Add test_test_parser_workflow.py verifying that test-scripts executes python -m pytest .github/scripts/tests.

Design

See Rules for every change.

  • Design note (rule 3), for a new feature, a new option or a public API change: not needed (CI workflow and test fix).
  • Simpler options considered (rule 2), if the change adds logic: not needed (simplifies existing logic by removing a hardcoded file list).
  • Root cause (rule 5), for a bug fix:
    1. The test-scripts step listed individual files rather than the directory, causing test_closed_issue_comment_workflow.py and test_lintcommit.py to be skipped.
    2. test_subject_uppercase was not updated when fix: remove lowercase requirement from linter #382 permitted uppercase subjects in commit messages.
  • Net change in source lines and in public API members: -11 lines in test-parser.yml, 0 public API changes.

Assumptions

Each assumption about the service, Lambda, the runtime or another library, with its evidence, or marked "unverified" (rule 6):
None.

Decisions not covered by the issue or the design note

One line each, with the reason (rule 7):

  • Added test_test_parser_workflow.py to prevent regression and ensure test-scripts keeps running the full test directory.

Checklist

  • Every new branch has a test that fails without it (rule 4)
  • For a bug fix: the first commit adds a test that fails on the current code (rule 5) - commit d561db8 added test_test_parser_workflow.py which failed on main before test-parser.yml was updated.
  • Every edited test expectation is listed in the description, with the reason (rule 5):

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Assert that test-scripts in test-parser.yml runs the whole
.github/scripts/tests directory rather than a fixed list of files.
Run the whole .github/scripts/tests directory in test-scripts instead
of a fixed file list, ensuring new test files run in CI automatically.

Update test_subject_uppercase in test_lintcommit.py to expect no
error, matching the behavior since uppercase subjects were allowed in
aws#382.
@srivilliamsai
srivilliamsai deployed to ai-pr-review-runtime November 21, 2026 12:55 — with GitHub Actions Active

@yaythomas yaythomas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks a bunch @srivilliamsai ! 🙇

This branch was successfully deployed

1 active deployment
ai-pr-review-runtime — 54b247e1 Deployed Nov 21, 2026 by srivilliamsai via notify / Generate notification summary #477
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants