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

refactor: reorganize the Coordinator and gsctl to adapt to the unified schema on FLEX Interactive #3718

Merged
merged 16 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GraphScope Flex CI (Dummy)
name: Flex Interactive CI (Dummy)

on:
pull_request:
Expand All @@ -7,15 +7,15 @@ on:
paths:
- '**'
- '!flex/**'
- '!.github/workflows/flex.yml'
- '!.github/workflows/flex-interactive.yml'

concurrency:
group: ${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
build-gae:
build:
runs-on: ubuntu-20.04
if: ${{ github.repository == 'alibaba/GraphScope' }}
steps:
- run: 'echo "No action required" '
- run: 'echo "No action required" '
64 changes: 64 additions & 0 deletions .github/workflows/flex-interactive.yml
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
214 changes: 0 additions & 214 deletions .github/workflows/flex.yml

This file was deleted.

Loading
Loading