-
Notifications
You must be signed in to change notification settings - Fork 14
Add action for creating release catalog companion #136
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
Open
msarahan
wants to merge
36
commits into
rapidsai:main
Choose a base branch
from
msarahan:agent/release-build-output-container
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
6a40842
Make release output dispatch container-safe
msarahan a14b8c5
Link release output config schema
msarahan 1ca50f8
Document release build output companions
msarahan 283e97d
Use release catalog key terminology
msarahan dee223b
Rename release catalog feature
msarahan 84d135e
clarify release catalog key uniqueness/reuse
msarahan 065ae84
merge release catalog metadata into entries
msarahan 246ec8e
simplify custom package identity input
msarahan 69e767c
resolve release catalog identity per artifact
msarahan d56661c
rename release catalog artifact directory
msarahan 99a77c5
consolidate release catalog implementation
msarahan 930136d
simplify release catalog action interface
msarahan 81713a7
defer producer-supplied release evidence
msarahan c916c33
manual README edits
msarahan f596863
fix release catalog CI smoke test
msarahan 609f2d2
more readme edits
msarahan 91ddd9d
feat: stage release catalog bundles in S3
msarahan 9442362
fix: make candidate upload script executable
msarahan 503e3fb
fix: ignore absent release signatures
msarahan b36cc4f
Address release catalog review feedback
msarahan 4134d2e
improve purpose and consistency of verbiage
msarahan 5902eda
Name ADI Build Operations as catalog producer
msarahan d1795ce
Validate release catalog input and output schemas
msarahan c3ed113
Standardize release catalog SBOMs on CycloneDX
msarahan f8b0e07
polish/simplifying
msarahan 5a606a7
massage readme and materialize.sh script
msarahan 53f1f55
improve consistency of 'producer' meaning
msarahan 580c07c
more language clarification
msarahan 02bead3
remove release catalog entry from root README
msarahan 5e43f29
Consolidate the release catalog action
msarahan 6bf65a3
Extract Maven identity from JAR metadata
msarahan 6401705
Clarify future dependency SBOM support
msarahan 29f75df
Make release catalog inputs explicit
msarahan 5008d06
Standardize release catalog error reporting
msarahan 2bd36f0
note that a companion is a folder and add platform link
msarahan 421d41e
Make release catalog error tests CI-safe
msarahan 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/usr/bin/env bash | ||
| # Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| repository_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | ||
|
|
||
| "${repository_root}/tests/release_catalog_config_test.sh" | ||
| "${repository_root}/tests/release_catalog_discovery_test.sh" | ||
| "${repository_root}/tests/release_catalog_error_test.sh" | ||
| "${repository_root}/tests/release_catalog_package_parsing_test.sh" | ||
| "${repository_root}/tests/release_catalog_test.sh" |
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,51 @@ | ||
| #!/usr/bin/env python3 | ||
| # Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
|
|
||
| """Verify valid and invalid release-catalog contracts against JSON Schema.""" | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| import json | ||
| from pathlib import Path | ||
|
|
||
| from jsonschema import Draft202012Validator | ||
|
|
||
| ROOT = Path(__file__).parents[1] | ||
|
|
||
|
|
||
| def _load(path: Path) -> dict[str, object]: | ||
| value = json.loads(path.read_text()) | ||
| if not isinstance(value, dict): | ||
| raise ValueError(f"schema fixture must be a JSON object: {path}") | ||
| return value | ||
|
|
||
|
|
||
| def _validator(path: Path) -> Draft202012Validator: | ||
| schema = _load(path) | ||
| Draft202012Validator.check_schema(schema) | ||
| return Draft202012Validator(schema) | ||
|
|
||
|
|
||
| def main() -> None: | ||
| config = _validator(ROOT / "release-catalog/config.schema.json") | ||
| fixtures = ROOT / "tests/release-catalog-config" | ||
| for path in sorted((fixtures / "valid").glob("*.json")): | ||
| errors = list(config.iter_errors(_load(path))) | ||
| if errors: | ||
| raise ValueError(f"valid fixture rejected: {path}: {errors[0].message}") | ||
| for path in sorted((fixtures / "invalid").glob("*.json")): | ||
| if not list(config.iter_errors(_load(path))): | ||
| raise ValueError(f"invalid fixture accepted: {path}") | ||
|
|
||
| entries = _validator(ROOT / "release-catalog/entries.schema.json") | ||
| example = _load(ROOT / "release-catalog/examples/cuvs-java/release-catalog-entries.json") | ||
| errors = list(entries.iter_errors(example)) | ||
| if errors: | ||
| raise ValueError(f"generated entries example rejected: {errors[0].message}") | ||
| wrong_producer = {**example, "producer": "some-other-tool"} | ||
| if not list(entries.iter_errors(wrong_producer)): | ||
| raise ValueError("entries schema accepted an unknown producer") | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| main() |
This file was deleted.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.