-
Notifications
You must be signed in to change notification settings - Fork 14
update modules to latest mains #31
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
Merged
AlexanderLanin
merged 11 commits into
eclipse-score:main
from
etas-contrib:feature/build-from-all-mains
Nov 26, 2025
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1a41ba3
update modules to latest mains
kgraeper a2c4655
make pyGithub optional
kgraeper 88491b6
add git token to the update
kgraeper 9f131e4
com has no score prefix on main, add wait_free_stack_fix
kgraeper d2093a2
display git hash in the summary
kgraeper 7f9011b
fix display
kgraeper 22dd5aa
add typing
kgraeper fb6535c
add capability to pin modules to branches
kgraeper 3fe1ddc
remove updated known-good
kgraeper 22fb1ec
revert score_module updates to 0.5
kgraeper 71a2d01
fix copilot findings
kgraeper File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| { | ||
| "timestamp": "2025-08-13T12:55:10Z", | ||
| "modules": { | ||
| "score_baselibs": { | ||
| "version": "0.1.3", | ||
| "repo": "https://github.com/eclipse-score/baselibs.git", | ||
| "branch": "s_core_release_v0_5_0" | ||
| }, | ||
| "score_communication": { | ||
| "version": "0.1.1", | ||
| "repo": "https://github.com/eclipse-score/communication.git", | ||
| "branch": "s_core_release_v0_5_0" | ||
| }, | ||
| "score_persistency": { | ||
| "version": "0.2.1", | ||
| "repo": "https://github.com/eclipse-score/persistency.git" | ||
| }, | ||
| "score_orchestrator": { | ||
| "version": "0.0.3", | ||
| "repo": "https://github.com/eclipse-score/orchestrator.git" | ||
| }, | ||
| "score_tooling": { | ||
| "version": "1.0.2", | ||
| "repo": "https://github.com/eclipse-score/tooling.git" | ||
| }, | ||
| "score_platform": { | ||
| "hash": "a9cf44be1342f3c62111de2249eb3132f5ab88da", | ||
| "repo": "https://github.com/eclipse-score/score.git" | ||
| }, | ||
| "score_bazel_platforms": { | ||
| "version": "0.0.2", | ||
| "repo": "https://github.com/eclipse-score/bazel_platforms.git" | ||
| }, | ||
| "score_test_scenarios": { | ||
| "version": "0.3.0", | ||
| "repo": "https://github.com/eclipse-score/testing_tools.git" | ||
| }, | ||
| "score_docs_as_code": { | ||
| "version": "2.0.1", | ||
| "repo": "https://github.com/eclipse-score/docs-as-code.git" | ||
| }, | ||
| "score_process": { | ||
| "version": "1.3.1", | ||
| "repo": "https://github.com/eclipse-score/process_description.git" | ||
| }, | ||
| "score_feo": { | ||
| "version": "1.0.2", | ||
| "repo": "https://github.com/eclipse-score/feo.git", | ||
| "branch": "candidate_v0.5" | ||
| } | ||
| }, | ||
| "manifest_sha256": "4c9b7f...", | ||
| "suite": "full", | ||
| "duration_s": 742 | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| #!/usr/bin/env python3 | ||
| """Extract module information from known_good.json.""" | ||
|
|
||
| import json | ||
| import sys | ||
| from typing import Dict, Any | ||
|
|
||
|
|
||
| def load_module_data(known_good_file: str, module_name: str) -> Dict[str, Any]: | ||
| """ | ||
| Load module data from known_good.json. | ||
|
|
||
| Args: | ||
| known_good_file: Path to the known_good.json file | ||
| module_name: Name of the module to look up | ||
|
|
||
| Returns: | ||
| Dictionary with module data, or empty dict if not found | ||
| """ | ||
| try: | ||
| with open(known_good_file, 'r') as f: | ||
| data = json.load(f) | ||
| modules = data.get('modules', {}) | ||
| return modules.get(module_name, {}) | ||
| except Exception: | ||
| return {} | ||
|
|
||
|
|
||
| def get_module_field(module_data: Dict[str, Any], field: str = 'hash') -> str: | ||
| """ | ||
| Extract a specific field from module data. | ||
|
|
||
| Args: | ||
| module_data: Dictionary with module information | ||
| field: Field to extract ('hash', 'version', 'repo', or 'all') | ||
|
|
||
| Returns: | ||
| Requested field value, or 'N/A' if not found | ||
| For 'hash': truncated to 8 chars if longer | ||
| For 'all': returns hash/version (prefers hash, falls back to version) | ||
| """ | ||
| if not module_data: | ||
| return 'N/A' | ||
|
|
||
| if field == 'repo': | ||
| repo = module_data.get('repo', 'N/A') | ||
| # Remove .git suffix if present | ||
| if repo.endswith('.git'): | ||
| repo = repo[:-4] | ||
| return repo | ||
| elif field == 'version': | ||
| return module_data.get('version', 'N/A') | ||
| elif field == 'hash': | ||
| hash_val = module_data.get('hash', 'N/A') | ||
| return hash_val | ||
| else: # field == 'all' or default | ||
| hash_val = module_data.get('hash', module_data.get('version', 'N/A')) | ||
| return hash_val | ||
|
|
||
|
|
||
| if __name__ == '__main__': | ||
| if len(sys.argv) < 3 or len(sys.argv) > 4: | ||
| print('Usage: get_module_info.py <known_good.json> <module_name> [field]') | ||
| print(' field: hash (default), version, repo, or all') | ||
| print('N/A') | ||
| sys.exit(1) | ||
|
|
||
| known_good_file = sys.argv[1] | ||
| module_name = sys.argv[2] | ||
| field = sys.argv[3] if len(sys.argv) == 4 else 'all' | ||
|
|
||
| module_data = load_module_data(known_good_file, module_name) | ||
| result = get_module_field(module_data, field) | ||
| print(result) |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| PyGithub>=2.1.1 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this actually used? I also cannot find someone using this file?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. update_module_latest.sh has the option to use the PyGithub instead of gh cli |
||
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script does not exit with non-zero status when builds fail. After line 173, add
exit 1to ensure the script returns a failure exit code when any_failed is set.