Repository navigation
ci: run all script tests and allow uppercase (#977) - #979
Open
srivilliamsai wants to merge 2 commits into
Open
srivilliamsai wants to merge 2 commits into
srivilliamsai wants to merge 2 commits into
Conversation
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.
yaythomas
approved these changes
Nov 23, 2026
yaythomas
left a comment
Contributor
There was a problem hiding this comment.
thanks a bunch @srivilliamsai ! 🙇
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available
Fixes #977
Description of changes
.github/scripts/testsdirectory intest-scripts(.github/workflows/test-parser.yml) instead of maintaining a hardcoded list of test files. Any new test files added under.github/scripts/testswill now run in CI automatically without requiring a workflow edit.test_subject_uppercasein.github/scripts/tests/test_lintcommit.pyto expectNone(no error), aligning it with the removal of the lowercase requirement in fix: remove lowercase requirement from linter #382.test_test_parser_workflow.pyverifying thattest-scriptsexecutespython -m pytest .github/scripts/tests.Design
See Rules for every change.
test-scriptsstep listed individual files rather than the directory, causingtest_closed_issue_comment_workflow.pyandtest_lintcommit.pyto be skipped.test_subject_uppercasewas not updated when fix: remove lowercase requirement from linter #382 permitted uppercase subjects in commit messages.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):
test_test_parser_workflow.pyto prevent regression and ensuretest-scriptskeeps running the full test directory.Checklist
d561db8addedtest_test_parser_workflow.pywhich failed onmainbeforetest-parser.ymlwas updated.test_subject_uppercase: updated expectation from"subject must be lowercase"toNonebecause PR fix: remove lowercase requirement from linter #382 removed the lowercase requirement fromlintcommit.py.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.