Skip to content

central workflow for pr checks: issue #43#45

Merged
FScholPer merged 4 commits intoeclipse-score:mainfrom
etas-contrib:hid9fe-issue-43
Nov 7, 2025
Merged

central workflow for pr checks: issue #43#45
FScholPer merged 4 commits intoeclipse-score:mainfrom
etas-contrib:hid9fe-issue-43

Conversation

@nick-hildebrant-etas
Copy link
Contributor

#43

Enable each component repo to use a single score-pr-checks workflow that references a reusable action in the cicd-workflows repo. This way, any update to the central workflow or action will automatically apply to all component repos, streamlining maintenance and rollout of new checks.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces GitHub Actions workflows to validate Bazel module naming conventions for the SCORE project. The implementation adds automated checks that run on pull requests targeting the main branch.

Key Changes:

  • Adds a reusable workflow that validates MODULE.bazel files exist and contain properly formatted module names
  • Integrates the validation workflow into the PR pipeline

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/score-pr-checks.yml Implements validation logic for MODULE.bazel existence and module name format compliance
.github/workflows/on-pr.yml Triggers the SCORE PR checks workflow on pull requests to main branch

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AlexanderLanin
Copy link
Member

@dcalavrezo-qorix @nicu1989 @nradakovic please focus on the general idea of having ./.github/workflows/score-pr-checks.yml. Concept ok?!

Copy link
Contributor

@dcalavrezo-qorix dcalavrezo-qorix left a comment

Choose a reason for hiding this comment

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

will work fine as long as the repos follow a pseudo-template.

I've seen repos with two Module files btw, so multiple modules within one repo

No MODULE? No Problem

Co-authored-by: Alexander Lanin <alex@lanin.de>
Signed-off-by: nick-hildebrant-etas <nick.hildebrant+etas@etas.com>
spaces around name with POSIX character classes

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: nick-hildebrant-etas <nick.hildebrant+etas@etas.com>
FScholPer
FScholPer previously approved these changes Nov 5, 2025
@FScholPer
Copy link
Contributor

Valid argument @dcalavrezo-qorix. How is that handled currently when there is a repo with multiple modules and anyone starts releasing?

@AlexanderLanin
Copy link
Member

Basically that is not supported. Do we have an example?

@nick-hildebrant-etas
Copy link
Contributor Author

will work fine as long as the repos follow a pseudo-template.

I've seen repos with two Module files btw, so multiple modules within one repo

This will only check the MODULE.bazel in the root of the repo. I can't think of a way to make this more generalized without an example. In the general case, this is how bazel works as well, so if you have multiple modules, you need to point to them from the main MODULE.bazel anyway right? I am happy to improve the action, but I can't think of a better way at the moment.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should only use templates here

@FScholPer FScholPer merged commit cc4dff8 into eclipse-score:main Nov 7, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

4 participants