Skip to content

Commit

Permalink
OTEL-2289 fix ocb component build script (DataDog#31941)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgopack4 authored Dec 10, 2024
1 parent e52d987 commit 7d6be81
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/otel/testdata/ocb_build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@ OTELCOL_PID=0

mkdir -p /tmp/otel-ci
trap 'rm -rf /tmp/otel-ci && kill $OTELCOL_PID' EXIT

current_dir=$(pwd)
cp ./test/otel/testdata/builder-config.yaml /tmp/otel-ci/
# Get path of all datadog modules, in sorted order, without the initial dot
dd_mods=$(find . -type f -name "go.mod" -exec dirname {} \; | sort | sed 's/.//')
echo "replaces:" >> "/tmp/otel-ci/builder-config.yaml"
for mod in $dd_mods; do
echo "- github.com/DataDog/datadog-agent$mod => $current_dir$mod" >> /tmp/otel-ci/builder-config.yaml
done
echo "added all datadog-agent modules to ocb builder-config replacements"

cp ./test/otel/testdata/collector-config.yaml /tmp/otel-ci/
cp ./tools/ci/retry.sh /tmp/otel-ci/
chmod +x /tmp/otel-ci/retry.sh
Expand Down

0 comments on commit 7d6be81

Please sign in to comment.