Skip to content

Commit

Permalink
Bump .NET SDK to 7.0.306 (#4289)
Browse files Browse the repository at this point in the history
* Bump SDK to 7.0.304

* Update download path for gitlab build

* Fix dead link

* Bump SDK to 7.0.306

* Update download path for gitlab
  • Loading branch information
andrewlock authored Jul 12, 2023
1 parent 70c5883 commit c4a6a43
Show file tree
Hide file tree
Showing 26 changed files with 37 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/noop-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pr:

# Global variables
variables:
dotnetCoreSdkLatestVersion: 7.0.101
dotnetCoreSdkLatestVersion: 7.0.306
OriginalCommitId: $[coalesce(variables['System.PullRequest.SourceCommitId'], variables['Build.SourceVersion'])] # required by update-github-status
TargetBranch: $[variables['System.PullRequest.TargetBranch']]

Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/ultimate-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ schedules:
# Global variables
variables:
buildConfiguration: Release
dotnetCoreSdkLatestVersion: 7.0.101
dotnetCoreSdkLatestVersion: 7.0.306
relativeArtifacts: /tracer/src/bin/artifacts
monitoringHome: $(System.DefaultWorkingDirectory)/shared/bin/monitoring-home
artifacts: $(System.DefaultWorkingDirectory)/tracer/src/bin/artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/run-in-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:
shell: bash
run: |
docker build \
--build-arg DOTNETSDK_VERSION=7.0.101 \
--build-arg DOTNETSDK_VERSION=7.0.306 \
--tag dd-trace-dotnet/${{ inputs.baseImage }}-builder \
--target builder \
--file "${GITHUB_WORKSPACE}/tracer/build/_build/docker/${{ inputs.baseImage }}.dockerfile" \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto_add_vnext_milestone_to_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: "Assign to vNext Milestone"
run: ./tracer/build.sh AssignPullRequestToMilestone
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto_bump_test_package_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: "Regenerating package versions"
run: .\tracer\build.ps1 GeneratePackageVersions
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto_check_snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: "Check Snapshots"
run: ./tracer/build.sh SummaryOfSnapshotChanges
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto_create_version_bump_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: "Update Changelog"
run: .\tracer\build.ps1 UpdateChangeLog
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto_label_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: "Add labels"
run: ./tracer/build.sh AssignLabelsToPullRequest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto_update_benchmark_branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: "Output current version"
id: versions
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: Download datadog-ci
run: |
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: Download datadog-ci
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create_draft_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: "Configure Git Credentials"
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create_hotfix_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: "Bump Version"
id: versions
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-base-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: "Get current version"
id: versions
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/force_manual_version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: "Bump Version"
id: versions
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lib-injection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: "Get current version"
id: versions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: "Removing existing Datadog.Trace.Trimming.xml"
run: Get-ChildItem –Path ".\tracer\src\Datadog.Trace.Trimming\build\Datadog.Trace.Trimming.xml" -Recurse -File | Remove-Item
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify_integrations_map_added.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: "Regenerating package versions"
run: .\tracer\build.ps1 GeneratePackageVersions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: "Removing existing generated files"
run: Get-ChildItem –Path ".\tracer\src\Datadog.Trace\Generated" -Recurse -File | Remove-Item
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.101'
dotnet-version: '7.0.306'

- name: "Regenerate docs/span_metadata.md"
run: .\tracer\build.ps1 GenerateSpanDocumentation
Expand Down
14 changes: 7 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ services:
context: ./tracer/build/_build/
dockerfile: docker/${baseImage:-centos7}.dockerfile
args:
- DOTNETSDK_VERSION=${dotnetCoreSdkLatestVersion:-7.0.101}
- DOTNETSDK_VERSION=${dotnetCoreSdkLatestVersion:-7.0.306}
image: dd-trace-dotnet/${baseImage:-centos7}-tester
command: dotnet /build/bin/Debug/_build.dll BuildAndRunProfilerIntegrationTests
volumes:
Expand Down Expand Up @@ -422,7 +422,7 @@ services:
context: ./tracer/build/_build/
dockerfile: docker/${baseImage:-centos7}.dockerfile
args:
- DOTNETSDK_VERSION=${dotnetCoreSdkLatestVersion:-7.0.101}
- DOTNETSDK_VERSION=${dotnetCoreSdkLatestVersion:-7.0.306}
image: dd-trace-dotnet/${baseImage:-centos7}-tester
command: dotnet /build/bin/Debug/_build.dll RunLinuxIntegrationTests --framework ${framework:-netcoreapp3.1} --code-coverage ${runCodeCoverage:-true}
volumes:
Expand Down Expand Up @@ -517,7 +517,7 @@ services:
context: ./tracer/build/_build/
dockerfile: docker/${baseImage:-centos7}.dockerfile
args:
- DOTNETSDK_VERSION=${dotnetCoreSdkLatestVersion:-7.0.101}
- DOTNETSDK_VERSION=${dotnetCoreSdkLatestVersion:-7.0.306}
image: dd-trace-dotnet/${baseImage:-centos7}-tester
command: dotnet /build/bin/Debug/_build.dll RunDebuggerIntegrationTests --framework ${framework:-netcoreapp3.1} --code-coverage ${runCodeCoverage:-true} --targetplatform x64
volumes:
Expand Down Expand Up @@ -568,7 +568,7 @@ services:
context: ./tracer/build/_build/
dockerfile: docker/${baseImage:-centos7}.dockerfile
args:
- DOTNETSDK_VERSION=${dotnetCoreSdkLatestVersion:-7.0.101}
- DOTNETSDK_VERSION=${dotnetCoreSdkLatestVersion:-7.0.306}
image: dd-trace-dotnet/${baseImage:-centos7}-tester
command: dotnet /build/bin/Debug/_build.dll RunLinuxIntegrationTests --framework ${framework:-netcoreapp3.1} --filter Category=Lambda --code-coverage ${runCodeCoverage:-true}
volumes:
Expand Down Expand Up @@ -623,7 +623,7 @@ services:
context: ./tracer/build/_build/
dockerfile: docker/${baseImage:-centos7}.dockerfile
args:
- DOTNETSDK_VERSION=${dotnetCoreSdkLatestVersion:-7.0.101}
- DOTNETSDK_VERSION=${dotnetCoreSdkLatestVersion:-7.0.306}
image: dd-trace-dotnet/${baseImage:-centos7}-tester
command: dotnet /build/bin/Debug/_build.dll RunExplorationTests --explorationTestUseCase ${explorationTestUseCase:-debugger} --explorationTestName ${explorationTestName:-eshoponweb} --framework ${framework:-netcoreapp3.1} --code-coverage ${runCodeCoverage:-true}
volumes:
Expand Down Expand Up @@ -699,7 +699,7 @@ services:
context: ./tracer/build/_build/
dockerfile: docker/${baseImage:-debian}.dockerfile
args:
- DOTNETSDK_VERSION=${dotnetCoreSdkLatestVersion:-7.0.101}
- DOTNETSDK_VERSION=${dotnetCoreSdkLatestVersion:-7.0.306}
image: dd-trace-dotnet/${baseImage:-debian}-tester
command: dotnet /build/bin/Debug/_build.dll RunLinuxIntegrationTests --framework ${framework:-netcoreapp3.1}
volumes:
Expand Down Expand Up @@ -797,7 +797,7 @@ services:
context: ./tracer/build/_build/
dockerfile: docker/${baseImage:-debian}.dockerfile
args:
- DOTNETSDK_VERSION=${dotnetCoreSdkLatestVersion:-7.0.101}
- DOTNETSDK_VERSION=${dotnetCoreSdkLatestVersion:-7.0.306}
image: dd-trace-dotnet/${baseImage:-debian}-tester
command: dotnet /build/bin/Debug/_build.dll RunDebuggerIntegrationTests --framework ${framework:-netcoreapp3.1} --targetplatform x64
volumes:
Expand Down
4 changes: 2 additions & 2 deletions docs/development/CI/RunSmokeTestsLocally.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Then run the following
docker pull ghcr.io/datadog/dd-apm-test-agent/ddapm-test-agent:latest

# build the smoke test docker image (using the artifacts)
docker-compose build --build-arg DOTNETSDK_VERSION=7.0.101 --build-arg RUNTIME_IMAGE=mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim --build-arg PUBLISH_FRAMEWORK=net6.0 --build-arg INSTALL_CMD="dpkg -i ./datadog-dotnet-apm*_amd64.deb" smoke-tests
docker-compose build --build-arg DOTNETSDK_VERSION=7.0.306 --build-arg RUNTIME_IMAGE=mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim --build-arg PUBLISH_FRAMEWORK=net6.0 --build-arg INSTALL_CMD="dpkg -i ./datadog-dotnet-apm*_amd64.deb" smoke-tests

# start the test-agent (you may get an error on Windows, just ignore it)
docker-compose run --rm start-test-agent
Expand All @@ -43,7 +43,7 @@ To test and update the .NET Core 2.1 snapshots, use the following steps instead
docker pull ghcr.io/datadog/dd-apm-test-agent/ddapm-test-agent:latest

# build the .NET Core 2.1 smoke test docker image (using the artifacts)
docker-compose build --build-arg DOTNETSDK_VERSION=7.0.101 --build-arg RUNTIME_IMAGE=mcr.microsoft.com/dotnet/aspnet:2.1-bionic --build-arg PUBLISH_FRAMEWORK=netcoreapp2.1 --build-arg INSTALL_CMD="dpkg -i ./datadog-dotnet-apm*_amd64.deb" smoke-tests
docker-compose build --build-arg DOTNETSDK_VERSION=7.0.306 --build-arg RUNTIME_IMAGE=mcr.microsoft.com/dotnet/aspnet:2.1-bionic --build-arg PUBLISH_FRAMEWORK=netcoreapp2.1 --build-arg INSTALL_CMD="dpkg -i ./datadog-dotnet-apm*_amd64.deb" smoke-tests

# start the test-agent (you may get an error on Windows, just ignore it)
docker-compose run --rm start-test-agent
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "7.0.101",
"version": "7.0.306",
"rollForward": "minor"
}
}
2 changes: 1 addition & 1 deletion tracer/build/_build/docker/centos7.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ RUN curl -Ol https://raw.githubusercontent.com/llvm-mirror/clang-tools-extra/mas
&& ln -s /usr/bin/run-clang-tidy.py /usr/bin/run-clang-tidy

