Skip to content

Commit 5f068bc

Browse files
authored
ci: fix publish dbg (#18464)
1 parent 9f7ad36 commit 5f068bc

File tree

2 files changed

+10
-59
lines changed

2 files changed

+10
-59
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,13 @@ jobs:
253253
target: ${{ matrix.target }}
254254
category: ${{ matrix.category }}
255255
artifacts: query.debug
256+
path: distro/bin
256257
- name: Prepare artifact
257258
id: prepare
258259
run: |
259260
publish_name="databend-query-${{ matrix.category }}-${{ needs.create_release.outputs.version }}-${{ matrix.target }}.debug.gz"
260-
gzip databend-query.debug
261-
mv databend-query.debug.gz ${publish_name}
261+
gzip distro/bin/databend-query.debug
262+
mv distro/bin/databend-query.debug.gz ${publish_name}
262263
echo "publish_name=${publish_name}" >> $GITHUB_OUTPUT
263264
- name: Upload to Release
264265
env:
@@ -493,13 +494,13 @@ jobs:
493494
version: ${{ needs.create_release.outputs.version }}
494495
arch: ${{ matrix.arch }}
495496

496-
bindings_python:
497-
# if: needs.create_release.outputs.type == 'stable'
498-
needs: create_release
499-
uses: ./.github/workflows/bindings.python.yml
500-
secrets: inherit
501-
with:
502-
version: ${{ needs.create_release.outputs.version }}
497+
# bindings_python:
498+
# # if: needs.create_release.outputs.type == 'stable'
499+
# needs: create_release
500+
# uses: ./.github/workflows/bindings.python.yml
501+
# secrets: inherit
502+
# with:
503+
# version: ${{ needs.create_release.outputs.version }}
503504

504505
notify:
505506
runs-on: ubuntu-latest

src/tests/sqlsmith/src/http_client.rs

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ use reqwest::header::HeaderValue;
2727
use reqwest::Client;
2828
use reqwest::ClientBuilder;
2929
use serde::Deserialize;
30-
use serde::Deserializer;
3130
use serde::Serialize;
32-
use serde::Serializer;
3331
use url::Url;
3432

3533
struct GlobalCookieStore {
@@ -89,54 +87,6 @@ pub(crate) struct HttpSessionConf {
8987
pub(crate) last_server_info: Option<ServerInfo>,
9088
#[serde(default)]
9189
pub(crate) last_query_ids: Vec<String>,
92-
/// hide state not useful to clients
93-
/// so client only need to know there is a String field `internal`,
94-
/// which need to carry with session/conn
95-
#[serde(default)]
96-
#[serde(skip_serializing_if = "Option::is_none")]
97-
#[serde(
98-
serialize_with = "serialize_as_json_string",
99-
deserialize_with = "deserialize_from_json_string"
100-
)]
101-
pub(crate) internal: Option<HttpSessionStateInternal>,
102-
}
103-
104-
#[derive(Deserialize, Serialize, Debug, Default, Clone, Eq, PartialEq)]
105-
pub struct HttpSessionStateInternal {
106-
/// value is JSON of Scalar
107-
variables: Vec<(String, String)>,
108-
pub last_query_result_cache_key: String,
109-
}
110-
111-
fn serialize_as_json_string<S>(
112-
value: &Option<HttpSessionStateInternal>,
113-
serializer: S,
114-
) -> std::result::Result<S::Ok, S::Error>
115-
where
116-
S: Serializer,
117-
{
118-
match value {
119-
Some(complex_value) => {
120-
let json_string =
121-
serde_json::to_string(complex_value).map_err(serde::ser::Error::custom)?;
122-
serializer.serialize_some(&json_string)
123-
}
124-
None => serializer.serialize_none(),
125-
}
126-
}
127-
128-
fn deserialize_from_json_string<'de, D>(
129-
deserializer: D,
130-
) -> std::result::Result<Option<HttpSessionStateInternal>, D::Error>
131-
where D: Deserializer<'de> {
132-
let json_string: Option<String> = Option::deserialize(deserializer)?;
133-
match json_string {
134-
Some(s) => {
135-
let complex_value = serde_json::from_str(&s).map_err(serde::de::Error::custom)?;
136-
Ok(Some(complex_value))
137-
}
138-
None => Ok(None),
139-
}
14090
}
14191

14292
#[derive(serde::Deserialize, Debug)]

0 commit comments

Comments
 (0)