-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add automated update step for component metadata file in workflow #650
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,3 +165,29 @@ jobs: | |
echo "Kueue release with version ${{ github.event.inputs.kueue-version }} does not exist. Please select an existing version." | ||
exit 1 | ||
fi | ||
|
||
generate-component-metadata: | ||
needs: [check-appwrapper-version, check-kuberay-version, check-kueue-version] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Generate component_metadata.yaml | ||
run: | | ||
cat <<EOL > config/component_metadata.yaml | ||
releases: | ||
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. As far as I know we should just include the components that are referenced in the DSC resource, so codeflare, ray, kueue and training operator. We need to update separate files in separate repos for each. |
||
- name: CodeFlare SDK | ||
version: ${{ github.event.inputs.codeflare-sdk-version }} | ||
repoUrl: https://github.com/project-codeflare/codeflare-sdk | ||
- name: AppWrapper | ||
version: ${{ github.event.inputs.appwrapper-version }} | ||
repoUrl: https://github.com/project-codeflare/appwrapper | ||
- name: KubeRay | ||
version: ${{ github.event.inputs.kuberay-version }} | ||
repoUrl: https://github.com/ray-project/kuberay | ||
- name: Kueue | ||
version: ${{ github.event.inputs.kueue-version }} | ||
repoUrl: https://github.com/kubernetes-sigs/kueue | ||
EOL | ||
|
||
- name: Verify generated file | ||
run: cat config/component_metadata.yaml |
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.
I fail to see how this can update the files in the corresponding repositories. Am I missing it?
Also it does not cover the training operator right?
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.
There is currently no way to fully automate updating the files in the corresponding repositories. The version of the component can only be updated during the rebase/sync process. The purpose of this PR is to autogenerate the component_metadata file as part of the release process, ensuring all versions are accurately captured from the input fields before the release.
I haven’t included the training operator because it is not part of our release parameters