Implement minijob
This implements a minimal job queue based on cockroachdb.
Currently this lacks getters for pending jobs.
Test Plan: Execute the tests in minijob.
X-Origin-Diff: phab/D253
GitOrigin-RevId: b5c0bc0920a12cd976b848f05301f9d5f959e9de
diff --git a/BUILD b/BUILD
index a3f5842..02013bc 100644
--- a/BUILD
+++ b/BUILD
@@ -32,7 +32,8 @@
"@org_golang_x_tools//go/analysis/passes/atomic:go_tool_library",
"@org_golang_x_tools//go/analysis/passes/bools:go_tool_library",
"@org_golang_x_tools//go/analysis/passes/buildtag:go_tool_library",
- "@org_golang_x_tools//go/analysis/passes/cgocall:go_tool_library",
+ # Disable cgocall because it fails processing com_github_mattn_go_sqlite3 before exclusions are applied
+ #"@org_golang_x_tools//go/analysis/passes/cgocall:go_tool_library",
"@org_golang_x_tools//go/analysis/passes/composite:go_tool_library",
"@org_golang_x_tools//go/analysis/passes/copylock:go_tool_library",
"@org_golang_x_tools//go/analysis/passes/httpresponse:go_tool_library",
diff --git a/nogo_config.json b/nogo_config.json
index dcbeada..43ff53b 100644
--- a/nogo_config.json
+++ b/nogo_config.json
@@ -15,13 +15,15 @@
"exclude_files": {
"external/com_github_golang_protobuf/": "third_party",
"external/com_github_grpc_ecosystem_grpc_gateway/runtime/": "third_party",
- "external/kubernetes/": "third_party"
+ "external/kubernetes/": "third_party",
+ "external/com_github_denisenkom_go_mssqldb/": "third_party"
}
},
"unreachable": {
"exclude_files": {
"external/kubernetes/": "third_party",
- "external/bazel_gazelle/pathtools": "third_party"
+ "external/bazel_gazelle/pathtools": "third_party",
+ "external/com_github_magiconair_properties": "third_party"
}
},
"assign": {
@@ -32,7 +34,8 @@
"unsafeptr": {
"exclude_files": {
"external/kubernetes/vendor/github.com/modern-go/reflect2/": "third_party",
- "external/com_github_modern_go_reflect2/": "third_party"
+ "external/com_github_modern_go_reflect2/": "third_party",
+ "sqlite3.*go": "third_party"
}
},
"unusedresult": {
diff --git a/scripts/run_ci.sh b/scripts/run_ci.sh
index d8fcf81..8551d53 100755
--- a/scripts/run_ci.sh
+++ b/scripts/run_ci.sh
@@ -67,7 +67,7 @@
--pod ${POD} \
--ulimit nofile=262144:262144 \
--name=${POD}-cockroach \
- cockroachdb/cockroach:v19.1.5 start --insecure
+ cockroachdb/cockroach:v19.1.5 start --insecure --advertise-addr localhost
podman run \
-v $(pwd):/work \