# Install CppCheck
RUN curl -sSL https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/c/cppcheck-2.7-1.el7.x86_64.rpm --output cppcheck-2.7-1.el7.x86_64.rpm \
RUN curl -sSL https://rpmfind.net/linux/epel/7/x86_64/Packages/c/cppcheck-2.7-1.el7.x86_64.rpm --output cppcheck-2.7-1.el7.x86_64.rpm \
&& sudo yum localinstall -y cppcheck-2.7-1.el7.x86_64.rpm

# Install the .NET SDK
Expand Down
7 changes: 4 additions & 3 deletions tracer/build/_build/docker/gitlab/gitlab.windows.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ COPY install_wix.ps1 .
RUN powershell -Command .\install_wix.ps1 -Version $ENV:WIX_VERSION -Sha256 $ENV:WIX_SHA256

# Install .NET 7
ENV DOTNET_VERSION="7.0.101" \
DOTNET_DOWNLOAD_URL="https://download.visualstudio.microsoft.com/download/pr/35660869-0942-4c5d-8692-6e0d4040137a/4921a36b578d8358dac4c27598519832/dotnet-sdk-7.0.101-win-x64.exe" \
DOTNET_SHA512="51776ee364ef9c79feaa7b7c970bb59a3f26344797156aefad13271e5e8b720c9746091bfc7add83c80752c40456491d062c54ae2d1ed5b0426be381a0aa980a"
# To find these links, visit https://dotnet.microsoft.com/en-us/download, click the Windows, x64 installer, and grab the download url + SHA512 hash
ENV DOTNET_VERSION="7.0.306" \
DOTNET_DOWNLOAD_URL="https://download.visualstudio.microsoft.com/download/pr/4c0aaf08-3fa1-4fa0-8435-73b85eee4b32/e8264b3530b03b74b04ecfcf1666fe93/dotnet-sdk-7.0.306-win-x64.exe" \
DOTNET_SHA512="29f99b73727fd4ddf3d2d7ddde4f4175c291a4626e474c28d804383e7cdca7ff3ccc91ebf421eb9ee3b167744347a1ddf2bf163a4e34d29d923c5885fc1e10a1"

