Skip to content

Commit 5fad18d

Browse files
committed
chore: readd proto/gen to make ci faster
- addresses #236
1 parent e9dfbbd commit 5fad18d

File tree

180 files changed

+58592
-42
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+58592
-42
lines changed

.github/workflows/pr.yml

-19
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ jobs:
5252
override: true
5353
profile: minimal
5454
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # ratchet:Swatinem/rust-cache@v2
55-
- name: Install buf
56-
run: BIN="/usr/local/bin" && VERSION="1.31.0" && curl -sSL "https://github.com/bufbuild/buf/releases/download/v${VERSION}/buf-$(uname -s)-$(uname -m)" -o "${BIN}/buf" && chmod +x "${BIN}/buf"
57-
- run: make proto
5855
- uses: taiki-e/cache-cargo-install-action@5b024fe3a0a2c7f2aaff0e47871acf0d14b07207 # ratchet:taiki-e/cache-cargo-install-action@v1
5956
with:
6057
tool: wasm-bindgen-cli
@@ -90,12 +87,6 @@ jobs:
9087
with:
9188
toolchain: stable
9289
profile: minimal
93-
- name: Set up Homebrew
94-
id: set-up-homebrew
95-
uses: Homebrew/actions/setup-homebrew@35cdeaf60df48fb1fb7eac25fea4ebde1f72fc46 # ratchet:Homebrew/actions/setup-homebrew@master
96-
- name: Install buf
97-
run: brew install bufbuild/buf/buf
98-
- run: make proto
9990
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # ratchet:Swatinem/rust-cache@v2
10091
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # ratchet:actions-rs/cargo@v1
10192
with:
@@ -116,12 +107,6 @@ jobs:
116107
- uses: taiki-e/cache-cargo-install-action@5b024fe3a0a2c7f2aaff0e47871acf0d14b07207 # ratchet:taiki-e/cache-cargo-install-action@v1
117108
with:
118109
tool: wasm-bindgen-cli
119-
- name: Set up Homebrew
120-
id: set-up-homebrew
121-
uses: Homebrew/actions/setup-homebrew@35cdeaf60df48fb1fb7eac25fea4ebde1f72fc46 # ratchet:Homebrew/actions/setup-homebrew@master
122-
- name: Install buf
123-
run: brew install bufbuild/buf/buf
124-
- run: make proto
125110
- name: Check CI scripts
126111
run: make rust_build
127112
rust-build-windows:
@@ -134,10 +119,6 @@ jobs:
134119
with:
135120
toolchain: stable
136121
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # ratchet:Swatinem/rust-cache@v2
137-
- uses: MinoruSekine/setup-scoop@6435f41324fa55988d8ce5b06bae5cafc75fe045 # ratchet:MinoruSekine/setup-scoop@v4
138-
- name: Install buf
139-
run: scoop install buf
140-
- run: make proto
141122
- name: Check CI scripts
142123
run: cargo build
143124
sqlfluff-template:

.github/workflows/release-cli.yml

