Skip to content

Conversation

@jfriedri-ni
Copy link
Collaborator

@jfriedri-ni jfriedri-ni commented Sep 4, 2025

What does this Pull Request accomplish?

This PR reworks how checks are selected for execution -- package location and features (like protobuf, docs, tests) no longer need special cases or explicit dispatching.

Why should this Pull Request be merged?

  • Minimizes the need to change the workflow files whenever and wherever we add new packages
    • Detect protobuf output and run the generator
    • Detect a docs folder and build the package's docs
    • Detect a tests folder and run the package's tests (detection implemented, running tests coming in a follow-up PR)

What testing has been done?

PR checks run

grpc_generator

grpc_generator runs its analyzers, skips codegen and docgen

get_package_info.yml output
image

Executed steps
image

Discovery client

Has no protobuf files, still skips codegen

image

- package-basepath
- should-check-codegen
- should-check-docs
- should-run-tests

Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
- Prefer null objects to empty

Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2025

Test Results

   76 files  ±0     76 suites  ±0   1m 54s ⏱️ -4s
  187 tests ±0    185 ✅ ±0   2 💤 ±0  0 ❌ ±0 
1 850 runs  ±0  1 820 ✅ ±0  30 💤 ±0  0 ❌ ±0 

Results for commit ea547b3. ± Comparison against base commit d2d43fb.

♻️ This comment has been updated with latest results.

@jfriedri-ni jfriedri-ni changed the title Rework GitHub actions Rework GitHub actions and check selection Sep 5, 2025
@jfriedri-ni jfriedri-ni marked this pull request as ready for review September 5, 2025 17:54
@jfriedri-ni jfriedri-ni requested a review from bkeryan as a code owner September 5, 2025 17:54
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
…ters

Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
…working-directory

Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
…se the default working directory

Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
…xtras'

Signed-off-by: Joe Friedrichsen <114173023+jfriedri-ni@users.noreply.github.com>
@jfriedri-ni jfriedri-ni merged commit fd3fd91 into main Sep 8, 2025
97 checks passed
@jfriedri-ni jfriedri-ni deleted the users/jfriedri/rework-github-actions branch September 8, 2025 21:03
@jfriedri-ni jfriedri-ni linked an issue Sep 8, 2025 that may be closed by this pull request
@jfriedri-ni
Copy link
Collaborator Author

Detect a tests folder and run the package's tests (detection implemented, running tests coming in a follow-up PR)

See #133

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.

Make grpc_generator more consistent with the rest of the packages.

4 participants