chore: import upstream snapshot with attribution
Fuzzer / Run Fuzzer (push) Has been cancelled
Race tests / Go race tests (ubuntu-22.04) (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:01:40 +08:00
commit 5357c39144
2379 changed files with 670828 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
#!/bin/sh
set -e
if [ "$#" -ne 2 ]; then
echo "Usage: ./get-dolt-correctness-job-json.sh <jobname> <version>"
exit 1
fi
jobname="$1"
version="$2"
echo '
{
"apiVersion": "batch/v1",
"kind": "Job",
"metadata": {
"name": "'$jobname'",
"namespace": "fuzzer"
},
"spec": {
"backoffLimit": 2,
"template": {
"metadata": {
"labels": {
"k8s-liquidata-inc-monitored-job": "created-by-static-config",
"app": "fuzzer"
}
},
"spec": {
"serviceAccountName": "fuzzer",
"containers": [
{
"name": "fuzzer",
"image": "407903926827.dkr.ecr.us-west-2.amazonaws.com/liquidata/fuzzer:latest",
"env": [
{ "name": "REPO_ACCESS_TOKEN", "value": "'$REPO_ACCESS_TOKEN'"},
{ "name": "ACTOR", "value": "'$ACTOR'"},
{ "name": "DOLT_BIN", "value": "/usr/local/bin"}
],
"args": [
"--dolt-version='$version'",
"--bucket=dolt-fuzzer-runs",
"--region=us-west-2",
"--version-gate-job",
"--fuzzer-args=basic, --cycles=5"
]
}
],
"restartPolicy": "OnFailure"
}
}
}
}
'
+52
View File
@@ -0,0 +1,52 @@
#!/bin/bash
set -e
if [ -z "$KUBECONFIG" ]; then
echo "Must set KUBECONFIG"
exit 1
fi
if [ -z "$TEMPLATE_SCRIPT" ]; then
echo "Must set TEMPLATE_SCRIPT"
exit 1
fi
if [ -z "$VERSION" ]; then
echo "Must set VERSION"
exit 1
fi
echo "using dolt version: $VERSION"
if [ -z "$ACTOR" ]; then
echo "Must set ACTOR"
exit 1
fi
nomsFormat="ldnbf"
if [ "$NOMS_BIN_FORMAT" == "__DOLT__"]; then
nomsFormat="doltnbf"
fi
# use first 8 characters of TO_VERSION to differentiate
# jobs
short=${VERSION:0:8}
lowered=$(echo "$ACTOR" | tr '[:upper:]' '[:lower:]')
actorShort="$lowered-$nomsFormat-$short"
jobname="$actorShort"
source "$TEMPLATE_SCRIPT" "$jobname" "$VERSION" > job.json
out=$(KUBECONFIG="$KUBECONFIG" kubectl apply -f job.json || true)
if [ "$out" != "job.batch/$jobname created" ]; then
echo "something went wrong creating job... this job likely already exists in the cluster"
echo "$out"
exit 1
else
echo "$out"
fi
exit 0