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

Extract building dist package out of prestoadmin_installer #195

Closed

Conversation

kokosing
Copy link
Contributor

Extract building dist package out of prestoadmin_installer

Build binary files seems to be a better task for the build tool (like make) than
for the product tests framework. Moreover product tests framework was
caching the result in the tmp/installer directory so when the changes
were introduced to presto-admin, package was not rebuild. So it was easy
to run product tests with the old version of product-tests.

Instead of that building distribution package was moved to Makefile.
Moreover, disregarding how this file is created it will be stored in
dist directory. No more need for having tmp/installer.

Fixes #189

Build binary files seems to be a better task for the build tool (like make) than
for the product tests framework. Moreover product tests framework was
caching the result in the `tmp/installer` directory so when the changes
were introduced to presto-admin, package was not rebuild. So it was easy
to run product tests with the old version of product-tests.

Instead of that building distribution package was moved to Makefile.
Moreover, disregarding how this file is created it will be stored in
`dist` directory. No more need for having `tmp/installer`.

Fixes prestodb#189

Pull request: prestodb#195
@@ -17,11 +17,12 @@ env:
- PRODUCT_TEST_GROUP=5
- PRODUCT_TEST_GROUP=6
- PRODUCT_TEST_GROUP=7
install:
before_script:
- pip install --upgrade pip==6.1.1
Copy link
Member

Choose a reason for hiding this comment

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

not related to this change, but the pip version in requirements.txt is 7.1.2 (and maybe should be bumped up to the latest version of pip)

@kokosing kokosing force-pushed the feature_extract_dist_package branch from 1d451dd to 3b95e7b Compare July 1, 2016 07:11
@kokosing
Copy link
Contributor Author

kokosing commented Jul 1, 2016

I applied the comments, but I am not going to push it until we have travis working so I am sure I didn't break anything.

@petroav
Copy link
Contributor

petroav commented Jul 1, 2016

@kokosing just an FYI that for any changes to Travis presto-admin configuration make sure to talk to @zachyee who has been working on separating out tests into groups and is investigating how to fix the '10 minute no output' problem.

docker-dist: docker-dist-online

docker-dist-online: clean-build clean-pyc
docker run --rm -v `pwd`:/workdir -w /workdir -u `id -u`:`id -g` teradatalabs/presto-admin-devenv:1 make dist-online
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please update the readme to cover the following:

  1. When you'd want to run dist-<online|offline> vs docker-dist<online|offline>
  2. What python gets used to build the installers when you make any of the above targets
  3. Where the installer ends up.

Thanks!

@ebd2
Copy link
Contributor

ebd2 commented Jul 11, 2016

This is an awesome clean-up! Thanks so much for taking care of this.

I am delighted to see all the magic in prestoadmin_installer.py being removed.

@ebd2
Copy link
Contributor

ebd2 commented Dec 8, 2016

Travis is working-ish; can you please rebase this after we release presto-admin so we can get this in?

@kokosing
Copy link
Contributor Author

kokosing commented Mar 2, 2017

I am going to rebase this pull request, so far I extracted this: #320

@kokosing kokosing closed this Dec 12, 2017
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