-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
432 changed files
with
3,336 additions
and
1,654 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,6 +151,7 @@ jobs: | |
- run: docker run --platform=linux/arm64 -v $PWD:$PWD -w $PWD -eCGO_ENABLED=${{ matrix.cgo_enabled }} -eDD_APPSEC_ENABLED=${{ matrix.appsec_enabled }} -eDD_APPSEC_WAF_TIMEOUT=$DD_APPSEC_WAF_TIMEOUT golang go test -v -tags appsec $TO_TEST | ||
|
||
smoke-tests: | ||
uses: DataDog/appsec-go-test-app/.github/workflows/smoke-tests.yml@main | ||
# TODO(darccio): change to main branch on v2 release | ||
uses: DataDog/appsec-go-test-app/.github/workflows/[email protected]/AIT-3705/dd-trace-go.v2 | ||
with: | ||
dd-trace-go-version: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
variables: | ||
BENCHMARKS_CI_IMAGE: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/benchmarking-platform:go-go-prof-app | ||
|
||
.benchmarks: | ||
stage: macrobenchmarks | ||
needs: [] | ||
tags: ["runner:apm-k8s-same-cpu"] | ||
timeout: 1h | ||
rules: | ||
- if: $CI_COMMIT_REF_NAME == "master" | ||
when: always | ||
- when: manual | ||
# If you have a problem with Gitlab cache, see Troubleshooting section in Benchmarking Platform docs | ||
image: $BENCHMARKS_CI_IMAGE | ||
script: | ||
- git clone --branch go/go-prof-app https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/benchmarking-platform platform && cd platform | ||
- "./generate-run-plan-and-run-benchmarks.sh" | ||
artifacts: | ||
name: "artifacts" | ||
when: always | ||
paths: | ||
- platform/artifacts/ | ||
expire_in: 3 months | ||
variables: | ||
FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY: "true" # Important tweak for stability of benchmarks | ||
KUBERNETES_SERVICE_ACCOUNT_OVERWRITE: dd-trace-go | ||
DD_INSTRUMENTATION_TELEMETRY_ENABLED: "true" | ||
DD_INSTRUMENTATION_TELEMETRY_DEBUG: "true" | ||
# Used to build the SUT | ||
GO_PROF_APP_BUILD_VARIANT: "candidate" | ||
DD_TRACE_GO_VERSION: "latest" | ||
|
||
|
||
# Workaround: Currently we're not running the benchmarks on every PR, but GitHub still shows them as pending. | ||
# By marking the benchmarks as allow_failure, this should go away. (This workaround should be removed once the | ||
# benchmarks get changed to run on every PR) | ||
allow_failure: true | ||
go118-baseline: | ||
extends: .benchmarks | ||
variables: | ||
ENABLE_DDPROF: "false" | ||
ENABLE_TRACING: "false" | ||
ENABLE_PROFILING: "false" | ||
ENABLE_APPSEC: "false" | ||
DD_PROFILING_EXECUTION_TRACE_ENABLED: "false" | ||
GO_VERSION: "1.18" | ||
LOAD_TESTS: normal_operation_io-bound,high_load_io-bound|normal_operation_cpu-bound,high_load_cpu-bound|normal_operation_cgo-cpu-bound,high_load_cgo-cpu-bound|normal_operation_cpu-bound-x-client-ip-enabled,high_load_cpu-bound-x-client-ip-enabled | ||
PARALLELIZE: "true" | ||
go118-only-trace: | ||
extends: .benchmarks | ||
variables: | ||
ENABLE_DDPROF: "false" | ||
ENABLE_TRACING: "true" | ||
ENABLE_PROFILING: "false" | ||
ENABLE_APPSEC: "false" | ||
DD_PROFILING_EXECUTION_TRACE_ENABLED: "false" | ||
GO_VERSION: "1.18" | ||
LOAD_TESTS: normal_operation_io-bound,high_load_io-bound|normal_operation_cpu-bound,high_load_cpu-bound|normal_operation_cgo-cpu-bound,high_load_cgo-cpu-bound|normal_operation_cpu-bound-x-client-ip-enabled,high_load_cpu-bound-x-client-ip-enabled | ||
PARALLELIZE: "true" | ||
go118-only-profile: | ||
extends: .benchmarks | ||
variables: | ||
ENABLE_DDPROF: "false" | ||
ENABLE_TRACING: "false" | ||
ENABLE_PROFILING: "true" | ||
ENABLE_APPSEC: "false" | ||
DD_PROFILING_EXECUTION_TRACE_ENABLED: "false" | ||
GO_VERSION: "1.18" | ||
LOAD_TESTS: normal_operation_io-bound,high_load_io-bound|normal_operation_cpu-bound,high_load_cpu-bound|normal_operation_cgo-cpu-bound,high_load_cgo-cpu-bound|normal_operation_cpu-bound-x-client-ip-enabled,high_load_cpu-bound-x-client-ip-enabled | ||
PARALLELIZE: "true" | ||
go118-profile-trace: | ||
extends: .benchmarks | ||
variables: | ||
ENABLE_DDPROF: "false" | ||
ENABLE_TRACING: "true" | ||
ENABLE_PROFILING: "true" | ||
ENABLE_APPSEC: "false" | ||
DD_PROFILING_EXECUTION_TRACE_ENABLED: "false" | ||
GO_VERSION: "1.18" | ||
LOAD_TESTS: normal_operation_io-bound,high_load_io-bound|normal_operation_cpu-bound,high_load_cpu-bound|normal_operation_cgo-cpu-bound,high_load_cgo-cpu-bound|normal_operation_cpu-bound-x-client-ip-enabled,high_load_cpu-bound-x-client-ip-enabled | ||
PARALLELIZE: "true" | ||
go118-trace-asm: | ||
extends: .benchmarks | ||
variables: | ||
ENABLE_DDPROF: "false" | ||
ENABLE_TRACING: "true" | ||
ENABLE_PROFILING: "false" | ||
ENABLE_APPSEC: "true" | ||
DD_PROFILING_EXECUTION_TRACE_ENABLED: "false" | ||
GO_VERSION: "1.18" | ||
LOAD_TESTS: normal_operation_io-bound,high_load_io-bound|normal_operation_cpu-bound,high_load_cpu-bound|normal_operation_cgo-cpu-bound,high_load_cgo-cpu-bound|normal_operation_cpu-bound-x-client-ip-enabled,high_load_cpu-bound-x-client-ip-enabled | ||
PARALLELIZE: "true" | ||
go118-profile-trace-asm: | ||
extends: .benchmarks | ||
variables: | ||
ENABLE_DDPROF: "false" | ||
ENABLE_TRACING: "true" | ||
ENABLE_PROFILING: "true" | ||
ENABLE_APPSEC: "true" | ||
DD_PROFILING_EXECUTION_TRACE_ENABLED: "false" | ||
GO_VERSION: "1.18" | ||
LOAD_TESTS: normal_operation_io-bound,high_load_io-bound|normal_operation_cpu-bound,high_load_cpu-bound|normal_operation_cgo-cpu-bound,high_load_cgo-cpu-bound|normal_operation_cpu-bound-x-client-ip-enabled,high_load_cpu-bound-x-client-ip-enabled | ||
PARALLELIZE: "true" | ||
go119-baseline: | ||
extends: .benchmarks | ||
variables: | ||
ENABLE_DDPROF: "false" | ||
ENABLE_TRACING: "false" | ||
ENABLE_PROFILING: "false" | ||
ENABLE_APPSEC: "false" | ||
DD_PROFILING_EXECUTION_TRACE_ENABLED: "false" | ||
GO_VERSION: "1.19" | ||
LOAD_TESTS: normal_operation_io-bound,high_load_io-bound|normal_operation_cpu-bound,high_load_cpu-bound|normal_operation_cgo-cpu-bound,high_load_cgo-cpu-bound|normal_operation_cpu-bound-x-client-ip-enabled,high_load_cpu-bound-x-client-ip-enabled | ||
PARALLELIZE: "true" | ||
go119-only-trace: | ||
extends: .benchmarks | ||
variables: | ||
ENABLE_DDPROF: "false" | ||
ENABLE_TRACING: "true" | ||
ENABLE_PROFILING: "false" | ||
ENABLE_APPSEC: "false" | ||
DD_PROFILING_EXECUTION_TRACE_ENABLED: "false" | ||
GO_VERSION: "1.19" | ||
LOAD_TESTS: normal_operation_io-bound,high_load_io-bound|normal_operation_cpu-bound,high_load_cpu-bound|normal_operation_cgo-cpu-bound,high_load_cgo-cpu-bound|normal_operation_cpu-bound-x-client-ip-enabled,high_load_cpu-bound-x-client-ip-enabled | ||
PARALLELIZE: "true" | ||
go119-only-profile: | ||
extends: .benchmarks | ||
variables: | ||
ENABLE_DDPROF: "false" | ||
ENABLE_TRACING: "false" | ||
ENABLE_PROFILING: "true" | ||
ENABLE_APPSEC: "false" | ||
DD_PROFILING_EXECUTION_TRACE_ENABLED: "false" | ||
GO_VERSION: "1.19" | ||
LOAD_TESTS: normal_operation_io-bound,high_load_io-bound|normal_operation_cpu-bound,high_load_cpu-bound|normal_operation_cgo-cpu-bound,high_load_cgo-cpu-bound|normal_operation_cpu-bound-x-client-ip-enabled,high_load_cpu-bound-x-client-ip-enabled | ||
PARALLELIZE: "true" | ||
go119-profile-trace: | ||
extends: .benchmarks | ||
variables: | ||
ENABLE_DDPROF: "false" | ||
ENABLE_TRACING: "true" | ||
ENABLE_PROFILING: "true" | ||
ENABLE_APPSEC: "false" | ||
DD_PROFILING_EXECUTION_TRACE_ENABLED: "false" | ||
GO_VERSION: "1.19" | ||
LOAD_TESTS: normal_operation_io-bound,high_load_io-bound|normal_operation_cpu-bound,high_load_cpu-bound|normal_operation_cgo-cpu-bound,high_load_cgo-cpu-bound|normal_operation_cpu-bound-x-client-ip-enabled,high_load_cpu-bound-x-client-ip-enabled | ||
PARALLELIZE: "true" | ||
go119-trace-asm: | ||
extends: .benchmarks | ||
variables: | ||
ENABLE_DDPROF: "false" | ||
ENABLE_TRACING: "true" | ||
ENABLE_PROFILING: "false" | ||
ENABLE_APPSEC: "true" | ||
DD_PROFILING_EXECUTION_TRACE_ENABLED: "false" | ||
GO_VERSION: "1.19" | ||
LOAD_TESTS: normal_operation_io-bound,high_load_io-bound|normal_operation_cpu-bound,high_load_cpu-bound|normal_operation_cgo-cpu-bound,high_load_cgo-cpu-bound|normal_operation_cpu-bound-x-client-ip-enabled,high_load_cpu-bound-x-client-ip-enabled | ||
PARALLELIZE: "true" | ||
go119-profile-trace-asm: | ||
extends: .benchmarks | ||
variables: | ||
ENABLE_DDPROF: "false" | ||
ENABLE_TRACING: "true" | ||
ENABLE_PROFILING: "true" | ||
ENABLE_APPSEC: "true" | ||
DD_PROFILING_EXECUTION_TRACE_ENABLED: "false" | ||
GO_VERSION: "1.19" | ||
LOAD_TESTS: normal_operation_io-bound,high_load_io-bound|normal_operation_cpu-bound,high_load_cpu-bound|normal_operation_cgo-cpu-bound,high_load_cgo-cpu-bound|normal_operation_cpu-bound-x-client-ip-enabled,high_load_cpu-bound-x-client-ip-enabled | ||
PARALLELIZE: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.