Skip to content
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

[no-relnotes] Use reusable workflows for CI #246

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

ArangoGutierrez
Copy link
Collaborator

This commit introduces the following changes to the CI structure. A more agressive split of the CI steps to reusable workflows. We now have the following high-level workflows:

  • A set of basic checks that are run on PR and can be invoked from a workflow
  • A full ci pipeline that is run on push to main and release-* branches (as well as PR copy bot branches)
  • A standalone definition for CodeQL

@ArangoGutierrez ArangoGutierrez self-assigned this Feb 16, 2025
@@ -56,8 +45,10 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
env:
IMAGE_NAME: ghcr.io/${LOWERCASE_REPO_OWNER}/k8s-dra-driver
VERSION: ${COMMIT_SHORT_SHA}
IMAGE_NAME: ghcr.io/nvidia/k8s-device-plugin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem right

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, I was testing the workflows and forgot to edit this bit, it is now fixed

@@ -1,4 +1,4 @@
# Copyright 2024 NVIDIA CORPORATION
# Copyright 2024-2025 NVIDIA CORPORATION
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just keep the year the file was originally created

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@faganihajizada
Copy link

Hello @klueska @elezar 👋🏻

Could you please take a look at this PR when you have a moment? I want to proceed with #248 accordingly. Thank you!

@ArangoGutierrez
Copy link
Collaborator Author

Rebased, ready for review

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:master
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, done

@@ -56,8 +45,10 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
env:
IMAGE_NAME: ghcr.io/${LOWERCASE_REPO_OWNER}/k8s-dra-driver-gpu
VERSION: ${COMMIT_SHORT_SHA}
IMAGE_NAME: ghcr.io/nvidia/k8s-dra-driver
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this:

Suggested change
IMAGE_NAME: ghcr.io/nvidia/k8s-dra-driver
IMAGE_NAME: ghcr.io/nvidia/k8s-dra-driver-gpu

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, done

@ArangoGutierrez
Copy link
Collaborator Author

/ok to test

secrets: inherit
with:
version: ${{ needs.basic.outputs.version }}
build_multi_arch_images: ${{ github.ref_name == 'main' || startsWith(github.ref_name, 'release-') }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question (not a blocker): given that we've optimized the multi-arch builds in this repo to use GOARCH, should we not just drop this or set it to true all the time?

Comment on lines 24 to 26
build_multi_arch_images:
required: true
type: string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
build_multi_arch_images:
required: true
type: string
build_multi_arch_images:
required: false
type: string
default: true

Copy link
Member

@elezar elezar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MInor comments. Not blockers though.

This commit introduces the following changes to the CI structure.
A more agressive split of the CI steps to reusable workflows. We now have the following high-level workflows:

- A set of basic checks that are run on PR and can be invoked from a workflow
- A full ci pipeline that is run on push to main and release-* branches (as well as PR copy bot branches)
- A standalone definition for CodeQL

Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
@ArangoGutierrez
Copy link
Collaborator Author

MInor comments. Not blockers though.

Changes adopted, thanks for the suggestions

@ArangoGutierrez ArangoGutierrez merged commit 5f4121d into NVIDIA:main Feb 25, 2025
7 checks passed
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.

4 participants