Skip to content

Commit c9b6fbf

Browse files
authored
Bring back workflow CI (#3108)
* fix typo * update setuptools in Docker
1 parent a0ddf7b commit c9b6fbf

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

docker/step/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ RUN /bin/bash -c 'if [ "$FIND_FASTED_MIRROR" == "true" ]; then source find_faste
1919
dpkg-reconfigure --frontend noninteractive tzdata && \
2020
ln -s /usr/bin/python3 /usr/bin/python && \
2121
ln -s /usr/bin/pip3 /usr/bin/pip && \
22-
pip install --upgrade pip
22+
pip install --upgrade pip && \
23+
pip install -U setuptools
2324

2425
# Build python wheels in sub stage so we can
2526
# keep the outcome and discard the build tool-chain

python/runtime/dbapi/pyalisa/client.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _create_task(self, params):
112112
# display column type, for feature derivation.
113113
nenv["SHOW_COLUMN_TYPE"] = "true"
114114
params["Envs"] = json.dumps(nenv)
115-
val = self._requet_and_parse_response("CreateAlisaTask", params)
115+
val = self._request_and_parse_response("CreateAlisaTask", params)
116116
return val["alisaTaskId"], val["status"]
117117

118118
def get_status(self, task_id):
@@ -126,7 +126,7 @@ def get_status(self, task_id):
126126
"""
127127
params = self._base_params()
128128
params["AlisaTaskId"] = task_id
129-
val = self._requet_and_parse_response("GetAlisaTask", params)
129+
val = self._request_and_parse_response("GetAlisaTask", params)
130130
return AlisaTaksStatus(int(val["status"]))
131131

132132
def completed(self, status):
@@ -165,7 +165,7 @@ def read_logs(self, task_id, offset, w):
165165
params = self._base_params()
166166
params["AlisaTaskId"] = task_id
167167
params["Offset"] = str(offset)
168-
log = self._requet_and_parse_response("GetAlisaTaskLog", params)
168+
log = self._request_and_parse_response("GetAlisaTaskLog", params)
169169
rlen = int(log["readLength"])
170170
if rlen == 0:
171171
return offset
@@ -186,8 +186,8 @@ def count_results(self, task_id):
186186
"""
187187
params = self._base_params()
188188
params["AlisaTaskId"] = task_id
189-
res = self._requet_and_parse_response("GetAlisaTaskResultCount",
190-
params)
189+
res = self._request_and_parse_response("GetAlisaTaskResultCount",
190+
params)
191191
return int(res)
192192

193193
def get_results(self, task_id, batch):
@@ -210,7 +210,8 @@ def get_results(self, task_id, batch):
210210
params["AlisaTaskId"] = task_id
211211
params["Start"] = str(i)
212212
params["Limit"] = str(batch)
213-
val = self._requet_and_parse_response("GetAlisaTaskResult", params)
213+
val = self._request_and_parse_response("GetAlisaTaskResult",
214+
params)
214215
header, rows = self._parse_alisa_value(val)
215216
if len(columns) == 0:
216217
columns = header
@@ -229,7 +230,7 @@ def stop(self, task_id):
229230
"""
230231
params = self._base_params()
231232
params["AlisaTaskId"] = task_id
232-
res = self._requet_and_parse_response("StopAlisaTask", params)
233+
res = self._request_and_parse_response("StopAlisaTask", params)
233234
return bool(res)
234235

235236
def _parse_alisa_value(self, val):
@@ -254,7 +255,7 @@ def _parse_alisa_value(self, val):
254255
body.append(row)
255256
return columns, body
256257

257-
def _requet_and_parse_response(self, action, params):
258+
def _request_and_parse_response(self, action, params):
258259
params["Action"] = action
259260
params["ProjectEnv"] = self.config.env["SKYNET_SYSTEM_ENV"]
260261
url = self.config.pop_scheme + "://" + self.config.pop_url

0 commit comments

Comments
 (0)