Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
132 lines (91 loc) · 2.43 KB
/
Copy pathMakefile
File metadata and controls
132 lines (91 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
.PHONY: dist rust-check rust-test test-browser test-e2e test-goldens test-integration ui-verify
NPM_VERSION := 11.6.2
format:
uv run ruff format .
lint:
uv run ruff check --fix .
type:
uv run ty check src tests scripts
test:
$(MAKE) rust-test
uv run pytest tests/unit -q -n auto
$(MAKE) test-goldens
test-goldens:
uv run python -m scripts.check_compiler_goldens
uv run python -m scripts.check_planner_goldens
rust-test:
uv run cargo test --workspace --locked
rust-check:
uv run cargo fmt --all --check
uv run cargo clippy --workspace --all-targets --locked -- -D warnings
test-integration:
uv run pytest tests/integration -q -n 4
test-e2e:
uv run pytest tests/e2e -q -m "not performance and not browser" -n 2
uv run pytest tests/e2e -q -m "performance and not browser" -k 3000 -n 2
uv run pytest tests/e2e -q -m "performance and not browser" -k 10000 -n 2
test-all:
$(MAKE) test
$(MAKE) test-integration
$(MAKE) test-e2e
$(MAKE) test-browser
test-browser:
uv run pytest tests/e2e -q -m browser -n 2 \
--browser chromium --tracing retain-on-failure --video retain-on-failure \
--screenshot only-on-failure --output test-results --durations=25
check:
cargo fmt --all
uv run ruff format .
uv run ruff check --fix .
uv run ty check src tests scripts
uv run fensu check
$(MAKE) rust-check
verify:
cargo fmt --all
$(MAKE) rust-check
uv run ruff format .
uv run ruff check --fix .
uv run ty check src tests scripts
uv run fensu check
$(MAKE) ui-verify
$(MAKE) test
$(MAKE) test-integration
$(MAKE) test-e2e
$(MAKE) test-browser
ui-install:
cd ui && npx --yes npm@$(NPM_VERSION) ci
ui-build:
cd ui && npm run build
rm -rf src/sqltide/dev_server/static
cp -r ui/build src/sqltide/dev_server/static
ui-verify:
cd ui && npm run check
cd ui && npm run test -- --run
cd ui && npm run verify:lanes
cd ui && npm run verify:lineage-activity
cd ui && npm run verify:run-timeline
dist:
$(MAKE) ui-install
$(MAKE) ui-build
rm -f dist/*.whl dist/*.tar.gz
uv build
uv run python -m scripts.verify_wheel_assets
ui-dev:
cd ui && npm run dev
check-ci:
uv run ruff format --check .
uv run ruff check .
uv run ty check src tests scripts
uv run fensu check
$(MAKE) rust-check
verify-ci:
$(MAKE) rust-check
uv run ruff format --check .
uv run ruff check .
uv run ty check src tests scripts
uv run fensu check
$(MAKE) ui-verify
$(MAKE) test
$(MAKE) test-integration
$(MAKE) test-e2e
$(MAKE) test-browser