-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
102 lines (100 loc) · 4.34 KB
/
Copy pathTaskfile.yml
File metadata and controls
102 lines (100 loc) · 4.34 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
version: '3'
includes:
fuzzing-service:
taskfile: ./src/fuzzing-service/Taskfile.yml
dir: ./src/fuzzing-service
llm-dispatch-service:
taskfile: ./src/llm-dispatch-service/Taskfile.yml
dir: ./src/llm-dispatch-service
code-property-graph-generator:
taskfile: ./src/code-property-graph-generator/Taskfile.yml
dir: ./src/code-property-graph-generator
autopatchdatatypes:
taskfile: ./src/autopatchdatatypes/Taskfile.yml
dir: ./src/autopatchdatatypes
patch-evaluation-service:
taskfile: ./src/patch-evaluation-service/Taskfile.yml
dir: ./src/patch-evaluation-service
autopatchpubsub:
taskfile: ./src/autopatchpubsub/Taskfile.yml
dir: ./src/autopatchpubsub
autopatchshared:
taskfile: ./src/autopatchshared/Taskfile.yml
dir: ./src/autopatchshared
tasks:
create-docker-network:
desc: Create docker network
cmds:
- python3 assets/create-docker-network.py
run:
desc: Run AutoPatch-LLM
cmds:
- docker compose up
install-devtools:
desc: Install AutoPatch devtools
env:
ARGS: --break-system-packages # Use this If you are installing packages using the Taskfile Extension for VSCode UI and devcontainer
cmds:
- task: create-docker-network
- echo "If you are running this manually and installing in a VM instead of a devcontainer, use a virtual environment and activate it first."
- pip install {{.CLI_ARGS}} $ARGS -r ./src/dev-requirements.txt
- task: install-package-dependencies
test-with-coverage:
desc: Run tests with coverage
cmds:
- "echo 'Running tests with coverage...'"
- pytest --junitxml=pytest.xml --cov=. --cov-report=xml
test:
desc: Run tests
cmds:
- "echo 'Running tests...'"
- pytest
lint:
desc: Run linter
cmds:
- "echo 'Running linter...'"
- "echo Not Yet Implemented"
build-install-datatypes:
desc: Build and install datatypes package
cmds:
- "echo 'Building datatypes...'"
- task: autopatchdatatypes:clean
- task: autopatchdatatypes:build
- task: autopatchdatatypes:install
- cp ./src/autopatchdatatypes/dist/*.whl ./src/fuzzing-service # no private pacakge feeds yet
- cp ./src/autopatchdatatypes/dist/*.whl ./src/patch-evaluation-service # no private pacakge feeds yet
- cp ./src/autopatchdatatypes/dist/*.whl ./src/code-property-graph-generator # no private pacakge feeds yet
- cp ./src/autopatchdatatypes/dist/*.whl ./src/llm-dispatch-service # no private pacakge feeds yet
build-install-facades:
desc: Build and install
cmds:
- "echo 'Building message broker facade...'"
- task: autopatchpubsub:clean
- task: autopatchpubsub:build
- task: autopatchpubsub:install
- cp ./src/autopatchpubsub/dist/*.whl ./src/fuzzing-service # no private pacakge feeds yet
- cp ./src/autopatchpubsub/dist/*.whl ./src/patch-evaluation-service # no private pacakge feeds yet
- cp ./src/autopatchpubsub/dist/*.whl ./src/code-property-graph-generator # no private pacakge feeds yet
- cp ./src/autopatchpubsub/dist/*.whl ./src/llm-dispatch-service # no private pacakge feeds yet
build-install-shared:
desc: Build and install shared modules package
cmds:
- "echo 'Building shared modules...'"
- task: autopatchshared:clean
- task: autopatchshared:build
- task: autopatchshared:install
- cp ./src/autopatchshared/dist/*.whl ./src/fuzzing-service # no private pacakge feeds yet
- cp ./src/autopatchshared/dist/*.whl ./src/patch-evaluation-service # no private pacakge feeds yet
- cp ./src/autopatchshared/dist/*.whl ./src/code-property-graph-generator # no private pacakge feeds yet
- cp ./src/autopatchshared/dist/*.whl ./src/llm-dispatch-service # no private pacakge feeds yet
install-package-dependencies:
desc: Install package dependencies
cmds:
- "echo 'Installing package dependencies...'"
- task: build-install-datatypes
- task: build-install-shared
- task: build-install-facades
- task: fuzzing-service:install
- task: patch-evaluation-service:install
- task: llm-dispatch-service:install
- task: code-property-graph-generator:install