-13
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ jobs:
4444
toolchain: stable
4545
profile: minimal
4646
if: ${{ !matrix.platform.cross }}
47-
- name: Install buf
48-
run: BIN="/usr/local/bin" && VERSION="1.31.0" && curl -sSL "https://github.com/bufbuild/buf/releases/download/v${VERSION}/buf-$(uname -s)-$(uname -m)" -o "${BIN}/buf" && chmod +x "${BIN}/buf"
49-
- run: make proto
5047
- name: Install cross
5148
run: cargo install cross
5249
- name: Build binary (*nix)
@@ -84,9 +81,6 @@ jobs:
8481
steps:
8582
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # ratchet:actions/checkout@v3
8683
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # ratchet:Swatinem/rust-cache@v2
87-
- name: Install buf
88-
run: BIN="/usr/local/bin" && VERSION="1.31.0" && curl -sSL "https://github.com/bufbuild/buf/releases/download/v${VERSION}/buf-$(uname -s)-$(uname -m)" -o "${BIN}/buf" && chmod +x "${BIN}/buf"
89-
- run: make proto
9084
- name: Set up Rust
9185
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # ratchet:actions-rs/toolchain@v1
9286
with:
@@ -140,9 +134,6 @@ jobs:
140134
profile: minimal
141135
if: ${{ !matrix.platform.cross }}
142136
- run: rustup target add x86_64-apple-darwin
143-
- name: Install buf
144-
run: BIN="/usr/local/bin" && VERSION="1.31.0" && curl -sSL "https://github.com/bufbuild/buf/releases/download/v${VERSION}/buf-$(uname -s)-$(uname -m)" -o "${BIN}/buf" && chmod +x "${BIN}/buf"
145-
- run: make proto
146137
- name: Install cross
147138
run: cargo install cross
148139
- name: Install aarch rust target
@@ -225,10 +216,6 @@ jobs:
225216
with:
226217
toolchain: stable
227218
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # ratchet:Swatinem/rust-cache@v2
228-
- uses: MinoruSekine/setup-scoop@6435f41324fa55988d8ce5b06bae5cafc75fe045 # ratchet:MinoruSekine/setup-scoop@v4
229-
- name: Install buf
230-
run: scoop install buf
231-
- run: make proto
232219
- run: cargo build --release
233220
- name: Extract version from tag
234221
id: version

.github/workflows/release-vsix.yml

-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ jobs:
3535
- uses: taiki-e/cache-cargo-install-action@5b024fe3a0a2c7f2aaff0e47871acf0d14b07207 # ratchet:taiki-e/cache-cargo-install-action@v1
3636
with:
3737
tool: wasm-bindgen-cli
38-
- name: Install buf
39-
run: BIN="/usr/local/bin" && VERSION="1.31.0" && curl -sSL "https://github.com/bufbuild/buf/releases/download/v${VERSION}/buf-$(uname -s)-$(uname -m)" -o "${BIN}/buf" && chmod +x "${BIN}/buf"
40-
- run: make proto
4138
- name: Build rust wasm
4239
run: make rust_build_wasm
4340
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # ratchet:actions/setup-node@v3

.github/workflows/rust-lint.yml

-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ jobs:
2323
target: wasm32-unknown-unknown
2424
override: true
2525
components: rustfmt, clippy
26-
- name: Install buf
27-
run: BIN="/usr/local/bin" && VERSION="1.31.0" && curl -sSL "https://github.com/bufbuild/buf/releases/download/v${VERSION}/buf-$(uname -s)-$(uname -m)" -o "${BIN}/buf" && chmod +x "${BIN}/buf"
28-
- run: make proto
2926
- name: Run cargo fmt
3027
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # ratchet:actions-rs/cargo@v1
3128
with:

.gitignore

-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
.idea
44

5-
# Generated proto
6-
7-
proto/gen
8-
95
# Terrraform
106

117
auth_details.tf
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
// @generated by protoc-gen-es v1.9.0 with parameter "target=ts"
2+
// @generated from file quary/service/v1/chart_file.proto (package quary.service.v1, syntax proto3)
3+
/* eslint-disable */
4+
// @ts-nocheck
5+
6+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7+
import { Message, proto3, Struct } from "@bufbuild/protobuf";
8+
9+
/**
10+
* CharFile is a representation of a chart that can be used to generate a visualization.
11+
*
12+
* @generated from message quary.service.v1.ChartFile
13+
*/
14+
export class ChartFile extends Message<ChartFile> {
15+
/**
16+
* description of the cart
17+
*
18+
* @generated from field: optional string description = 2;
19+
*/
20+
description?: string;
21+
22+
/**
23+
* Tags are used to group different parts of the project together. For example, you could tag all models that are
24+
* related to a specific department with the same tag.
25+
*
26+
* @generated from field: repeated string tags = 3;
27+
*/
28+
tags: string[] = [];
29+
30+
/**
31+
* Where the data comes from
32+
*
33+
* @generated from oneof quary.service.v1.ChartFile.source
34+
*/
35+
source: {
36+
/**
37+
* raw sql that is passed to the database
38+
*
39+
* @generated from field: string raw_sql = 4;
40+
*/
41+
value: string;
42+
case: "rawSql";
43+
} | {
44+
/**
45+
* sql that is passed to the database with templating through quary
46+
*
47+
* @generated from field: string pre_templated_sql = 5;
48+
*/
49+
value: string;
50+
case: "preTemplatedSql";
51+
} | {
52+
/**
53+
* reference to a pre-existing asset, model, source, seed, snapshot
54+
*
55+
* @generated from field: quary.service.v1.ChartFile.AssetReference reference = 6;
56+
*/
57+
value: ChartFile_AssetReference;
58+
case: "reference";
59+
} | { case: undefined; value?: undefined } = { case: undefined };
60+
61+
/**
62+
* Configuration for the chart that is passed to perspective
63+
*
64+
* @generated from field: google.protobuf.Struct config = 7;
65+
*/
66+
config?: Struct;
67+
68+
constructor(data?: PartialMessage<ChartFile>) {
69+
super();
70+
proto3.util.initPartial(data, this);
71+
}
72+
73+
static readonly runtime: typeof proto3 = proto3;
74+
static readonly typeName = "quary.service.v1.ChartFile";
75+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
76+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
77+
{ no: 3, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
78+
{ no: 4, name: "raw_sql", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "source" },
79+
{ no: 5, name: "pre_templated_sql", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "source" },
80+
{ no: 6, name: "reference", kind: "message", T: ChartFile_AssetReference, oneof: "source" },
81+
{ no: 7, name: "config", kind: "message", T: Struct },
82+
]);
83+
84+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChartFile {
85+
return new ChartFile().fromBinary(bytes, options);
86+
}
87+
88+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChartFile {
89+
return new ChartFile().fromJson(jsonValue, options);
90+
}
91+
92+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChartFile {
93+
return new ChartFile().fromJsonString(jsonString, options);
94+
}
95+
96+
static equals(a: ChartFile | PlainMessage<ChartFile> | undefined, b: ChartFile | PlainMessage<ChartFile> | undefined): boolean {
97+
return proto3.util.equals(ChartFile, a, b);
98+
}
99+
}
100+
101+
/**
102+
* @generated from message quary.service.v1.ChartFile.AssetReference
103+
*/
104+
export class ChartFile_AssetReference extends Message<ChartFile_AssetReference> {
105+
/**
106+
* @generated from field: string name = 1;
107+
*/
108+
name = "";
109+
110+
constructor(data?: PartialMessage<ChartFile_AssetReference>) {
111+
super();
112+
proto3.util.initPartial(data, this);
113+
}
114+
115+
static readonly runtime: typeof proto3 = proto3;
116+
static readonly typeName = "quary.service.v1.ChartFile.AssetReference";
117+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
118+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
119+
]);
120+
121+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChartFile_AssetReference {
122+
return new ChartFile_AssetReference().fromBinary(bytes, options);
123+
}
124+
125+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChartFile_AssetReference {
126+
return new ChartFile_AssetReference().fromJson(jsonValue, options);
127+
}
128+
129+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChartFile_AssetReference {
130+
return new ChartFile_AssetReference().fromJsonString(jsonString, options);
131+
}
132+
133+
static equals(a: ChartFile_AssetReference | PlainMessage<ChartFile_AssetReference> | undefined, b: ChartFile_AssetReference | PlainMessage<ChartFile_AssetReference> | undefined): boolean {
134+
return proto3.util.equals(ChartFile_AssetReference, a, b);
135+
}
136+
}
137+

0 commit comments

Comments
 (0)