Skip to content

Tracking Services Release Provenance Schema Update - #80

Merged
CodeGat merged 3 commits into
mainfrom
update-tracking-services-release-prov-schema
Aug 21, 2026
Merged

CodeGat merged 3 commits into
mainfrom
update-tracking-services-release-prov-schema

Conversation

@CodeGat

@CodeGat CodeGat commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

References ACCESS-NRI/build-cd#423

Background

We now require a commit hash for each model component, so we have a truly immutable reference for provenance - for example, tags (which are the most commit ref to use in our releases) could be updated or deleted on a component.

Since each schema is a new file, the diff is for a new file. For just the change I added, see 6109cb2

The PR

  • Add 2-1-0.json of au.org.access-nri/tracking_services/release_provenance/telemetry, which adds a required commit_hash to a spack model component. This is technically a REVISION not a MODEL change, as we have additionalProperties: true - so technically some old data would be in conformance with this updated spec.

@CodeGat CodeGat self-assigned this Aug 20, 2026
CodeGat added a commit to ACCESS-NRI/build-cd that referenced this pull request Aug 20, 2026
@CodeGat
CodeGat requested a review from aidanheerdegen August 20, 2026 06:12
@CodeGat
CodeGat merged commit c97d01a into main Aug 21, 2026
2 checks passed
@CodeGat
CodeGat deleted the update-tracking-services-release-prov-schema branch August 21, 2026 05:34
CodeGat added a commit to ACCESS-NRI/build-cd that referenced this pull request Aug 21, 2026
* python3.12: Convert typing.Dict/List to dict/list

* get_data_from_deployment: get resolved commits from spack version, try not to fatally error during deployment

* tracking_services_data: raise errors from earlier script, no longer resolve spack version refs

* Remove unneeded tests, update example

* Remove secrets.TRACKING_SERVICES_REPO_FETCH_TOKEN

* Resolve URLs in favor of ref-specific rather than just commit-specific

* Encapsulate provenance into it's own dataclass, refactor class methods, get commit hash as well

* Update tracking_services.py script to handle commit data from the build-db-pkgs.json file. Requires ACCESS-NRI/schema#80

* Update test data

* Revert to 2-0-0 while tracking services doesn't support that schema

* Update function comment
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.

2 participants