Skip to content

Commit 94a02d7

Browse files
authored
fix(interactive): Fix Interactive CI (#4335)
Use a fixed `openapi-generator` version to make codegen repeatable. Related CI failure: https://github.com/alibaba/GraphScope/actions/runs/11948608684/job/33307061458
1 parent cd4a6cd commit 94a02d7

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

flex/interactive/sdk/generate_sdk.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ DEVELOPER_NAME="GraphScope Team"
3030
LICENSE_NAME="Apache-2.0"
3131
LICENSE_URL="https://www.apache.org/licenses/LICENSE-2.0.html"
3232
LOG_LEVEL="error"
33-
33+
export OPENAPI_GENERATOR_VERSION=7.2.0
3434

3535
#get current bash scrip's directory
3636
CUR_DIR=$(cd `dirname $0`; pwd)
@@ -129,7 +129,6 @@ function install_generator() {
129129
curl https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/bin/utils/openapi-generator-cli.sh > ~/bin/openapitools/openapi-generator-cli
130130
chmod u+x ~/bin/openapitools/openapi-generator-cli
131131
export PATH=$PATH:~/bin/openapitools/
132-
export OPENAPI_GENERATOR_VERSION=7.2.0
133132
fi
134133
# on ubuntu apt-get jq on mac brew install jq
135134

flex/interactive/sdk/python/gs_interactive/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,5 +477,5 @@ def update_procedure(sess: Session, graph_id: str, proc_id: str, desc: str):
477477
def start_service_on_graph(interactive_session, graph_id: str):
478478
resp = interactive_session.start_service(StartServiceRequest(graph_id=graph_id))
479479
assert resp.is_ok()
480-
# wait one second to let compiler get the new graph
481-
time.sleep(1)
480+
# wait three second to let compiler get the new graph
481+
time.sleep(3)

flex/interactive/sdk/python/gs_interactive/tests/test_robustness.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,3 @@ def test_custom_pk_name(
290290
records = result.fetch(1)
291291
assert len(records) == 1 and records[0]["$f0"] == 2
292292
start_service_on_graph(interactive_session, "1")
293-
sleep(
294-
3
295-
) # sleep for a while to make sure the compiler has updated to the new schema

0 commit comments

Comments
 (0)