Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/bazel-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ jobs:

- name: Scraping Test
if: runner.os == 'macOS'
run: bazel test ${{ matrix.bazel_args }} --test_output=all //pull/tests/integration:scrape-test
run: bazel test ${{ matrix.bazel_args }} --test_output=all --test_env=TELEGRAF="$(brew --prefix telegraf)/bin/telegraf" //pull/tests/integration:scrape-test
9 changes: 5 additions & 4 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ module(
)

bazel_dep(name = "boringssl", version = "0.20250311.0")
bazel_dep(name = "civetweb", version = "1.16.bcr.1")
bazel_dep(name = "curl", version = "8.8.0.bcr.3")
bazel_dep(name = "civetweb", version = "1.16.bcr.4")
bazel_dep(name = "curl", version = "8.12.0.bcr.1")
bazel_dep(name = "platforms", version = "0.0.11")
bazel_dep(name = "rules_cc", version = "0.1.1")
bazel_dep(name = "zlib", version = "1.3.1.bcr.5")

bazel_dep(name = "google_benchmark", version = "1.9.1", dev_dependency = True)
bazel_dep(name = "googletest", version = "1.16.0", dev_dependency = True)
bazel_dep(name = "google_benchmark", version = "1.9.5", dev_dependency = True)
bazel_dep(name = "googletest", version = "1.17.0.bcr.2", dev_dependency = True)
bazel_dep(name = "rules_shell", version = "0.8.0", dev_dependency = True)

# due to
# https://github.com/bazelbuild/bazel/issues/24426
Expand Down
1 change: 1 addition & 0 deletions core/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("//bazel:export_header.bzl", "generate_dummy_export_header")

generate_dummy_export_header(
Expand Down
2 changes: 2 additions & 0 deletions core/benchmarks/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")

cc_binary(
name = "benchmarks",
srcs = glob([
Expand Down
2 changes: 2 additions & 0 deletions core/tests/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_cc//cc:cc_test.bzl", "cc_test")

cc_test(
name = "unit",
srcs = glob([
Expand Down
1 change: 1 addition & 0 deletions pull/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("//bazel:export_header.bzl", "generate_dummy_export_header")

generate_dummy_export_header(
Expand Down
4 changes: 4 additions & 0 deletions pull/tests/integration/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
load("@rules_cc//cc:cc_test.bzl", "cc_test")
load("@rules_shell//shell:sh_test.bzl", "sh_test")

cc_binary(
name = "sample-server",
srcs = ["sample_server.cc"],
Expand Down
7 changes: 4 additions & 3 deletions pull/tests/integration/scrape.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env bash

telegraf=$(which telegraf)
if [ ! -x "$telegraf" ] ; then
: "${TELEGRAF:=$(which telegraf)}"

if [ ! -x "$TELEGRAF" ] ; then
echo "telegraf must be in path for this test to run"
exit 1
fi
Expand All @@ -16,4 +17,4 @@ trap 'kill $(jobs -p)' EXIT
timeout_after 10

pull/tests/integration/sample-server &
telegraf --config pull/tests/integration/scrape.conf --quiet | grep -m1 http_requests_total
"$TELEGRAF" --config pull/tests/integration/scrape.conf --quiet | grep -m1 http_requests_total
2 changes: 2 additions & 0 deletions pull/tests/unit/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_cc//cc:cc_test.bzl", "cc_test")

cc_test(
name = "unit",
srcs = glob(["*.cc"]),
Expand Down
1 change: 1 addition & 0 deletions push/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("//bazel:export_header.bzl", "generate_dummy_export_header")

generate_dummy_export_header(
Expand Down
2 changes: 2 additions & 0 deletions push/tests/integration/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")

cc_binary(
name = "sample_client",
srcs = ["sample_client.cc"],
Expand Down
2 changes: 2 additions & 0 deletions push/tests/internal/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_cc//cc:cc_test.bzl", "cc_test")

cc_test(
name = "internal",
srcs = glob(["*.cc"]),
Expand Down
2 changes: 2 additions & 0 deletions util/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_cc//cc:cc_library.bzl", "cc_library")

cc_library(
name = "util",
hdrs = glob(["include/**/*.h"]),
Expand Down
2 changes: 2 additions & 0 deletions util/tests/unit/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_cc//cc:cc_test.bzl", "cc_test")

cc_test(
name = "unit",
srcs = glob(["*.cc"]),
Expand Down
Loading