Skip to content

Fix EH clause sort to handle try-in-handler nesting #32452

Fix EH clause sort to handle try-in-handler nesting

Fix EH clause sort to handle try-in-handler nesting #32452

name: Verify source generator changes have been persisted
on:
pull_request:
workflow_dispatch:
jobs:
verify_source_generators:
runs-on: windows-latest
timeout-minutes: 34 # max + 3*std over the last 3700 runs
permissions:
contents: read
steps:
- name: Support longpaths
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0
with:
global-json-file: global.json
- name: "Regenerating package versions"
run: .\tracer\build.ps1 Restore CompileManagedSrc
- name: "Verify no changes in generated files"
run: |
git diff --quiet -- .\tracer\src\Datadog.Trace\Generated .\tracer\src\Datadog.Tracer.Native\Generated .\tracer\build\supported_calltargets.g.json
if ($LASTEXITCODE -eq 1) {
git diff -- .\tracer\src\Datadog.Trace\Generated .\tracer\src\Datadog.Tracer.Native\Generated .\tracer\build\supported_calltargets.g.json
Write-Error "Found changes in Generated folder. Build the solution locally using Nuke and ensure you have committed all source generated files."
Exit 1
} else {
echo "No changes found to generated files"
}