-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into check-response-handler-result-nil
- Loading branch information
Showing
46 changed files
with
1,251 additions
and
1,151 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
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,23 @@ | ||
name: Orchestrion | ||
on: | ||
workflow_dispatch: # manually | ||
pull_request: | ||
merge_group: | ||
push: | ||
branches: | ||
- release-v* | ||
|
||
permissions: read-all | ||
|
||
concurrency: | ||
# Automatically cancel previous runs if a new one is triggered to conserve resources. | ||
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
name: 'Run Tests' | ||
uses: DataDog/orchestrion/.github/workflows/[email protected]/APPSEC-53773 # we don't want to pin our own action | ||
with: | ||
dd-trace-go-ref: ${{ github.sha }} | ||
runs-on: ubuntu-latest-16-cores |
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 |
---|---|---|
|
@@ -85,6 +85,9 @@ jobs: | |
image: cassandra:3.11 | ||
env: | ||
JVM_OPTS: "-Xms750m -Xmx750m" | ||
CASSANDRA_CLUSTER_NAME: "dd-trace-go-test-cluster" | ||
CASSANDRA_DC: "dd-trace-go-test-datacenter" | ||
CASSANDRA_ENDPOINT_SNITCH: "GossipingPropertyFileSnitch" | ||
ports: | ||
- 9042:9042 | ||
mysql: | ||
|
@@ -194,7 +197,7 @@ jobs: | |
- name: Test Contrib | ||
run: | | ||
mkdir -p $TEST_RESULTS | ||
PACKAGE_NAMES=$(go list ./contrib/... | grep -v -e grpc.v12 -e google.golang.org/api) | ||
PACKAGE_NAMES=$(go list ./contrib/... | grep -v -e google.golang.org/api) | ||
gotestsum --junitfile ${TEST_RESULTS}/gotestsum-report.xml -- $PACKAGE_NAMES -v -race -coverprofile=coverage.txt -covermode=atomic | ||
- name: Upload the results to Datadog CI App | ||
|
@@ -246,32 +249,6 @@ jobs: | |
go mod tidy # Go1.16 doesn't update the sum file correctly after the go get, this tidy fixes it | ||
go test -v ./contrib/google.golang.org/api/... | ||
- name: Testing outlier gRPC v1.2 | ||
run: | | ||
# This hacky approach is necessary because running the tests regularly | ||
# do not allow using [email protected] alongside [email protected]. | ||
# [email protected] is no longer possible to test because internal/datastreams/propagator.go | ||
# expects sketches-go to have the package `github.com/DataDog/sketches-go/ddsketch/encoding` which | ||
# is only present from v1.1.0 onwards. | ||
go mod vendor | ||
# Checkout [email protected] | ||
cd vendor/google.golang.org && rm -rf grpc | ||
git clone https://github.com/grpc/grpc-go grpc && cd grpc | ||
git fetch origin && git checkout v1.2.0 && cd ../../.. | ||
# Checkout [email protected] | ||
cd vendor/github.com/DataDog && rm -rf sketches-go | ||
git clone https://github.com/DataDog/sketches-go && cd sketches-go | ||
git fetch origin && git checkout v1.1.0 && cd ../../../.. | ||
# Revert to old metadata functions as FromIncomingContext and NewOutgoingContext are not present in v1.2.0. | ||
# These functions were updated to current versions to avoid compilation errors in the development environments. | ||
sed -i 's/metadata\.FromIncomingContext/metadata.FromContext/g' ./contrib/google.golang.org/grpc.v12/* | ||
sed -i 's/metadata\.NewOutgoingContext/metadata.NewContext/g' ./contrib/google.golang.org/grpc.v12/* | ||
go test -mod=vendor -v ./contrib/google.golang.org/grpc.v12/... | ||
test-core: | ||
runs-on: | ||
group: "APM Larger Runners" | ||
|
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
Oops, something went wrong.