Handle changes to MutableSettings and ExporterSettings without rebuilding
          
            #28583
        
      
  
    
      This file contains hidden or 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
    
  
  
    
  | 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.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" | |
| } |