-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check additional metadata in projects #14
Merged
fabiobaltieri
merged 11 commits into
zephyrproject-rtos:main
from
carlescufi:module-yml
Nov 14, 2024
Merged
Check additional metadata in projects #14
fabiobaltieri
merged 11 commits into
zephyrproject-rtos:main
from
carlescufi:module-yml
Nov 14, 2024
Conversation
This file contains 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
0d5a34f
to
ea11968
Compare
Instead of digging in the different environment variables, take the GitHub org, repo and PR number directly from the .yml action file. This makes it easier to test locally and simplifies the code. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
ea11968
to
af8a14e
Compare
Use the standard log() infrastructure for all output. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
8233dc1
to
c2b193f
Compare
In order to clarify to the user why a manifest PR is currently marked as DNM, add a status line that lists the reason(s) that made the action mark it as non-mergeable, or OK otherwise. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
c2b193f
to
a393354
Compare
Whenever removing a project, add the DNM labels. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
The new revision is just None, so skip checking for impostor commits. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
670a0c4
to
7b1d054
Compare
In preparation for its use in other parts of the code later. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
3045c95
to
8b9ae49
Compare
The manifest project will be treated separately in future commits. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
4e144e9
to
cb03951
Compare
This makes them more visible and easier to spot. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
cb03951
to
e838c14
Compare
Instead of having multiple sources of truth for the merge (or DNM) status, use the _get_merge_status() function for both the labeling and the note. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
759dcf8
to
88632d4
Compare
94e1610
to
c4f8765
Compare
54d392f
to
1909e09
Compare
Until now this action was only looking at differences in revision for all the projects in the manifest. However, there are other items of metadata that can be highly sensitive, and changes to those must be monitored and reported. This commit introduces additional checks for the following metadata items: - URL: part of the manifest, URL to the project repository - Submodules: part of the manifest, enabled submodules when running west update - West commands: part of the manifest, pointer to a file defining extensions commands for west itself - module.yml: the Zephyr module metadata file If any of the items above is added, removed or changed, the DNM label will not be removed from the Pull Request, in order for a human to decide if the PR is to be merged or not. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
1909e09
to
7fad13e
Compare
module.yml
changes
nashif
approved these changes
Nov 13, 2024
stephanosio
approved these changes
Nov 13, 2024
gmarull
approved these changes
Nov 14, 2024
fabiobaltieri
approved these changes
Nov 14, 2024
carlescufi
added a commit
to carlescufi/zephyr
that referenced
this pull request
Nov 14, 2024
See zephyrproject-rtos/action-manifest#14. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
nashif
pushed a commit
to zephyrproject-rtos/zephyr
that referenced
this pull request
Nov 16, 2024
See zephyrproject-rtos/action-manifest#14. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
coreboot-bot
pushed a commit
to coreboot/zephyr-cros
that referenced
this pull request
Nov 18, 2024
See zephyrproject-rtos/action-manifest#14. (cherry picked from commit a3cc532) Original-Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no> GitOrigin-RevId: a3cc532 Cr-Build-Id: 8731028481084229505 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8731028481084229505 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: Iae0c9d24e4c554eba76a1b09b1670e3fc50d28c6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/6028310 Tested-by: Tristan Honscheid <honscheid@google.com> Commit-Queue: Tristan Honscheid <honscheid@google.com> Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com> Reviewed-by: Tristan Honscheid <honscheid@google.com>
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.
Screenshot: