Skip to content

Commit 8da56b5

Browse files
Re-organized repo (#158)
* Re-organized repo * Fixed CI * formatting * Updated names in quickstart * Updated readmes * Updated docker compose name
1 parent 1c25ac6 commit 8da56b5

603 files changed

Lines changed: 617 additions & 476 deletions

File tree

Some content is hidden

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

‎.github/workflows/docker.yml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ on:
44
push:
55
branches: [ main ]
66
paths:
7-
- 'CommonDependencies/installation/**'
8-
- 'Controller/**'
9-
- 'PrometheusClient/**'
7+
- 'asap-common/installation/**'
8+
- 'asap-planner/**'
9+
- 'asap-tools/prometheus-client/**'
1010
- '.github/workflows/docker.yml'
1111
pull_request:
1212
branches: [ main ]
1313
paths:
14-
- 'CommonDependencies/installation/**'
15-
- 'Controller/**'
16-
- 'PrometheusClient/**'
14+
- 'asap-common/installation/**'
15+
- 'asap-planner/**'
16+
- 'asap-tools/prometheus-client/**'
1717
- '.github/workflows/docker.yml'
1818
workflow_dispatch:
1919

@@ -28,7 +28,7 @@ jobs:
2828
uses: docker/setup-buildx-action@v3
2929

3030
- name: Build base image
31-
working-directory: CommonDependencies/installation
31+
working-directory: asap-common/installation
3232
run: |
3333
docker build \
3434
-t sketchdb-base:latest \
@@ -41,15 +41,15 @@ jobs:
4141
docker run --rm sketchdb-base:latest pip list
4242
4343
- name: Build Controller Docker image
44-
working-directory: Controller
44+
working-directory: asap-planner
4545
run: |
4646
docker build \
4747
-t sketchdb-controller:latest \
4848
-f Dockerfile \
4949
.
5050
5151
- name: Build PrometheusClient Docker image
52-
working-directory: PrometheusClient
52+
working-directory: asap-tools/prometheus-client
5353
run: |
5454
docker build \
5555
-t sketchdb-prometheus-client:latest \

‎.github/workflows/python.yml‎

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ on:
44
push:
55
branches: [ main ]
66
paths:
7-
- 'ArroyoSketch/**'
8-
- 'PrometheusClient/**'
9-
- 'Controller/**'
10-
- 'Utilities/**'
11-
- 'PrometheusExporters/**'
12-
- 'ExecutionUtilities/**'
13-
- 'CommonDependencies/dependencies/py/**'
7+
- 'asap-sketch-ingest/**'
8+
- 'asap-tools/prometheus-client/**'
9+
- 'asap-planner/**'
10+
- 'asap-tools/**'
11+
- 'asap-tools/prometheus-exporters/**'
12+
- 'asap-tools/execution-utilities/**'
13+
- 'asap-common/dependencies/py/**'
1414
- '.github/workflows/python.yml'
1515
pull_request:
1616
branches: [ main ]
1717
paths:
18-
- 'ArroyoSketch/**'
19-
- 'PrometheusClient/**'
20-
- 'Controller/**'
21-
- 'Utilities/**'
22-
- 'PrometheusExporters/**'
23-
- 'ExecutionUtilities/**'
24-
- 'CommonDependencies/dependencies/py/**'
18+
- 'asap-sketch-ingest/**'
19+
- 'asap-tools/prometheus-client/**'
20+
- 'asap-planner/**'
21+
- 'asap-tools/**'
22+
- 'asap-tools/prometheus-exporters/**'
23+
- 'asap-tools/execution-utilities/**'
24+
- 'asap-common/dependencies/py/**'
2525
- '.github/workflows/python.yml'
2626
workflow_dispatch:
2727

@@ -46,23 +46,23 @@ jobs:
4646
with:
4747
filters: |
4848
arroyo_sketch:
49-
- 'ArroyoSketch/**'
50-
- 'CommonDependencies/dependencies/py/**'
49+
- 'asap-sketch-ingest/**'
50+
- 'asap-common/dependencies/py/**'
5151
prometheus_client:
52-
- 'PrometheusClient/**'
53-
- 'CommonDependencies/dependencies/py/**'
52+
- 'asap-tools/prometheus-client/**'
53+
- 'asap-common/dependencies/py/**'
5454
controller:
55-
- 'Controller/**'
56-
- 'CommonDependencies/dependencies/py/**'
55+
- 'asap-planner/**'
56+
- 'asap-common/dependencies/py/**'
5757
utilities:
58-
- 'Utilities/**'
59-
- 'CommonDependencies/dependencies/py/**'
58+
- 'asap-tools/**'
59+
- 'asap-common/dependencies/py/**'
6060
prometheus_exporters:
61-
- 'PrometheusExporters/**'
62-
- 'CommonDependencies/dependencies/py/**'
61+
- 'asap-tools/prometheus-exporters/**'
62+
- 'asap-common/dependencies/py/**'
6363
execution_utilities:
64-
- 'ExecutionUtilities/**'
65-
- 'CommonDependencies/dependencies/py/**'
64+
- 'asap-tools/execution-utilities/**'
65+
- 'asap-common/dependencies/py/**'
6666
6767
test-arroyo-sketch:
6868
needs: detect-changes
@@ -81,12 +81,12 @@ jobs:
8181
run: |
8282
python -m pip install --upgrade pip
8383
pip install black==24.8.0 flake8==6.1.0
84-
if [ -f ArroyoSketch/requirements.txt ]; then pip install -r ArroyoSketch/requirements.txt; fi
84+
if [ -f asap-sketch-ingest/requirements.txt ]; then pip install -r asap-sketch-ingest/requirements.txt; fi
8585
- name: Check formatting with Black
86-
working-directory: ArroyoSketch
86+
working-directory: asap-sketch-ingest
8787
run: black --check --diff .
8888
- name: Lint with flake8
89-
working-directory: ArroyoSketch
89+
working-directory: asap-sketch-ingest
9090
run: |
9191
# Stop the build if there are Python syntax errors or undefined names
9292
flake8 . --config=../.flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
@@ -110,19 +110,19 @@ jobs:
110110
run: |
111111
python -m pip install --upgrade pip
112112
pip install black==24.8.0 flake8==6.1.0 mypy types-requests types-PyYAML typing-extensions numpy prometheus-client urllib3
113-
if [ -f PrometheusClient/requirements.txt ]; then pip install -r PrometheusClient/requirements.txt; fi
113+
if [ -f asap-tools/prometheus-client/requirements.txt ]; then pip install -r asap-tools/prometheus-client/requirements.txt; fi
114114
- name: Check formatting with Black
115-
working-directory: PrometheusClient
115+
working-directory: asap-tools/prometheus-client
116116
run: black --check --diff .
117117
- name: Lint with flake8
118-
working-directory: PrometheusClient
118+
working-directory: asap-tools/prometheus-client
119119
run: |
120120
# Stop the build if there are Python syntax errors or undefined names
121-
flake8 . --config=../.flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
121+
flake8 . --config=../../.flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
122122
# Exit-zero treats all errors as warnings
123-
flake8 . --config=../.flake8 --count --exit-zero --max-complexity=10 --statistics
123+
flake8 . --config=../../.flake8 --count --exit-zero --max-complexity=10 --statistics
124124
- name: Type check with mypy
125-
working-directory: PrometheusClient
125+
working-directory: asap-tools/prometheus-client
126126
run: mypy .
127127

128128
test-controller:
@@ -142,12 +142,12 @@ jobs:
142142
run: |
143143
python -m pip install --upgrade pip
144144
pip install black==24.8.0 flake8==6.1.0
145-
if [ -f Controller/requirements.txt ]; then pip install -r Controller/requirements.txt; fi
145+
if [ -f asap-planner/requirements.txt ]; then pip install -r asap-planner/requirements.txt; fi
146146
- name: Check formatting with Black
147-
working-directory: Controller
147+
working-directory: asap-planner
148148
run: black --check --diff .
149149
- name: Lint with flake8
150-
working-directory: Controller
150+
working-directory: asap-planner
151151
run: |
152152
# Stop the build if there are Python syntax errors or undefined names
153153
flake8 . --config=../.flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
@@ -171,12 +171,12 @@ jobs:
171171
run: |
172172
python -m pip install --upgrade pip
173173
pip install black==24.8.0 flake8==6.1.0
174-
if [ -f Utilities/requirements.txt ]; then pip install -r Utilities/requirements.txt; fi
174+
if [ -f asap-tools/requirements.txt ]; then pip install -r asap-tools/requirements.txt; fi
175175
- name: Check formatting with Black
176-
working-directory: Utilities
176+
working-directory: asap-tools
177177
run: black --check --diff .
178178
- name: Lint with flake8
179-
working-directory: Utilities
179+
working-directory: asap-tools
180180
run: |
181181
# Stop the build if there are Python syntax errors or undefined names
182182
flake8 . --config=../.flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
@@ -200,22 +200,22 @@ jobs:
200200
run: |
201201
python -m pip install --upgrade pip
202202
pip install black==24.8.0 flake8==6.1.0 mypy isort
203-
if [ -f PrometheusExporters/requirements.txt ]; then pip install -r PrometheusExporters/requirements.txt; fi
203+
if [ -f asap-tools/prometheus-exporters/requirements.txt ]; then pip install -r asap-tools/prometheus-exporters/requirements.txt; fi
204204
- name: Check formatting with Black
205-
working-directory: PrometheusExporters
205+
working-directory: asap-tools/prometheus-exporters
206206
run: black --check --diff .
207207
- name: Check import sorting with isort
208-
working-directory: PrometheusExporters
208+
working-directory: asap-tools/prometheus-exporters
209209
run: isort --check-only --diff --settings-file .isort.cfg .
210210
- name: Lint with flake8
211-
working-directory: PrometheusExporters
211+
working-directory: asap-tools/prometheus-exporters
212212
run: |
213213
# Stop the build if there are Python syntax errors or undefined names
214-
flake8 . --config=../.flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
214+
flake8 . --config=../../.flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
215215
# Exit-zero treats all errors as warnings
216-
flake8 . --config=../.flake8 --count --exit-zero --max-complexity=10 --statistics
216+
flake8 . --config=../../.flake8 --count --exit-zero --max-complexity=10 --statistics
217217
- name: Type check with mypy
218-
working-directory: PrometheusExporters
218+
working-directory: asap-tools/prometheus-exporters
219219
run: mypy . --config-file=.mypy.ini
220220

221221
test-execution-utilities:
@@ -235,14 +235,14 @@ jobs:
235235
run: |
236236
python -m pip install --upgrade pip
237237
pip install black==24.8.0 flake8==6.1.0
238-
if [ -f ExecutionUtilities/requirements.txt ]; then pip install -r ExecutionUtilities/requirements.txt; fi
238+
if [ -f asap-tools/execution-utilities/requirements.txt ]; then pip install -r asap-tools/execution-utilities/requirements.txt; fi
239239
- name: Check formatting with Black
240-
working-directory: ExecutionUtilities
240+
working-directory: asap-tools/execution-utilities
241241
run: black --check --diff .
242242
- name: Lint with flake8
243-
working-directory: ExecutionUtilities
243+
working-directory: asap-tools/execution-utilities
244244
run: |
245245
# Stop the build if there are Python syntax errors or undefined names
246-
flake8 . --config=../.flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
246+
flake8 . --config=../../.flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
247247
# Exit-zero treats all errors as warnings
248-
flake8 . --config=../.flake8 --count --exit-zero --max-complexity=10 --statistics
248+
flake8 . --config=../../.flake8 --count --exit-zero --max-complexity=10 --statistics

‎.github/workflows/rust.yml‎

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ on:
44
push:
55
branches: [ main ]
66
paths:
7-
- 'QueryEngineRust/**'
8-
- 'CommonDependencies/dependencies/rs/**'
9-
- 'CommonDependencies/tests/**'
10-
- 'sketch-core/**'
7+
- 'asap-query-engine/**'
8+
- 'asap-common/dependencies/rs/**'
9+
- 'asap-common/tests/**'
10+
- 'asap-common/sketch-core/**'
1111
- '.github/workflows/rust.yml'
1212
pull_request:
1313
branches: [ main ]
1414
paths:
15-
- 'QueryEngineRust/**'
16-
- 'CommonDependencies/dependencies/rs/**'
17-
- 'CommonDependencies/tests/**'
18-
- 'sketch-core/**'
15+
- 'asap-query-engine/**'
16+
- 'asap-common/dependencies/rs/**'
17+
- 'asap-common/tests/**'
18+
- 'asap-common/sketch-core/**'
1919
- '.github/workflows/rust.yml'
2020
workflow_dispatch:
2121

@@ -49,30 +49,30 @@ jobs:
4949
path: |
5050
~/.cargo/registry
5151
~/.cargo/git
52-
QueryEngineRust/target
52+
asap-query-engine/target
5353
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
5454

5555
- name: Check formatting
5656
run: cargo fmt -- --check
57-
working-directory: QueryEngineRust
57+
working-directory: asap-query-engine
5858

5959
- name: Check formatting (sketch_db_common)
6060
run: cargo fmt -- --check
61-
working-directory: CommonDependencies/dependencies/rs/sketch_db_common
61+
working-directory: asap-common/dependencies/rs/sketch_db_common
6262

6363
- name: Run clippy
6464
run: cargo clippy --all-targets --all-features -- -D warnings
65-
working-directory: QueryEngineRust
65+
working-directory: asap-query-engine
6666
env:
6767
RUSTC_WRAPPER: sccache
6868

6969
- name: Check formatting (sketch-core)
7070
run: cargo fmt -- --check
71-
working-directory: sketch-core
71+
working-directory: asap-common/sketch-core
7272

7373
- name: Run clippy (sketch-core)
7474
run: cargo clippy --all-targets --all-features -- -D warnings
75-
working-directory: sketch-core
75+
working-directory: asap-common/sketch-core
7676
env:
7777
RUSTC_WRAPPER: sccache
7878

@@ -101,33 +101,33 @@ jobs:
101101
path: |
102102
~/.cargo/registry
103103
~/.cargo/git
104-
QueryEngineRust/target
104+
asap-query-engine/target
105105
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
106106

107107
- name: Run QueryEngineRust tests
108108
run: cargo test
109-
working-directory: QueryEngineRust
109+
working-directory: asap-query-engine
110110
env:
111111
RUSTC_WRAPPER: sccache
112112

113113
- name: Run sql_utilities tests
114114
run: cargo test
115-
working-directory: CommonDependencies/dependencies/rs/sql_utilities
115+
working-directory: asap-common/dependencies/rs/sql_utilities
116116
env:
117117
RUSTC_WRAPPER: sccache
118118

119119
- name: Run promql_utilities tests
120120
run: cargo test
121-
working-directory: CommonDependencies/dependencies/rs/promql_utilities
121+
working-directory: asap-common/dependencies/rs/promql_utilities
122122
env:
123123
RUSTC_WRAPPER: sccache
124124

125125
- name: Run sketch-core tests
126126
run: cargo test
127-
working-directory: sketch-core
127+
working-directory: asap-common/sketch-core
128128
- name: Run sketch_db_common tests
129129
run: cargo test
130-
working-directory: CommonDependencies/dependencies/rs/sketch_db_common
130+
working-directory: asap-common/dependencies/rs/sketch_db_common
131131
env:
132132
RUSTC_WRAPPER: sccache
133133

@@ -144,7 +144,7 @@ jobs:
144144
uses: docker/setup-buildx-action@v3
145145

146146
- name: Build Docker image
147-
run: docker build -f QueryEngineRust/Dockerfile -t sketchdb-queryengine-rust:latest .
147+
run: docker build -f asap-query-engine/Dockerfile -t sketchdb-queryengine-rust:latest .
148148
# run: |
149149
# echo "${{ secrets.PRIVATE_REPO_TOKEN }}" > /tmp/git_token
150150
# docker build --secret id=git_token,src=/tmp/git_token -f QueryEngineRust/Dockerfile -t sketchdb-queryengine-rust:latest .

0 commit comments

Comments
 (0)