Skip to content

Commit cae60c0

Browse files
committed
Merge tag 'v3.3.1' into korniltsev/merge_upstream_v3.3.1
2 parents e37a9da + 2405e4c commit cae60c0

File tree

8,138 files changed

+1093858
-310196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8,138 files changed

+1093858
-310196
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
steps:
2+
- bash: |
3+
ids=$(docker ps -q -a)
4+
if [ ! -z "$ids" ]; then
5+
docker rm -f $ids
6+
fi
7+
displayName: Clean docker
8+
condition: and(succeeded(), not(eq(variables['Agent.OS'], 'Windows_NT')))
9+
10+
- powershell: |
11+
$ids = $(docker ps -q -a)
12+
if ($ids) {
13+
docker rm -f $ids
14+
}
15+
displayName: Clean Windows docker
16+
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
parameters:
2+
- name: isLinux
3+
type: boolean
4+
default: false
5+
6+
- name: 'dockerComposePath'
7+
type: string
8+
default: 'C:/docker-compose/docker-compose.exe'
9+
10+
steps:
11+
- ${{ if eq(parameters.isLinux, true) }}:
12+
- bash: |
13+
sudo mkdir -p "$(dirname "${{ parameters.dockerComposePath }}")"
14+
sudo curl -SL https://github.com/docker/compose/releases/download/1.29.2/docker-compose-linux-x86_64 -o ${{ parameters.dockerComposePath }}
15+
sudo chmod 755 ${{ parameters.dockerComposePath }}
16+
displayName: Download docker-compose
17+
- ${{ else }}:
18+
- powershell: |
19+
$dir= (Split-Path -parent "${{ parameters.dockerComposePath }}")
20+
mkdir -f -p $dir
21+
# GitHub now requires TLS1.2. In PowerShell, run the following
22+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
23+
Invoke-WebRequest "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-windows-x86_64.exe" -OutFile "${{ parameters.dockerComposePath }}"
24+
displayName: Download docker-compose
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
parameters:
2+
- name: url
3+
type: string
4+
5+
- name: filename
6+
type: string
7+
8+
- name: msiParams
9+
type: string
10+
default: ''
11+
12+
- name: addToPath
13+
type: string
14+
default: ''
15+
16+
- name: retries
17+
type: number
18+
default: 3
19+
20+
steps:
21+
- powershell: |
22+
$ErrorActionPreference = 'Stop'
23+
24+
$url = "${{ parameters.url }}";
25+
$file = "$(Agent.TempDirectory)\${{ parameters.filename }}"
26+
Write-Host "Downloading from $url to $file";
27+
Invoke-WebRequest -Uri $url -OutFile $file
28+
29+
$installArgs = "/i $file ${{ parameters.msiParams }} /norestart"
30+
Write-Host "Installing using msiexec $installArgs";
31+
Start-Process msiexec $installArgs -Wait
32+
Write-Host "Installed";
33+
34+
if("${{ parameters.addToPath }}") {
35+
Write-Host "Adding to PATH";
36+
Write-Host "##vso[task.setvariable variable=PATH;]${env:PATH};${{ parameters.addToPath }}";
37+
}
38+
39+
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
40+
refreshenv
41+
displayName: Installing ${{ parameters.filename }}
42+
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT')) # TODO: error on non-windows?
43+
retryCountOnTaskFailure: ${{ parameters.retries }}
44+
timeoutInMinutes: 10

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Helpdesk support
4+
url: https://help.datadoghq.com/hc/en-us/requests/new?tf_1260824651490=pt_product_type:apm&tf_1900004146284=pt_apm_language:.net
5+
about: This option creates an expedited Bug Report via the helpdesk (no login required). This will allow us to look up your account and allows you to provide additional information in private.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: "Code Freeze PRs"
2+
description: 'Code Freeze PRs'
3+
4+
inputs:
5+
page_number:
6+
description: "Page number"
7+
required: true
8+
github_token:
9+
description: 'Github token'
10+
required: true
11+
end_freeze:
12+
description: "Start or stop code freeze"
13+
default: "false"
14+
15+
runs:
16+
using: "composite"
17+
steps:
18+
- uses: octokit/[email protected]
19+
name: 'Get open PRs'
20+
id: prs
21+
with:
22+
route: GET /repos/{owner}/{repo}/pulls
23+
owner: DataDog
24+
repo: dd-trace-dotnet
25+
state: open
26+
per_page: 25
27+
page: ${{inputs.page_number}}
28+
env:
29+
GITHUB_TOKEN: "${{ inputs.github_token }}"
30+
31+
- name: 'Update all PRs with Code Freeze status'
32+
shell: bash
33+
env:
34+
github_token: "${{ inputs.github_token }}"
35+
run: |
36+
set -o pipefail
37+
38+
targetUrl="https://github.com/DataDog/dd-trace-dotnet/actions/workflows/code_freeze_start.yml"
39+
state="failure"
40+
description="A code freeze is in place"
41+
42+
if ${{ inputs.end_freeze }} ; then
43+
targetUrl="https://github.com/DataDog/dd-trace-dotnet/actions/workflows/code_freeze_end.yml"
44+
state="success"
45+
description="No code freeze is in place"
46+
fi
47+
48+
json=$(cat << 'ENDOFMESSAGE'
49+
${{ steps.prs.outputs.data }}
50+
ENDOFMESSAGE
51+
)
52+
arrayLength=$(echo $json | jq -r 'length')
53+
echo "Updating code freeze status for $arrayLength PRs"
54+
55+
arrayLength=$((arrayLength-1))
56+
for i in $(seq 0 $arrayLength); do
57+
title=$(echo $json | jq -r ".[$i].title")
58+
echo "Setting code freeze for '$title'"
59+
sha=$(echo $json | jq -r ".[$i].head.sha")
60+
61+
curl -X POST \
62+
-H "Accept: application/vnd.github.v3+json" \
63+
-H "Authorization: Bearer ${{ env.github_token }}" \
64+
"https://api.github.com/repos/DataDog/dd-trace-dotnet/statuses/$sha" \
65+
-d '{"state":"'"$state"'","context":"code_freeze","description":"'"$description"'","target_url":"'"$targetUrl"'"}'
66+
done
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: 'Build System-test base images'
2+
description: 'Builds the system-test docker base images'
3+
4+
inputs:
5+
artifacts_path:
6+
description: 'The location of the assets to use in the current workflow'
7+
required: true
8+
9+
package_version:
10+
description: 'The package version of the assets being used'
11+
required: true
12+
13+
lib_waf_version:
14+
description: 'The version of the WAF being used'
15+
required: true
16+
17+
waf_rules_version:
18+
description: 'The version of the rules being used'
19+
required: true
20+
21+
github_token:
22+
description: 'Github token for pushing images to ghcr.io Docker repository'
23+
required: true
24+
25+
runs:
26+
using: "composite"
27+
steps:
28+
29+
- name: Copy tooling files to artifacts path
30+
shell: bash
31+
run: |
32+
echo "OUTPUT ARTIFACT PATH: ${{inputs.artifacts_path}}"
33+
cp ./tracer/build/_build/docker/system-tests.dockerfile ${{inputs.artifacts_path}}
34+
35+
- name: Set up QEMU
36+
uses: docker/setup-qemu-action@v2
37+
38+
- name: Set up Docker Buildx
39+
id: buildx
40+
uses: docker/setup-buildx-action@v2
41+
42+
- name: Login to Docker
43+
shell: bash
44+
run: docker login -u publisher -p ${{ inputs.github_token }} ghcr.io
45+
46+
- name: Docker Build linux-x64 and linux-arm64 images
47+
uses: docker/build-push-action@v3
48+
with:
49+
push: true
50+
tags: ghcr.io/datadog/dd-trace-dotnet/dd-trace-dotnet:latest_snapshot
51+
platforms: 'linux/amd64,linux/arm64'
52+
context: ${{inputs.artifacts_path}}
53+
file: ${{inputs.artifacts_path}}/system-tests.dockerfile
54+
build-args: |
55+
LINUX_AMD64_PACKAGE=datadog-dotnet-apm-${{inputs.package_version}}.tar.gz
56+
LINUX_ARM64_PACKAGE=datadog-dotnet-apm-${{inputs.package_version}}.arm64.tar.gz
57+
LIBRARY_VERSION=${{inputs.package_version}}
58+
LIBDDWAF_VERSION=${{inputs.lib_waf_version}}
59+
APPSEC_EVENT_RULES_VERSION=${{inputs.waf_rules_version}}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 'Deploy AAS dev app'
2+
description: 'Deploy AAS dev app'
3+
4+
inputs:
5+
aas_github_token:
6+
description: 'aas_github_token'
7+
required: true
8+
9+
runs:
10+
using: "composite"
11+
steps:
12+
- name: Trigger AAS deploy
13+
shell: bash
14+
run: |
15+
curl -X POST \
16+
-H "Accept: application/vnd.github.v3+json" \
17+
-H "Authorization: Bearer ${{ inputs.aas_github_token }}" \
18+
https://api.github.com/repos/DataDog/datadog-aas-extension/dispatches \
19+
-d '{"event_type": "dd-trace-dotnet-nightly", "client_payload": {"sha":"'"$GITHUB_SHA"'" } }'

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ bld/
6464
[Bb]in/
6565
[Oo]bj/
6666
[Ll]og/
67+
.nuke/temp/
6768

6869
# Visual Studio 2015 cache/options directory
6970
.vs/
@@ -354,12 +355,15 @@ shared/src/Datadog.Trace.ClrProfiler.Native/CMakeCache.txt
354355
shared/src/Datadog.Trace.ClrProfiler.Native/cmake_install.cmake
355356
shared/src/Datadog.Trace.ClrProfiler.Native/cmake-build-debug/
356357
!shared/src/Datadog.Trace.ClrProfiler.Native/lib/**
358+
cmake-build-debug/*
357359

358360
#profiler build files
359361
profiler/_build/
360362

361363
# global build folder
362364
obj/*
365+
obj_arm64/*
366+
obj_x86_64/*
363367

364368
# cmake build files
365369
.ionide/
@@ -370,3 +374,11 @@ CMakeFiles/
370374
lib/
371375
libdatadog-*/
372376
*-prefix/
377+
cmake-build-debug/
378+
.cmake/
379+
380+
#jetbrains cache folder
381+
.cache/jb
382+
383+
#datadog coverage
384+
datadog-coverage-*

0 commit comments

Comments
 (0)