Skip to content

Conversation

@Al-Pragliola
Copy link
Contributor

@Al-Pragliola Al-Pragliola commented Jul 18, 2025

Description

In this PR I move the linting/gen from the Dockerfile to the Github Action named prepare and make both the build workflow and the build and push workflow depend on it so every other Job that run docker build takes ~1minute instead of 5 and in general there's much less repetition in the actions

How Has This Been Tested?

run in CI

Merge criteria:

  • All the commits have been signed-off (To pass the DCO check)
  • The commits have meaningful messages
  • Automated tests are provided as part of the PR for major new functionalities; testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work.
  • Code changes follow the kubeflow contribution guidelines.
  • For first time contributors: Please reach out to the Reviewers to ensure all tests are being run, ensuring the label ok-to-test has been added to the PR.

@Al-Pragliola Al-Pragliola force-pushed the al-pragliola-change-build-process branch from ef3a77d to 843a353 Compare July 18, 2025 15:08
Signed-off-by: Alessio Pragliola <[email protected]>
Signed-off-by: Alessio Pragliola <[email protected]>
Signed-off-by: Alessio Pragliola <[email protected]>
Signed-off-by: Alessio Pragliola <[email protected]>
@Al-Pragliola Al-Pragliola marked this pull request as ready for review July 18, 2025 15:29
Copy link
Member

@pboyd pboyd left a comment

Choose a reason for hiding this comment

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

/lgtm

Seems like this should speed up our local image builds too.

Copy link
Contributor

@rareddy rareddy left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Good work @Al-Pragliola!

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rareddy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit c843a03 into kubeflow:main Jul 18, 2025
26 checks passed
tarilabs added a commit to tarilabs/model-registry that referenced this pull request Jul 19, 2025
follow-up to kubeflow#1334

The build-and-push-image workflow was incorrectly calling the prepare.yml
as a step action instead of using it as a reusable workflow. This caused
the error "Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under
.github/workflows/prepare.yml".

Example: https://github.com/kubeflow/model-registry/actions/runs/16379707719/job/46288348593

The prepare job is already correctly called at the top of the jobs section,
so the duplicate call in the steps was unnecessary and likely the cause
of the failure.

Signed-off-by: Matteo Mortari <[email protected]>
@Al-Pragliola Al-Pragliola deleted the al-pragliola-change-build-process branch July 19, 2025 05:23
google-oss-prow bot pushed a commit that referenced this pull request Jul 19, 2025
…ml (#1336)

follow-up to #1334

The build-and-push-image workflow was incorrectly calling the prepare.yml
as a step action instead of using it as a reusable workflow. This caused
the error "Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under
.github/workflows/prepare.yml".

Example: https://github.com/kubeflow/model-registry/actions/runs/16379707719/job/46288348593

The prepare job is already correctly called at the top of the jobs section,
so the duplicate call in the steps was unnecessary and likely the cause
of the failure.

Signed-off-by: Matteo Mortari <[email protected]>
Taj010 pushed a commit to Taj010/model-registry that referenced this pull request Aug 8, 2025
* feat: remove linting/gen from dockerfile

Signed-off-by: Alessio Pragliola <[email protected]>

* fix: missing checkout in action

Signed-off-by: Alessio Pragliola <[email protected]>

* fix: change prepare step

Signed-off-by: Alessio Pragliola <[email protected]>

* feat: make test target atomic

Signed-off-by: Alessio Pragliola <[email protected]>

* feat: make the jobs depend on prepare

Signed-off-by: Alessio Pragliola <[email protected]>

---------

Signed-off-by: Alessio Pragliola <[email protected]>
Signed-off-by: Taj010 <[email protected]>
Taj010 pushed a commit to Taj010/model-registry that referenced this pull request Aug 8, 2025
…ml (kubeflow#1336)

follow-up to kubeflow#1334

The build-and-push-image workflow was incorrectly calling the prepare.yml
as a step action instead of using it as a reusable workflow. This caused
the error "Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under
.github/workflows/prepare.yml".

Example: https://github.com/kubeflow/model-registry/actions/runs/16379707719/job/46288348593

The prepare job is already correctly called at the top of the jobs section,
so the duplicate call in the steps was unnecessary and likely the cause
of the failure.

Signed-off-by: Matteo Mortari <[email protected]>
Signed-off-by: Taj010 <[email protected]>
Taj010 pushed a commit to Taj010/model-registry that referenced this pull request Aug 8, 2025
* feat: remove linting/gen from dockerfile

Signed-off-by: Alessio Pragliola <[email protected]>

* fix: missing checkout in action

Signed-off-by: Alessio Pragliola <[email protected]>

* fix: change prepare step

Signed-off-by: Alessio Pragliola <[email protected]>

* feat: make test target atomic

Signed-off-by: Alessio Pragliola <[email protected]>

* feat: make the jobs depend on prepare

Signed-off-by: Alessio Pragliola <[email protected]>

---------

Signed-off-by: Alessio Pragliola <[email protected]>
Signed-off-by: Taj010 <[email protected]>
Taj010 pushed a commit to Taj010/model-registry that referenced this pull request Aug 8, 2025
…ml (kubeflow#1336)

follow-up to kubeflow#1334

The build-and-push-image workflow was incorrectly calling the prepare.yml
as a step action instead of using it as a reusable workflow. This caused
the error "Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under
.github/workflows/prepare.yml".

Example: https://github.com/kubeflow/model-registry/actions/runs/16379707719/job/46288348593

The prepare job is already correctly called at the top of the jobs section,
so the duplicate call in the steps was unnecessary and likely the cause
of the failure.

Signed-off-by: Matteo Mortari <[email protected]>
Signed-off-by: Taj010 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants