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

Test background hive server #409

Conversation

typhoonzero
Copy link
Collaborator

@typhoonzero typhoonzero commented May 20, 2019

@typhoonzero typhoonzero changed the title [WIP] Test background hive server Test background hive server May 21, 2019
wangkuiyi
wangkuiyi previously approved these changes May 21, 2019
@@ -30,7 +30,8 @@ script:
- docker build -t sqlflow:latest -f Dockerfile .
- docker run --rm -v $GOPATH/src:/go/src -w /go/src/github.com/sql-machine-learning/sqlflow sqlflow:latest pre-commit run -a
- docker run --rm -v $GOPATH:/go -w /go/src/github.com/sql-machine-learning/sqlflow sqlflow:latest bash scripts/test.sh
- docker run --rm -v $GOPATH:/go -w /go/src/github.com/sql-machine-learning/sqlflow sqlflow/gohive:dev bash scripts/test_hive.sh
- docker run -d --name=hive -p 10000:10000 -p 10002:10002 -p 8040:8040 -p 8042:8042 -p 9864:9864 -p 9866:9866 -p 9867:9867 -p 9870:9870 -p 8020:8020 -p 8899:8899 sqlflow/gohive:dev python3 -m http.server 8899
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we move these very long commands into a shell script file so we could have a chance to write comments explaining like why we'd export ports like 10002, 8040, 9846, 9866, and 9867?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added comments in .traivs.yml

sleep 5
fi
done

Copy link
Collaborator

Choose a reason for hiding this comment

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

Since we are switching back to sqlflow/sqlflow:latest, the following lines can be removed.

set -e
. /miniconda/etc/profile.d/conda.sh
source activate sqlflow-dev

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, will clean up in next PR.

@typhoonzero typhoonzero merged commit 76eeab9 into sql-machine-learning:develop May 22, 2019
@typhoonzero typhoonzero deleted the ci_run_hive_server_in_background branch August 14, 2019 02:52
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