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

Update CodeFlare operator to latest MCAD dev after every merged commit #575

Merged

Conversation

sutaakar
Copy link
Contributor

@sutaakar sutaakar commented Aug 14, 2023

Issue link

Fixes #574

What changes have been made

After every merged commit (once Build and Push dev MCAD image into Quay finishes) the workflow updates MCAD dependencies in CodeFlare operator repo and open a PR with changes. The PR will then run all tests to make sure that MCAD doesn't contain any changes which could break integration between MCAD and CodeFlare operator.

Verification steps

N/A
Tested locally, the result PR can be found here - project-codeflare/codeflare-operator#233

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • Testing is not required for this change

@sutaakar
Copy link
Contributor Author

@anishasthana - FYI the PR for opening a CFO PR in case of any change in MCAD

jobs:
update-codeflare-operator:
runs-on: ubuntu-latest
if: github.event.workflow_run.head_branch == 'main'
Copy link
Contributor

Choose a reason for hiding this comment

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

Should it also be checked that the workflow run was not in a fork?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, will add it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, added a condition to check repository name and make sure that only successful dev image build trigger the workflow.

@astefanutti
Copy link
Contributor

/lgtm

@sutaakar
Copy link
Contributor Author

@astefanutti Do you think that I should poke someone else to review or can this be merged?

@astefanutti
Copy link
Contributor

@sutaakar it's been open for two weeks so I think it's good to go :)

/approve

@openshift-ci
Copy link

openshift-ci bot commented Aug 31, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: astefanutti

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

The pull request process is described here

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

@openshift-merge-robot openshift-merge-robot merged commit 7d2602e into project-codeflare:main Aug 31, 2023
1 check passed
@sutaakar sutaakar deleted the operator-upgrade branch August 31, 2023 08:29
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.

Update CodeFlare operator to latest MCAD dev after every merged commit
3 participants