Skip to content

ci: run ci/ package unit tests in run_conditional_tests.sh - #9827

Closed
danieljbruce wants to merge 1 commit into
googleapis:ci/breaking-change-check-interface-restrictivenessfrom
danieljbruce:ci/breaking-change-check-conditional-tests
Closed

danieljbruce wants to merge 1 commit into
googleapis:ci/breaking-change-check-interface-restrictivenessfrom
danieljbruce:ci/breaking-change-check-conditional-tests

Conversation

@danieljbruce

Copy link
Copy Markdown
Contributor

Description

Registers ci/ packages in run_conditional_tests.sh and adds a --list-dirs flag.

Impact

Runs unit tests for modified ci/ workspace packages during presubmit.

Testing

  • Verified GIT_DIFF_ARG="upstream/main...HEAD -- :!packages" ./ci/run_conditional_tests.sh --list-dirs outputs ci/breaking-change-check/.
  • Verified GIT_DIFF_ARG="ci/breaking-change-check-interface-restrictiveness...HEAD -- :!packages" ./ci/run_conditional_tests.sh --strict and GIT_DIFF_ARG="ci/breaking-change-check-interface-restrictiveness...HEAD -- :!packages" node ./bin/linter.mjs --strict.
  • Verified 5 consecutive runs of ci/breaking-change-check unit tests on Node.js and 5 on Bun (8 passing each).

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces a --list-dirs option to ci/run_conditional_tests.sh to output the list of test directories and exit. It also adds the ci directory to the scanned subdirectories, exempts it from Windows tests, and skips sample/system tests for it. Additionally, it configures default environment variables in strict mode when RUN_TESTS_MODE is not set and LIST_DIRS is not true. There are no review comments, and I have no feedback to provide.

@danieljbruce

Copy link
Copy Markdown
Contributor Author

Closing in favor of moving breaking-change-check into core/test-utils in #9826 so no changes to ci/run_conditional_tests.sh are required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant