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

EVEREST-107: automate veneer update during release #343

Merged
6 commits merged into from
May 31, 2024

Conversation

ghost
Copy link

@ghost ghost commented May 30, 2024

Automate veneer update during a release

@ghost ghost self-requested a review as a code owner May 30, 2024 09:21
Copy link
Contributor

@oksana-grishchenko oksana-grishchenko left a comment

Choose a reason for hiding this comment

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

Thanks Michal for implementing the changes! Left some comments.

Tips and tricks to test the pipelines:

  1. Define env variables like this instead of using the github input values directly, it allows to substitute them easily to a hardcoded values during testing.
  2. Create a separate branch for tests from your feature branch to not mess things up. In that branch CI file:
    a) add the push events to the "on" section for your test branch:
on:
  push:
    branches:
      - test-automate-veneer-update

so the workflow will run every time you push smth to the branch.
b) delete all non-related parts of the pipeline so that it would run faster and only the part you'd like to test.
c) comment out all push commands (to github or to dockerhub) so that the CI wouldn't change the actual repos state (you can always print out the git repo state using echo command). But if you still push something, do not forget to clean it up manually.
d) Redefine the constants from section 1 to some hardcoded value you'd like to test.
e) Commit and push, the pipeline will run.

@ghost ghost requested a review from oksana-grishchenko May 31, 2024 07:42
@ghost ghost self-requested a review as a code owner May 31, 2024 09:03
@ghost ghost force-pushed the EVEREST-107-automate-veneer-update branch from 1ad0d09 to 124c199 Compare May 31, 2024 09:04
Copy link
Contributor

@oksana-grishchenko oksana-grishchenko left a comment

Choose a reason for hiding this comment

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

Looks good, thank you for the implementation. Tested the new part separately - should work fine. As I mentioned in the DM the only thing is missing is to update the tool on the everest-catalog's side so it wouldn't add

---

at the end of the veneer file, bc otherwise the opm tool can't parse the file correctly with
object '' is missing root schema field

However the current PR does not need any more changes, so I think it could be merged.

@ghost ghost enabled auto-merge (squash) May 31, 2024 13:17
@ghost
Copy link
Author

ghost commented May 31, 2024

Looks good, thank you for the implementation. Tested the new part separately - should work fine. As I mentioned in the DM the only thing is missing is to update the tool on the everest-catalog's side so it wouldn't add

---

at the end of the veneer file, bc otherwise the opm tool can't parse the file correctly with object '' is missing root schema field

However the current PR does not need any more changes, so I think it could be merged.

percona/everest-catalog#24

@ghost ghost merged commit d644734 into main May 31, 2024
11 checks passed
@ghost ghost deleted the EVEREST-107-automate-veneer-update branch May 31, 2024 14:23
This pull request was closed.
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.

1 participant