COPY install_dotnet.ps1 .
RUN powershell -Command .\install_dotnet.ps1 -Version $ENV:DOTNET_VERSION -Sha512 $ENV:DOTNET_SHA512 $ENV:DOTNET_DOWNLOAD_URL
Expand Down
2 changes: 1 addition & 1 deletion tracer/build_in_docker.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $BUILD_DIR="$ROOT_DIR/tracer/build/_build"
$IMAGE_NAME="dd-trace-dotnet/alpine-base"

&docker build `
--build-arg DOTNETSDK_VERSION=7.0.101 `
--build-arg DOTNETSDK_VERSION=7.0.306 `
--tag $IMAGE_NAME `
--file "$BUILD_DIR/docker/alpine.dockerfile" `
"$BUILD_DIR"
Expand Down
2 changes: 1 addition & 1 deletion tracer/build_in_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ BUILD_DIR="$ROOT_DIR/tracer/build/_build"
IMAGE_NAME="dd-trace-dotnet/debian-base"

docker build \
--build-arg DOTNETSDK_VERSION=7.0.101 \
--build-arg DOTNETSDK_VERSION=7.0.306 \
--tag $IMAGE_NAME \
--file "$BUILD_DIR/docker/centos7.dockerfile" \
"$BUILD_DIR"
Expand Down

0 comments on commit c4a6a43

Please sign in to comment.