Skip to content

Commit

Permalink
update pre-commit + .gitigore + some small modif
Browse files Browse the repository at this point in the history
  • Loading branch information
ElNiak committed Jul 23, 2024
1 parent 61df34e commit fd48ac4
Show file tree
Hide file tree
Showing 533 changed files with 51,374 additions and 32,890 deletions.
11 changes: 7 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ docs_assets/
**/build/*

.VSCodeCounter/
panther/outputs/qlogs/picoquic/545e19122294c793.be00.server.qlog
panther/outputs/qlogs/picoquic/6f934e0c650d2496.7f3d.server.qlog
panther/panther_worker/app/implementations/other/get-pip.py
panther/panther_worker/app/implementations/quic-implementations/quic-go/quic-go/go1.16.linux-amd64.tar.gz
outputs/qlogs/picoquic/545e19122294c793.be00.server.qlog
outputs/qlogs/picoquic/6f934e0c650d2496.7f3d.server.qlog
panther_worker/app/implementations/other/get-pip.py
panther_worker/app/implementations/quic-implementations/quic-go/quic-go/go1.16.linux-amd64.tar.gz
*.qlog
panther/outputs/qlogs/*/*.qlog
panther/outputs/qlogs/*/*.log
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ repos:
# - id: trailing-whitespace
# - id: end-of-file-fixer
# - id: check-yaml
- id: check-added-large-files
- id: check-ast
# - id: check-added-large-files
# - id: check-ast
- id: check-json
- id: check-merge-conflict
- id: check-toml
Expand Down
75 changes: 15 additions & 60 deletions panther/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ services:
restart: always
stdin_open: true
tty: true
user: ${UID}:${GID}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ${PWD}/panther_worker/app/panther-ivy/protocol-testing/:/app/panther-ivy/protocol-testing/
Expand All @@ -62,11 +63,11 @@ services:
deploy:
resources:
limits:
cpus: '4'
memory: 1024M
cpus: '8'
memory: 1524M
reservations:
cpus: '2.0'
memory: 512.0M
cpus: '4.0'
memory: 762.0M
environment:
- DISPLAY=${DISPLAY}
- XAUTHORITY=~/.Xauthority
Expand Down Expand Up @@ -99,22 +100,23 @@ services:
- /app/implementations/
- ${PWD}/panther_worker/app/panther-ivy/protocol-testing/:/app/panther-ivy/protocol-testing/
- ${PWD}/panther_worker/app/panther-ivy/ivy/include/:/app/panther-ivy/ivy/include/
- ${PWD}/panther_worker/app/panther-ivy/ivy/ivy_to_cpp.py:/app/panther-ivy/ivy/ivy_to_cpp.py
- ${PWD}/outputs/tls-keys:/app/tls-keys
- ${PWD}/outputs/tickets:/app/tickets
- ${PWD}/outputs/qlogs:/app/qlogs
ping-pong-panther:
ping-pong-random-panther:
command: bash -c "stty cols 100 rows 100 && python3 panther_client.py"
container_name: ping-pong-panther
container_name: ping-pong-random-panther
depends_on:
- panther-webapp
deploy:
resources:
limits:
cpus: '4'
memory: 2048M
cpus: '8'
memory: 2548M
reservations:
cpus: '2.0'
memory: 1024.0M
cpus: '4.0'
memory: 1274.0M
environment:
- DISPLAY=${DISPLAY}
- XAUTHORITY=~/.Xauthority
Expand All @@ -125,8 +127,8 @@ services:
- LOG_LEVEL=10
- PYTHONUNBUFFERED=1
- PYTHONPATH=${PYTHONPATH}:/app/implementations/quic-implementations/aioquic/src
hostname: ping-pong-panther
image: ping-pong-panther:latest
hostname: ping-pong-random-panther
image: ping-pong-random-panther:latest
networks:
net:
ipv4_address: 172.27.1.12
Expand All @@ -147,54 +149,7 @@ services:
- /app/implementations/
- ${PWD}/panther_worker/app/panther-ivy/protocol-testing/:/app/panther-ivy/protocol-testing/
- ${PWD}/panther_worker/app/panther-ivy/ivy/include/:/app/panther-ivy/ivy/include/
- ${PWD}/outputs/tls-keys:/app/tls-keys
- ${PWD}/outputs/tickets:/app/tickets
- ${PWD}/outputs/qlogs:/app/qlogs
quant-panther:
command: bash -c "stty cols 100 rows 100 && python3 panther_client.py"
container_name: quant-panther
depends_on:
- panther-webapp
deploy:
resources:
limits:
cpus: '4'
memory: 1024M
reservations:
cpus: '2.0'
memory: 512.0M
environment:
- DISPLAY=${DISPLAY}
- XAUTHORITY=~/.Xauthority
- ROOT_PATH=${PWD}
- MPLBACKEND="Agg"
- COLUMNS=100
- LINES=100
- LOG_LEVEL=10
- PYTHONUNBUFFERED=1
- PYTHONPATH=${PYTHONPATH}:/app/implementations/quic-implementations/aioquic/src
hostname: quant-panther
image: quant-panther:latest
networks:
net:
ipv4_address: 172.27.1.14
ports:
- 49163:80
privileged: true
restart: always
security_opt:
- seccomp:unconfined
stdin_open: true
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
tty: true
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ${PWD}/panther_worker/app/:/app/
- /app/panther-ivy/
- /app/implementations/
- ${PWD}/panther_worker/app/panther-ivy/protocol-testing/:/app/panther-ivy/protocol-testing/
- ${PWD}/panther_worker/app/panther-ivy/ivy/include/:/app/panther-ivy/ivy/include/
- ${PWD}/panther_worker/app/panther-ivy/ivy/ivy_to_cpp.py:/app/panther-ivy/ivy/ivy_to_cpp.py
- ${PWD}/outputs/tls-keys:/app/tls-keys
- ${PWD}/outputs/tickets:/app/tickets
- ${PWD}/outputs/qlogs:/app/qlogs
Expand Down
75 changes: 15 additions & 60 deletions panther/docker-compose.yml.bak
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ services:
restart: always
stdin_open: true
tty: true
user: ${UID}:${GID}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ${PWD}/panther_worker/app/panther-ivy/protocol-testing/:/app/panther-ivy/protocol-testing/
Expand All @@ -62,11 +63,11 @@ services:
deploy:
resources:
limits:
cpus: '4'
memory: 1024M
cpus: '8'
memory: 1524M
reservations:
cpus: '2.0'
memory: 512.0M
cpus: '4.0'
memory: 762.0M
environment:
- DISPLAY=${DISPLAY}
- XAUTHORITY=~/.Xauthority
Expand Down Expand Up @@ -99,22 +100,23 @@ services:
- /app/implementations/
- ${PWD}/panther_worker/app/panther-ivy/protocol-testing/:/app/panther-ivy/protocol-testing/
- ${PWD}/panther_worker/app/panther-ivy/ivy/include/:/app/panther-ivy/ivy/include/
- ${PWD}/panther_worker/app/panther-ivy/ivy/ivy_to_cpp.py:/app/panther-ivy/ivy/ivy_to_cpp.py
- ${PWD}/outputs/tls-keys:/app/tls-keys
- ${PWD}/outputs/tickets:/app/tickets
- ${PWD}/outputs/qlogs:/app/qlogs
ping-pong-panther:
ping-pong-random-panther:
command: bash -c "stty cols 100 rows 100 && python3 panther_client.py"
container_name: ping-pong-panther
container_name: ping-pong-random-panther
depends_on:
- panther-webapp
deploy:
resources:
limits:
cpus: '4'
memory: 2048M
cpus: '8'
memory: 2548M
reservations:
cpus: '2.0'
memory: 1024.0M
cpus: '4.0'
memory: 1274.0M
environment:
- DISPLAY=${DISPLAY}
- XAUTHORITY=~/.Xauthority
Expand All @@ -125,8 +127,8 @@ services:
- LOG_LEVEL=10
- PYTHONUNBUFFERED=1
- PYTHONPATH=${PYTHONPATH}:/app/implementations/quic-implementations/aioquic/src
hostname: ping-pong-panther
image: ping-pong-panther:latest
hostname: ping-pong-random-panther
image: ping-pong-random-panther:latest
networks:
net:
ipv4_address: 172.27.1.12
Expand All @@ -147,54 +149,7 @@ services:
- /app/implementations/
- ${PWD}/panther_worker/app/panther-ivy/protocol-testing/:/app/panther-ivy/protocol-testing/
- ${PWD}/panther_worker/app/panther-ivy/ivy/include/:/app/panther-ivy/ivy/include/
- ${PWD}/outputs/tls-keys:/app/tls-keys
- ${PWD}/outputs/tickets:/app/tickets
- ${PWD}/outputs/qlogs:/app/qlogs
quant-panther:
command: bash -c "stty cols 100 rows 100 && python3 panther_client.py"
container_name: quant-panther
depends_on:
- panther-webapp
deploy:
resources:
limits:
cpus: '4'
memory: 1024M
reservations:
cpus: '2.0'
memory: 512.0M
environment:
- DISPLAY=${DISPLAY}
- XAUTHORITY=~/.Xauthority
- ROOT_PATH=${PWD}
- MPLBACKEND="Agg"
- COLUMNS=100
- LINES=100
- LOG_LEVEL=10
- PYTHONUNBUFFERED=1
- PYTHONPATH=${PYTHONPATH}:/app/implementations/quic-implementations/aioquic/src
hostname: quant-panther
image: quant-panther:latest
networks:
net:
ipv4_address: 172.27.1.14
ports:
- 49163:80
privileged: true
restart: always
security_opt:
- seccomp:unconfined
stdin_open: true
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
tty: true
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ${PWD}/panther_worker/app/:/app/
- /app/panther-ivy/
- /app/implementations/
- ${PWD}/panther_worker/app/panther-ivy/protocol-testing/:/app/panther-ivy/protocol-testing/
- ${PWD}/panther_worker/app/panther-ivy/ivy/include/:/app/panther-ivy/ivy/include/
- ${PWD}/panther_worker/app/panther-ivy/ivy/ivy_to_cpp.py:/app/panther-ivy/ivy/ivy_to_cpp.py
- ${PWD}/outputs/tls-keys:/app/tls-keys
- ${PWD}/outputs/tickets:/app/tickets
- ${PWD}/outputs/qlogs:/app/qlogs
Expand Down
18 changes: 12 additions & 6 deletions panther/install_config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ build_gperf = True
build_visualizer = True

[docker_limits]
normal_mem=1024M
normal_cpu=4
shadow_mem=2048M
shadow_cpu=4
normal_mem=1524M
normal_cpu=8
shadow_mem=2548M
shadow_cpu=8

[implems]
; BGP
Expand All @@ -23,9 +23,11 @@ bgp_gobgp = False
; COAP
coap_libcoap = False
; MINIP
minip_ping_pong = True
minip_ping_pong = False
minip_ping_pong_fail = False
minip_ping_pong_flaky = False
minip_ping_pong_random = True

; QUIC
quic_aioquic = False
quic_lsquic = False
Expand All @@ -34,14 +36,15 @@ quic_mvfst = False
quic_picoquic = True
quic_picoquic_vuln = False
quic_picoquic_shadow = False
quic_quant = True
quic_quant = False
quic_quant_vuln = False
quic_quic_go = False
quic_quiche = False
quic_quinn = False

[shadow_support]
minip_ping_pong = True
minip_ping_pong_random = True
quic_picoquic_shadow = True

[directories]
Expand All @@ -64,6 +67,9 @@ bgp_bird = ("bird", "${bgp_path}bird", "Dockerfile.bird")
bgp_gobgp = ("gobgp", "${bgp_path}gobgp", "Dockerfile.gobgp")
coap_libcoap = ("libcoap", "${coap_path}libcoap", "Dockerfile.libcoap")
minip_ping_pong = ("ping-pong", "${minip_path}ping-pong", "Dockerfile.ping-pong")
minip_ping_pong_fail = ("ping-pong-fail", "${minip_path}ping-pong-fail", "Dockerfile.ping-pong-fail")
minip_ping_pong_flaky = ("ping-pong-flaky", "${minip_path}ping-pong-flaky", "Dockerfile.ping-pong-flaky")
minip_ping_pong_random = ("ping-pong-random", "${minip_path}ping-pong-random", "Dockerfile.ping-pong-random")
quic_aioquic = ("aioquic", "${quic_path}aioquic", "Dockerfile.aioquic")
quic_lsquic = ("lsquic", "${quic_path}lsquic", "Dockerfile.lsquic")
quic_lsquic_vuln = ("lsquic-vuln", "${quic_path}lsquic", "Dockerfile.lsquic-vuln")
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit fd48ac4

Please sign in to comment.