This PR is the combined effort of @utkarshgupta95 adding a release_url to the DB schema for model components, and @CodeGat wrangling the model component repository url from spack and passing it into said script.
In this PR:
tools/release_provenance: Update schema to include new release_url field. Update test data.
deploy-2-start.yml: Split Gadi deployment and Gadi metadata-gathering into separate steps. Get model component URLs from the spack python command and convert to a json file
generate-build-metadata.bash: Read in above file and add it to the json model+component API that we have going here.
Limitations
Each spack python command takes around 10s as it is concretizing the spec to get the package details.
This PR is the combined effort of @utkarshgupta95 adding a
release_url
to the DB schema for model components, and @CodeGat wrangling the model component repository url fromspack
and passing it into said script.In this PR:
tools/release_provenance
: Update schema to include newrelease_url
field. Update test data.deploy-2-start.yml
: Split Gadi deployment and Gadi metadata-gathering into separate steps. Get model component URLs from thespack python
command and convert to a json filegenerate-build-metadata.bash
: Read in above file and add it to the json model+component API that we have going here.Limitations
spack python
command takes around 10s as it is concretizing the spec to get the package details.Resolves #112