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

chore(build): remove build process from repo #319

Merged
merged 5 commits into from
Sep 9, 2020

Conversation

mittachaitu
Copy link

@mittachaitu mittachaitu commented Sep 4, 2020

Signed-off-by: mittachaitu sai.chaithanya@mayadata.io

Pull Request template

Please, go through these steps before you submit a PR. ## Remove this line

Why is this PR required? What issue does it fix?:
This PR is required to incorporate CDDL license comments on cStor repo.

What this PR does?:
This PR does the following changes:

  • Moves the main process i.e zrepl from openebs/cstor to openebs/libcstor.
  • Move the build process from openebs/cstor to openebs/libcstor.
  • Updates the downstream repo from openebs/istgt to openebs/libcstor.
  • Updates the fio version in Travis to fix flakey issues.

Does this PR require any upgrade changes?:
No

If the changes in this PR are manually verified, list down the scenarios covered and commands you used for testing with logs:

Any additional information for your reviewer?:
Mention if this PR is part of any design or a continuation of previous PRs

Checklist:

  • Fixes #
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Has the change log section been updated?
  • Commit has unit tests
  • Commit has integration tests
  • (Optional) Are upgrade changes included in this PR? If not, mention the issue/PR to track:
  • (Optional) If documentation changes are required, which issue on https://github.com/openebs/openebs-docs is used to track them:

Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
mittachaitu added 2 commits September 5, 2020 11:48
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
mynktl
mynktl previously approved these changes Sep 9, 2020
@@ -169,7 +164,7 @@ script:

REL_BRANCH=$(echo $(echo "$TRAVIS_TAG" | cut -d'-' -f1 | rev | cut -d'.' -f2- | rev).x$REL_SUFFIX);

./buildscripts/git-release "$REPO_ORG/istgt" "$TRAVIS_TAG" "$REL_BRANCH" || travis_terminate 1;
./buildscripts/git-release "$REPO_ORG/libcstor" "$TRAVIS_TAG" "$REL_BRANCH" || travis_terminate 1;

Choose a reason for hiding this comment

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

what is this steps supposed to do? why this change required?

Copy link
Author

Choose a reason for hiding this comment

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

This will help to trigger the release on the downstream repo from Travis... Since with this PR, images will be built from libcstor after i.e only after completing the libcstor Travis images & code will be pushed to corresponding image repositories and source repositories...

Existing system: Since images are pushed from cstor triggering istgt release from cstor is good(With this PR things will change).

Release flow(For creating release images):
Existing flow: openebs/linux-utils ---> openebs/libcstor ---> openebs/cstor ---> openebs/istgt ....
Updated flow: openebs/linux-utils ---> openebs/cstor ---> openebs/libcstor ---> openebs/istgt ....

Copy link
Member

Choose a reason for hiding this comment

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

@mittachaitu let us keep the old flow, as libcstor will become the main repo later on (we will probably rename it) which will tag all dependant repo.

Copy link
Author

Choose a reason for hiding this comment

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

Ok so you mean cstor and istgt will be triggered from libcstor itself(after renaming it).... that makes sense.

Then I no need to raise a PR in openebs/linux-utils cc: @kmova

Copy link
Member

@pawanpraka1 pawanpraka1 Sep 9, 2020

Choose a reason for hiding this comment

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

I see, we need base image first. We can build everything from libcstor. and cstor will be just a dependency.

Copy link
Author

Choose a reason for hiding this comment

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

We are building a base image from libcstor itself https://github.com/openebs/libcstor/blob/35c939ccb7473e2674a3fe9877c33cd74115740a/build_image.sh#L120. So can I change it to(Since base and main images is built from libcstor)

                                                   --------> openebs/cstor
openebs/linux-utils ---> openebs/libcstor  ----->  |
                                                   --------> openebs/istgt ----> other dependent repos

Copy link
Member

@pawanpraka1 pawanpraka1 Sep 9, 2020

Choose a reason for hiding this comment

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

@mittachaitu I see a problem. The image should be pushed at last. And since we are now pushing from libcstor, that should be done after build is successful on cstor. So cstor should be tagged first.

The other thing is, we any way build everything from libcstor, so tagging cstor does not serve any purpose. just that we have marked the code for a particular tag.

let us go ahead with the way you did, later on we will decide how can we do that.

Copy link
Author

Choose a reason for hiding this comment

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

Can I remove the triggering downstream repo from cstor?

Copy link
Author

Choose a reason for hiding this comment

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

let us go ahead with the way you did, later on we will decide how can we do that.

Ok

Choose a reason for hiding this comment

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

yeah.. triggering builds from cstor can be removed.

.travis.yml Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
Copy link
Member

@pawanpraka1 pawanpraka1 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. few minor comments.

@pawanpraka1
Copy link
Member

@mittachaitu add the changelog in this PR.

Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
Copy link
Member

@pawanpraka1 pawanpraka1 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.

@vishnuitta
Copy link

this PR and libcstor PR openebs-archive/libcstor#70 are dependent on each other.. so, merging this PR even if the travis is failing

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