Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
Committed-by: xiaolei.zl from Dev container
  • Loading branch information
zhanglei1949 committed Dec 19, 2024
1 parent 7e9f196 commit 4652c7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/interactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,6 @@ jobs:
bash hqps_sdk_test.sh ${TMP_INTERACTIVE_WORKSPACE} ./interactive_config_test.yaml python
sed -i 's/temp_workspace/interactive_workspace/g' ./interactive_config_test.yaml
sed -i 's/thread_num_per_worker: 4/thread_num_per_worker: 1/g' ./interactive_config_test.yaml
- name: Setup tmate session
if: true
uses: mxschmitt/action-tmate@v3
- name: Robustness test
env:
Expand Down
2 changes: 1 addition & 1 deletion flex/tests/hqps/interactive_config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ compute_engine:
type: hiactor
workers:
- localhost:10000
thread_num_per_worker: 1
thread_num_per_worker: 4
store:
type: cpp-mcsr
metadata_store:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
public class HttpIrMetaReader implements IrMetaReader {
private static final String CONTENT_TYPE = "Content-Type";
private static final String APPLICATION_JSON = "application/json; utf-8";
private static final int TIME_OUT_SECONDS = 1; // Expect to get response in 1 second
private final HttpClient httpClient;
private final Configs configs;

Expand Down Expand Up @@ -129,6 +130,7 @@ private HttpResponse<String> sendRequest(String requestUri)
.uri(URI.create(requestUri))
.headers(CONTENT_TYPE, APPLICATION_JSON)
.GET()
.timeout(java.time.Duration.ofSeconds(TIME_OUT_SECONDS))
.build();
return httpClient.send(request, HttpResponse.BodyHandlers.ofString());
}
Expand Down

0 comments on commit 4652c7a

Please sign in to comment.