Skip to content

Instantly share code, notes, and snippets.

View bduffany's full-sized avatar
👷‍♂️
Building with @buildbuddy-io

Brandon Duffany bduffany

👷‍♂️
Building with @buildbuddy-io
  • BuildBuddy
  • Michigan, USA
  • 01:01 (UTC -04:00)
View GitHub Profile

buildbuddy

Building and testing code

  • This is a bazel project - use bb build to ensure that targets compile. bb is the BuildBuddy CLI, which is a drop-in replacement for Bazel, similar to bazelisk. See https://buildbuddy.io/cli for more info.
  • This bazel project supports remote execution and remote caching. After making large changes, you can efficiently test the entire repo using bb test //... --config=remote which runs tests using BuildBuddy's

buildbuddy

Building and testing code

  • This is a bazel project - use bb build to ensure that targets compile. bb is the BuildBuddy CLI, which is a drop-in replacement for Bazel, similar to bazelisk. See https://buildbuddy.io/cli for more info.
  • This bazel project supports remote execution and remote caching. After making large changes, you can efficiently test the entire repo using bb test //... --config=remote which runs tests using BuildBuddy's

buildbuddy

Building and testing code

  • This is a bazel project - use bb build to ensure that targets compile. bb is the BuildBuddy CLI, which is a drop-in replacement for Bazel, similar to bazelisk. See https://buildbuddy.io/cli for more info.
  • This bazel project supports remote execution and remote caching. After making large changes, you can efficiently test the entire repo using bb test //... --config=remote which runs tests using BuildBuddy's
#!/usr/bin/env bash
set -euo pipefail
usage() {
cat <<'USAGE'
Usage:
af_alg_socket_probe.sh [--remote_executor=<target>] [bb execute flags...]
Runs a remote action that passes only when:
- socket(AF_ALG, SOCK_SEQPACKET, 0) is blocked, and
#define _GNU_SOURCE
#include <errno.h>
#include <linux/io_uring.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/syscall.h>
#include <unistd.h>
package main
import (
"fmt"
"log"
"os"
"path/filepath"
"runtime"
"sync"
"syscall"
[
sh_test(
name = "systeminfo_" + pool,
srcs = ["systeminfo.sh"],
exec_properties = {
"test.Pool": pool,
}
)
for pool in [
# Add/change pools here if desired
[
sh_test(
name = "systeminfo_" + pool,
srcs = ["systeminfo.sh"],
exec_properties = {
"Pool": pool,
},
env = {
"POOL": pool,
},
[
sh_test(
name = "systeminfo_" + pool,
srcs = ["systeminfo.sh"],
exec_properties = {
"Pool": pool,
},
env = {
"POOL": pool,
},
load("//:bash_binary.bzl", "bash_binary")
package(default_visibility = ["//visibility:public"])
bash_binary(
name = "a",
src = "a.tmpl.sh",
data = [
"//:b",
],