Skip to content

Commit 1bbafaa

Browse files
authored
[repo] Build script organization (#5619)
1 parent 2d2fcf9 commit 1bbafaa

7 files changed

+9
-8
lines changed

.github/workflows/concurrency-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- name: Run Coyote Tests
2626
shell: pwsh
27-
run: .\build\test-threadSafety.ps1 -testProjectName ${{ matrix.project }} -targetFramework ${{ matrix.version }}
27+
run: .\build\scripts\test-threadSafety.ps1 -testProjectName ${{ matrix.project }} -targetFramework ${{ matrix.version }}
2828

2929
- name: Publish Artifacts
3030
if: always() && !cancelled()

.github/workflows/sanitycheck.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
uses: actions/checkout@v4
3030

3131
- name: detect non-ASCII encoding and trailing space
32-
run: python3 ./build/sanitycheck.py
32+
run: python3 ./build/scripts/sanitycheck.py

.github/workflows/verifyaotcompat.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323

2424
- name: publish AOT testApp, assert static analysis warning count, and run the app
2525
shell: pwsh
26-
run: .\build\test-aot-compatibility.ps1 ${{ matrix.version }}
26+
run: .\build\scripts\test-aot-compatibility.ps1 ${{ matrix.version }}

OpenTelemetry.sln

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{7CB2F02E
4040
build\OpenTelemetry.prod.ruleset = build\OpenTelemetry.prod.ruleset
4141
build\OpenTelemetry.test.ruleset = build\OpenTelemetry.test.ruleset
4242
build\RELEASING.md = build\RELEASING.md
43-
build\sanitycheck.py = build\sanitycheck.py
4443
build\stylecop.json = build\stylecop.json
45-
build\test-aot-compatibility.ps1 = build\test-aot-compatibility.ps1
46-
build\test-threadSafety.ps1 = build\test-threadSafety.ps1
4744
build\UnstableCoreLibraries.proj = build\UnstableCoreLibraries.proj
4845
build\xunit.runner.json = build\xunit.runner.json
4946
EndProjectSection
@@ -340,6 +337,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "scripts", "scripts", "{4498
340337
build\scripts\finalize-publicapi.ps1 = build\scripts\finalize-publicapi.ps1
341338
build\scripts\post-release.psm1 = build\scripts\post-release.psm1
342339
build\scripts\prepare-release.psm1 = build\scripts\prepare-release.psm1
340+
build\scripts\sanitycheck.py = build\scripts\sanitycheck.py
341+
build\scripts\test-aot-compatibility.ps1 = build\scripts\test-aot-compatibility.ps1
342+
build\scripts\test-threadSafety.ps1 = build\scripts\test-threadSafety.ps1
343343
build\scripts\update-changelogs.ps1 = build\scripts\update-changelogs.ps1
344344
EndProjectSection
345345
EndProject
File renamed without changes.

build/test-aot-compatibility.ps1 build/scripts/test-aot-compatibility.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
param([string]$targetNetFramework)
22

3-
$rootDirectory = Split-Path $PSScriptRoot -Parent
3+
$rootDirectory = Get-Location
4+
45
$publishOutput = dotnet publish $rootDirectory/test/OpenTelemetry.AotCompatibility.TestApp/OpenTelemetry.AotCompatibility.TestApp.csproj --framework $targetNetFramework -nodeReuse:false /p:UseSharedCompilation=false /p:ExposeExperimentalFeatures=true
56

67
$actualWarningCount = 0

build/test-threadSafety.ps1 build/scripts/test-threadSafety.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ param(
88

99
$env:OTEL_RUN_COYOTE_TESTS = 'true'
1010

11-
$rootDirectory = Split-Path $PSScriptRoot -Parent
11+
$rootDirectory = Get-Location
1212

1313
Write-Host "Install Coyote CLI."
1414
dotnet tool install --global Microsoft.Coyote.CLI

0 commit comments

Comments
 (0)