-
Notifications
You must be signed in to change notification settings - Fork 120
Expand file tree
/
Copy pathmise.toml
More file actions
49 lines (44 loc) · 1.75 KB
/
Copy pathmise.toml
File metadata and controls
49 lines (44 loc) · 1.75 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
# Run nested mise.toml tasks as `//path:task`, e.g. `mise run //crates/agones:test`.
experimental_monorepo_root = true
[monorepo]
config_roots = ["crates/agones"]
[settings]
experimental = true
[tools]
cargo-insta = "latest"
"cargo:mdbook-variables" = "latest"
gcloud = "latest"
"github:EmbarkStudios/cargo-about" = "latest"
"github:EmbarkStudios/cargo-deny" = "latest"
"github:EmbarkStudios/proto-gen" = "latest"
"github:badboy/mdbook-mermaid" = "latest"
"github:nextest-rs/nextest" = { version = "latest", version_prefix = "cargo-nextest-" }
"github:pseudomuto/protoc-gen-doc" = "latest"
helm = "latest"
mdbook = "latest"
opentofu = "latest"
yq = "latest"
[tasks.docker]
description = "Build the quilkin Docker image"
run = """
version=$(yq '.workspace.package.version' Cargo.toml)
sha=$(git rev-parse --short HEAD)
# Pass the GITHUB_TOKEN if set to bypass GitHub rate limits.
secret_arg=""
if [ -n "${GITHUB_TOKEN:-}" ]; then
secret_arg="--secret id=github_token,env=GITHUB_TOKEN"
fi
podman build --cap-add=all --format docker $secret_arg -t quilkin:"${version}-${sha}" -t quilkin:latest .
"""
[tasks.fuzz]
description = "Fuzz the XDP packet processing, pass a duration in seconds, 0 runs until interrupted"
run = """
# cargo-fuzz overrides RUSTFLAGS, so the target features .cargo/config.toml
# sets have to be repeated here. gxhash reads partial tails 16 bytes at a time,
# which trips both the address sanitizer and the standard library's UB checks,
# neither of which can be suppressed per dependency. Overflow and debug
# assertions still apply.
RUSTFLAGS="-Ctarget-feature=+aes,+avx2 -Zub-checks=off" \
cargo +nightly fuzz run --sanitizer=none xdp_process -- \
-max_total_time={{arg(name="seconds", default="60")}} -max_len=2048
"""