-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp.doql.less
More file actions
231 lines (192 loc) · 6.44 KB
/
app.doql.less
File metadata and controls
231 lines (192 loc) · 6.44 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
// LESS format — define @variables here as needed
app {
name: fixos;
version: 2.2.28;
}
dependencies {
runtime: "openai>=1.35.0, prompt_toolkit>=3.0.43, psutil>=5.9.0, pyyaml>=6.0, click>=8.1.0, python-dotenv>=1.0.0, rich>=13.0";
dev: "pytest>=7.4.0, pytest-mock>=3.12.0, pytest-cov>=4.1.0, pytest-xdist>=3.5.0, pytest-timeout>=2.2.0, pytest-sugar>=0.9.7, goal>=2.1.0, costs>=0.1.20, pfix>=0.1.60";
}
entity[name="FixSuggestion"] {
command: string!;
description: string!;
risk_level: RiskLevel!;
requires_sudo: bool!;
idempotent: bool!;
check_command: string;
rollback_command: string;
}
entity[name="NLPIntent"] {
intent_type: string!;
target: string;
parameters: json!;
confidence: float!;
}
entity[name="CommandValidation"] {
success: bool!;
interpretation: string!;
user_intent_met: bool!;
suggestion: string;
}
interface[type="cli"] {
framework: click;
}
interface[type="cli"] page[name="fixos"] {
}
workflow[name="install"] {
trigger: manual;
step-1: run cmd=pip install -e .;
}
workflow[name="install-dev"] {
trigger: manual;
step-1: run cmd=pip install -e ".[dev]";
step-2: run cmd=echo "✅ Zainstalowano z zależnościami dev";
}
workflow[name="test"] {
trigger: manual;
step-1: depend target=test-unit;
step-2: depend target=test-e2e;
}
workflow[name="test-fast"] {
trigger: manual;
step-1: run cmd=echo "⚡ Testy z paralelizacją (4 procesy)...";
step-2: run cmd=pytest tests/ -v --tb=short -n auto -m "not slow and not docker";
}
workflow[name="test-quick"] {
trigger: manual;
step-1: run cmd=echo "⚡ Szybkie testy (bez slow/docker)...";
step-2: run cmd=pytest tests/unit tests/e2e/test_anonymization_layers.py tests/e2e/test_executor.py -v --tb=short -m "not slow and not docker";
}
workflow[name="test-unit"] {
trigger: manual;
step-1: run cmd=echo "🧪 Unit testy...";
step-2: run cmd=pytest tests/unit/ -v --tb=short;
}
workflow[name="test-unit-fast"] {
trigger: manual;
step-1: run cmd=echo "🧪 Unit testy (paralelizacja - 4 procesy)...";
step-2: run cmd=pytest tests/unit/ -v --tb=short -n 4;
}
workflow[name="test-unit-par"] {
trigger: manual;
step-1: run cmd=echo "🧪 Unit testy (paralelizacja - auto, = CPU count)...";
step-2: run cmd=pytest tests/unit/ -v --tb=short -n auto;
}
workflow[name="test-e2e"] {
trigger: manual;
step-1: run cmd=echo "🧪 E2E testy (mock LLM)...";
step-2: run cmd=pytest tests/e2e/ -v --tb=short -k "not real_llm" -m "not slow and not docker";
}
workflow[name="test-real"] {
trigger: manual;
step-1: run cmd=echo "🧪 E2E testy (prawdziwe API – wymaga .env)...";
step-2: run cmd=pytest tests/e2e/ -v --tb=short -k "real_llm";
}
workflow[name="test-cov"] {
trigger: manual;
step-1: run cmd=echo "📊 Testy + raport pokrycia (z paralelizacją)...";
step-2: run cmd=pytest tests/ -v --tb=short --cov=fixos --cov-report=term-missing --cov-report=html:htmlcov -n auto -m "not slow";
step-3: run cmd=echo "📊 Raport pokrycia: htmlcov/index.html";
}
workflow[name="lint"] {
trigger: manual;
step-1: run cmd=ruff check fixos/ tests/ || true;
}
workflow[name="format"] {
trigger: manual;
step-1: run cmd=black fixos/ tests/;
}
workflow[name="docker-build"] {
trigger: manual;
step-1: run cmd=docker compose -f docker/docker-compose.yml build;
}
workflow[name="docker-audio"] {
trigger: manual;
step-1: run cmd=docker compose -f docker/docker-compose.yml run --rm broken-audio;
}
workflow[name="docker-thumb"] {
trigger: manual;
step-1: run cmd=docker compose -f docker/docker-compose.yml run --rm broken-thumbnails;
}
workflow[name="docker-full"] {
trigger: manual;
step-1: run cmd=docker compose -f docker/docker-compose.yml run --rm broken-full;
}
workflow[name="docker-e2e"] {
trigger: manual;
step-1: run cmd=docker compose -f docker/docker-compose.yml run --rm e2e-tests;
}
workflow[name="docker-test-fedora"] {
trigger: manual;
step-1: run cmd=echo "🐧 Testing on Fedora...";
step-2: run cmd=docker compose -f docker/docker-compose.multi-system.yml run --rm test-fedora;
}
workflow[name="docker-test-ubuntu"] {
trigger: manual;
step-1: run cmd=echo "🐧 Testing on Ubuntu...";
step-2: run cmd=docker compose -f docker/docker-compose.multi-system.yml run --rm test-ubuntu;
}
workflow[name="docker-test-debian"] {
trigger: manual;
step-1: run cmd=echo "🐧 Testing on Debian...";
step-2: run cmd=docker compose -f docker/docker-compose.multi-system.yml run --rm test-debian;
}
workflow[name="docker-test-arch"] {
trigger: manual;
step-1: run cmd=echo "🐧 Testing on Arch Linux...";
step-2: run cmd=docker compose -f docker/docker-compose.multi-system.yml run --rm test-arch;
}
workflow[name="docker-test-alpine"] {
trigger: manual;
step-1: run cmd=echo "🐧 Testing on Alpine...";
step-2: run cmd=docker compose -f docker/docker-compose.multi-system.yml run --rm test-alpine;
}
workflow[name="docker-test-all"] {
trigger: manual;
step-1: run cmd=echo "🐧 Testing on all systems...";
step-2: run cmd=./docker/test-multi-system.sh;
}
workflow[name="config-init"] {
trigger: manual;
step-1: run cmd=fixos config init;
}
workflow[name="run-scan"] {
trigger: manual;
step-1: run cmd=fixos scan;
}
workflow[name="run-fix"] {
trigger: manual;
step-1: run cmd=fixos fix;
}
workflow[name="build"] {
trigger: manual;
step-1: run cmd=echo "🔨 Budowanie paczki (cache enabled)...";
step-2: run cmd=.venv/bin/pip install --quiet --upgrade build;
step-3: run cmd=.venv/bin/python -m build;
step-4: run cmd=echo "✅ Paczka gotowa w dist/";
}
workflow[name="publish"] {
trigger: manual;
step-1: run cmd=echo "📦 Publikowanie na PyPI...";
step-2: run cmd=.venv/bin/pip install --quiet --upgrade twine;
step-3: run cmd=.venv/bin/twine upload dist/*;
step-4: run cmd=echo "✅ Opublikowano na PyPI";
}
workflow[name="clean"] {
trigger: manual;
step-1: run cmd=echo "🧹 Czyszczenie cache i artefaktów...";
step-2: run cmd=rm -rf build/ dist/ *.egg-info/ .pytest_cache/ .coverage htmlcov/ __pycache__ .mypy_cache/;
step-3: run cmd=find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true;
step-4: run cmd=find . -type f -name "*.pyc" -delete 2>/dev/null || true;
step-5: run cmd=find . -type f -name ".DS_Store" -delete 2>/dev/null || true;
step-6: run cmd=echo "✅ Wyczyszczono";
}
deploy {
target: docker-compose;
compose_file: docker/docker-compose.yml;
}
environment[name="local"] {
runtime: docker-compose;
env_file: .env;
python_version: >=3.10;
}