-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: reorganize the Coordinator and gsctl to adapt to the unifie…
…d schema on FLEX Interactive (#3718) - Reorganize the Coordinator and `gsctl` to adapt to the unified schema on FLEX Interactive - Add Coordinator API doc generated by swagger - Add E2E API interface test on Flex Interactive - Build Interactive image by `gsctl flexbuild` command - Unify GraphScope Coordinator and Flex Coordinator into same process - Install `gsctl` by `pip3 install gsctl` command
- Loading branch information
1 parent
c2e35fd
commit 00735b7
Showing
338 changed files
with
22,942 additions
and
30,433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Flex Interactive CI | ||
|
||
on: | ||
# Trigger the workflow on push or pull request, | ||
# but only for the main branch | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'flex/**' | ||
- '.github/workflows/flex-interactive.yml' | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'flex/**' | ||
- '.github/workflows/flex-interactive.yml' | ||
|
||
concurrency: | ||
group: ${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
api-test: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Add envs to GITHUB_ENV | ||
run: | | ||
short_sha=$(git rev-parse --short HEAD) | ||
echo "SHORT_SHA=${short_sha}" >> $GITHUB_ENV | ||
- name: Build Image | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/python | ||
python3 -m pip install --upgrade pip && python3 -m pip install -r requirements.txt && python3 setup.py build_proto | ||
cd ${GITHUB_WORKSPACE} | ||
python3 ./gsctl.py flexbuild interactive --app docker | ||
- name: Build gsctl Wheel Package | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/python | ||
python3 setup_gsctl.py bdist_wheel | ||
- name: Setup tmate session | ||
uses: mxschmitt/action-tmate@v3 | ||
if: false | ||
|
||
- name: Test | ||
run: | | ||
# install gsctl | ||
python3 -m pip install ${GITHUB_WORKSPACE}/python/dist/*.whl | ||
# launch service: 8080 for coordinator http port; 7687 for cypher port; | ||
docker run -p 8080:8080 -p 7688:7687 registry.cn-hongkong.aliyuncs.com/graphscope/interactive:${SHORT_SHA}-x86_64 --enable-coordinator & | ||
sleep 20 | ||
# test | ||
python3 -m pip install --no-cache-dir pytest pytest-xdist | ||
python3 -m pytest -d --tx popen//python=python3 \ | ||
-s -v \ | ||
$(dirname $(python3 -c "import graphscope.gsctl as gsctl; print(gsctl.__file__)"))/tests/test_interactive.py |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.