Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DogStatsD Package #606

Merged
merged 40 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
a05235d
feat: upstream dogstatsd from datadog lambda extension
alexgallotta Aug 21, 2024
2a459b1
add: stand alone dogstatsd binary as example
alexgallotta Aug 21, 2024
3a47f85
fix: imports
alexgallotta Aug 21, 2024
63094f2
fix: make test utils public
alexgallotta Aug 21, 2024
47531fd
fix: more test utils public
alexgallotta Aug 21, 2024
9cfe64b
fix: make entry public
alexgallotta Aug 21, 2024
911f5de
fix: clippy
alexgallotta Aug 21, 2024
7dc9799
fix: make test config public
alexgallotta Aug 21, 2024
b96d29d
Revert "fix: make test config public"
alexgallotta Aug 21, 2024
5ea7c41
fix: make fields public for tests and assertions
alexgallotta Aug 21, 2024
c139886
Merge branch 'main' into upstream-dogstatsd
duncanpharvey Aug 29, 2024
696e83f
use reqwest 0.12.4 in Cargo.lock
duncanpharvey Aug 30, 2024
cbf8ba4
add copyright headers
duncanpharvey Aug 30, 2024
ba4aaba
apply formatting
duncanpharvey Aug 30, 2024
6da5aae
update license
duncanpharvey Aug 30, 2024
ff471f4
upgrade rust to 1.77.2
duncanpharvey Aug 30, 2024
4be679e
install protoc binary for lint, test, and miri workflows
duncanpharvey Aug 30, 2024
f43b3f2
install protoc binary for cross on centos7
duncanpharvey Aug 30, 2024
ddb3fc0
add dogstatsd to alpine build and upgrade alpine version
duncanpharvey Aug 30, 2024
519b81c
install protoc binary for coverage
duncanpharvey Aug 30, 2024
884284c
use rust 1.76.0 and forked saluki-backport repo
duncanpharvey Aug 30, 2024
0cc34cf
remove package specific toolchain
duncanpharvey Aug 30, 2024
c7f8083
Merge branch 'main' into upstream-dogstatsd
duncanpharvey Sep 3, 2024
79d77cb
refactor protoc install script to pass install path as an argument
duncanpharvey Sep 3, 2024
9f45b02
install protoc for benchmark ci job
duncanpharvey Sep 3, 2024
4816285
remove unzip install since it is now part of base image
duncanpharvey Sep 4, 2024
0ac871f
add dogstatsd integration test
duncanpharvey Sep 4, 2024
92201f2
fix license
duncanpharvey Sep 4, 2024
afadf29
Merge branch 'main' into upstream-dogstatsd
duncanpharvey Sep 4, 2024
0b7f123
fix merge
duncanpharvey Sep 4, 2024
62b237e
fix lint error
duncanpharvey Sep 4, 2024
3d2f94a
use localhost address for dogstatsd test
duncanpharvey Sep 4, 2024
ddfa73c
use port 18125 for dogstatsd test
duncanpharvey Sep 4, 2024
e30bee3
disable dogstatsd test for miri
duncanpharvey Sep 5, 2024
b86c641
dogstatsd cleanup
duncanpharvey Sep 5, 2024
31f784a
fix license
duncanpharvey Sep 5, 2024
4aa13dc
Merge branch 'main' into upstream-dogstatsd
duncanpharvey Sep 5, 2024
ddac4ee
fix merge conflicts
duncanpharvey Sep 5, 2024
5d181a0
update alpine base image to 3.19.3
duncanpharvey Sep 5, 2024
4e414d6
Merge branch 'main' into upstream-dogstatsd
duncanpharvey Sep 9, 2024
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
3 changes: 3 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup install nightly && rustup default nightly
- name: Install Protoc Binary
shell: bash
run: chmod +x ./scripts/install-protoc.sh && ./scripts/install-protoc.sh $HOME
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
rust_version: ${{ matrix.rust_version }}
- name: Install ${{ matrix.rust_version }} toolchain and clippy
run: rustup install ${{ matrix.rust_version }} && rustup default ${{ matrix.rust_version }} && rustup component add clippy
- name: Install Protoc Binary
shell: bash
run: chmod +x ./scripts/install-protoc.sh && ./scripts/install-protoc.sh $HOME
- name: Run clippy on ${{ matrix.platform }} ${{ matrix.rust_version }}
shell: bash
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/miri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
rustup set profile minimal
rustup toolchain install nightly --component miri
rustup default nightly
- name: Install Protoc Binary
shell: bash
run: chmod +x ./scripts/install-protoc.sh && ./scripts/install-protoc.sh $HOME
- uses: taiki-e/install-action@v2
with:
tool: nextest@0.9.68
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- id: rust-version
# On Windows run happens in a PowerShell, so start bash explicitly
run: bash -c 'echo "version=$(rustc --version)" >> $GITHUB_OUTPUT'
- name: Install Protoc Binary
shell: bash
run: chmod +x ./scripts/install-protoc.sh && ./scripts/install-protoc.sh $HOME
- name: Install cargo nextest
uses: taiki-e/install-action@v2
with:
Expand All @@ -49,18 +52,22 @@ jobs:
shell: bash
run: rm -rf target/nextest/ci/junit.xml
- name: "[${{ steps.rust-version.outputs.version}}] cargo build --workspace --exclude builder --verbose"
shell: bash
run: cargo build --workspace --exclude builder --verbose
- name: "[${{ steps.rust-version.outputs.version}}] cargo nextest run --workspace --exclude builder --profile ci --verbose -E '!test(tracing_integration_tests::)'"
shell: bash
# Run doc tests with cargo test and run tests with nextest and generate junit.xml
run: cargo test --workspace --exclude builder --doc --verbose && cargo nextest run --workspace --exclude builder --profile ci --verbose -E '!test(tracing_integration_tests::)'
env:
RUST_BACKTRACE: 1
- name: "[${{ steps.rust-version.outputs.version}}] Tracing integration tests: cargo nextest run --workspace --exclude builder --profile ci --verbose -E 'test(tracing_integration_tests::)'"
if: runner.os == 'Linux'
shell: bash
run: cargo nextest run --workspace --exclude builder --profile ci --verbose -E 'test(tracing_integration_tests::)'
env:
RUST_BACKTRACE: 1
- name: "[${{ steps.rust-version.outputs.version}}] RUSTFLAGS=\"-C prefer-dynamic\" cargo nextest run --package test_spawn_from_lib --features prefer-dynamic -E '!test(tracing_integration_tests::)'"
shell: bash
run: cargo nextest run --package test_spawn_from_lib --features prefer-dynamic -E '!test(tracing_integration_tests::)'
env:
RUSTFLAGS: "-C prefer-dynamic"
Expand Down
1 change: 1 addition & 0 deletions .gitlab/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ benchmarks:
interruptible: true
timeout: 1h
script:
- chmod +x ./scripts/install-protoc.sh && . ./scripts/install-protoc.sh $HOME/usr/local
- export ARTIFACTS_DIR="$(pwd)/reports" && (mkdir "${ARTIFACTS_DIR}" || :)
- git clone --branch libdatadog/benchmarks https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/benchmarking-platform /platform && cd /platform
- ./steps/capture-hardware-software-info.sh
Expand Down
Loading
Loading