Skip to content

[backport][build] Build tracer with ReadyToRun (5962 => v2)#6005

Merged
duncanista merged 6 commits into
release/2.xfrom
jordan.gonzalez/backport/ready-to-run/linux-deb
Sep 10, 2024
Merged

[backport][build] Build tracer with ReadyToRun (5962 => v2)#6005
duncanista merged 6 commits into
release/2.xfrom
jordan.gonzalez/backport/ready-to-run/linux-deb

Conversation

@duncanista

Copy link
Copy Markdown
Contributor

cherry-pick 5c5bec1b893b52c2364a2bf2b66c58a92e6d7d83
5962

Summary of changes

Allows tracer publishing to be compiled with
ReadyToRun
to improve Serverless workloads init duration.

Reason for change

It has showcased a 500ms init duration improvement for AWS Lambda.
Potentially could be used for other workloads in the future.

Implementation details

Followed #4573 and
ReadyToRun
docs.

Test coverage

  • TBD
  • Tested manually in AWS Lambda.

Other details

Increases tracer size by 3x.

@duncanista
duncanista requested a review from a team as a code owner September 6, 2024 17:09
Comment thread .azure-pipelines/ultimate-pipeline.yml Outdated
@duncanista duncanista added type:backport Feature backport to old version area:builds project files, build scripts, pipelines, versioning, releases, packages area:serverless labels Sep 6, 2024
@andrewlock

andrewlock commented Sep 6, 2024

Copy link
Copy Markdown
Member

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing the following branches/commits:

Execution-time benchmarks measure the whole time it takes to execute a program. And are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are shown in red. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.6.2) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6005) - mean (73ms)  : 64, 82
     .   : milestone, 73,
    master - mean (70ms)  : 67, 72
     .   : milestone, 70,

    section CallTarget+Inlining+NGEN
    This PR (6005) - mean (1,037ms)  : 1016, 1058
     .   : milestone, 1037,
    master - mean (1,087ms)  : 1054, 1119
     .   : milestone, 1087,

Loading
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6005) - mean (109ms)  : 105, 114
     .   : milestone, 109,
    master - mean (110ms)  : 104, 116
     .   : milestone, 110,

    section CallTarget+Inlining+NGEN
    This PR (6005) - mean (720ms)  : 697, 743
     .   : milestone, 720,
    master - mean (762ms)  : 745, 779
     .   : milestone, 762,

Loading
gantt
    title Execution time (ms) FakeDbCommand (.NET 6) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6005) - mean (92ms)  : 90, 94
     .   : milestone, 92,
    master - mean (93ms)  : 91, 95
     .   : milestone, 93,

    section CallTarget+Inlining+NGEN
    This PR (6005) - mean (675ms)  : 653, 697
     .   : milestone, 675,
    master - mean (714ms)  : 696, 732
     .   : milestone, 714,

Loading
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6005) - mean (191ms)  : 188, 195
     .   : milestone, 191,
    master - mean (190ms)  : 186, 193
     .   : milestone, 190,

    section CallTarget+Inlining+NGEN
    This PR (6005) - mean (1,117ms)  : 1095, 1138
     .   : milestone, 1117,
    master - mean (1,160ms)  : 1135, 1184
     .   : milestone, 1160,

Loading
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6005) - mean (275ms)  : 271, 280
     .   : milestone, 275,
    master - mean (276ms)  : 272, 280
     .   : milestone, 276,

    section CallTarget+Inlining+NGEN
    This PR (6005) - mean (885ms)  : 867, 903
     .   : milestone, 885,
    master - mean (920ms)  : 895, 946
     .   : milestone, 920,

Loading
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6005) - mean (265ms)  : 261, 269
     .   : milestone, 265,
    master - mean (265ms)  : 261, 270
     .   : milestone, 265,

    section CallTarget+Inlining+NGEN
    This PR (6005) - mean (869ms)  : 845, 894
     .   : milestone, 869,
    master - mean (905ms)  : 885, 926
     .   : milestone, 905,

Loading

@datadog-ddstaging

datadog-ddstaging Bot commented Sep 6, 2024

Copy link
Copy Markdown

Datadog Report

Branch report: jordan.gonzalez/backport/ready-to-run/linux-deb
Commit report: f7f2162
Test service: dd-trace-dotnet

✅ 0 Failed, 339829 Passed, 1769 Skipped, 14h 28m 11.15s Total Time
⌛ 16 Performance Regressions

⌛ Performance Regressions vs Default Branch (16)

This report shows up to 5 performance regressions.

  • Baseline_exception - scenarios 4.43s (+135.65ms, +3%) - Details
  • Profiler_liveheap_cpu_walltime - scenarios 4.77s (+426.95ms, +10%) - Details
  • Profiler_cpu_walltime_old_stackwalk - scenarios 3.23s (+888.28ms, +38%) - Details
  • Profiler_cpu_walltime - scenarios 3.22s (+877.08ms, +37%) - Details
  • Profiler_walltime - scenarios 3.23s (+886.22ms, +38%) - Details

@andrewlock

andrewlock commented Sep 6, 2024

Copy link
Copy Markdown
Member

Benchmarks Report for tracer 🐌

Benchmarks for #6005 compared to master:

  • 1 benchmarks are faster, with geometric mean 1.187
  • All benchmarks have the same allocations

The following thresholds were used for comparing the benchmark speeds:

  • Mann–Whitney U test with statistical test for significance of 5%
  • Only results indicating a difference greater than 10% and 0.3 ns are considered.

Allocation changes below 0.5% are ignored.

Benchmark details

Benchmarks.Trace.ActivityBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master StartStopWithChild net6.0 7.91μs 43.6ns 283ns 0.0116 0.00385 0 5.43 KB
master StartStopWithChild netcoreapp3.1 10.1μs 54.3ns 302ns 0.0197 0.00987 0 5.62 KB
master StartStopWithChild net472 16.1μs 54.9ns 213ns 1.02 0.31 0.0978 6.07 KB
#6005 StartStopWithChild net6.0 7.73μs 43.7ns 309ns 0.0191 0.00763 0 5.43 KB
#6005 StartStopWithChild netcoreapp3.1 9.87μs 53.4ns 307ns 0.0199 0.00997 0 5.62 KB
#6005 StartStopWithChild net472 16μs 47ns 182ns 1.04 0.322 0.0864 6.06 KB
Benchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master WriteAndFlushEnrichedTraces net6.0 459μs 373ns 1.39μs 0 0 0 2.7 KB
master WriteAndFlushEnrichedTraces netcoreapp3.1 628μs 364ns 1.41μs 0 0 0 2.7 KB
master WriteAndFlushEnrichedTraces net472 840μs 529ns 2.05μs 0.419 0 0 3.3 KB
#6005 WriteAndFlushEnrichedTraces net6.0 505μs 351ns 1.36μs 0 0 0 2.7 KB
#6005 WriteAndFlushEnrichedTraces netcoreapp3.1 651μs 277ns 997ns 0 0 0 2.7 KB
#6005 WriteAndFlushEnrichedTraces net472 836μs 481ns 1.86μs 0.417 0 0 3.3 KB
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master SendRequest net6.0 199μs 1.13μs 8.35μs 0.192 0 0 18.45 KB
master SendRequest netcoreapp3.1 219μs 1.25μs 9.97μs 0.209 0 0 20.61 KB
master SendRequest net472 0.00184ns 0.000772ns 0.00299ns 0 0 0 0 b
#6005 SendRequest net6.0 197μs 1.1μs 8.49μs 0.191 0 0 18.45 KB
#6005 SendRequest netcoreapp3.1 223μs 1.28μs 9.3μs 0.212 0 0 20.61 KB
#6005 SendRequest net472 0.00489ns 0.00136ns 0.00472ns 0 0 0 0 b
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master WriteAndFlushEnrichedTraces net6.0 582μs 3μs 14.1μs 0.566 0 0 41.87 KB
master WriteAndFlushEnrichedTraces netcoreapp3.1 664μs 3.22μs 14μs 0.324 0 0 41.69 KB
master WriteAndFlushEnrichedTraces net472 877μs 3.7μs 13.8μs 8.08 2.55 0.425 53.35 KB
#6005 WriteAndFlushEnrichedTraces net6.0 558μs 1.66μs 6.23μs 0.553 0 0 41.71 KB
#6005 WriteAndFlushEnrichedTraces netcoreapp3.1 743μs 3.88μs 23.6μs 0.347 0 0 41.66 KB
#6005 WriteAndFlushEnrichedTraces net472 876μs 3.59μs 13.9μs 8.25 2.6 0.434 53.28 KB
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master ExecuteNonQuery net6.0 1.24μs 1.24ns 4.65ns 0.0141 0 0 1.02 KB
master ExecuteNonQuery netcoreapp3.1 1.83μs 1.53ns 5.91ns 0.0135 0 0 1.02 KB
master ExecuteNonQuery net472 1.98μs 2.76ns 10.7ns 0.156 0 0 987 B
#6005 ExecuteNonQuery net6.0 1.25μs 1.18ns 4.59ns 0.0145 0 0 1.02 KB
#6005 ExecuteNonQuery netcoreapp3.1 1.69μs 1.69ns 6.54ns 0.0136 0 0 1.02 KB
#6005 ExecuteNonQuery net472 2.1μs 1.63ns 6.11ns 0.157 0 0 987 B
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master CallElasticsearch net6.0 1.19μs 0.532ns 2.06ns 0.0137 0 0 976 B
master CallElasticsearch netcoreapp3.1 1.48μs 0.536ns 2.08ns 0.0134 0 0 976 B
master CallElasticsearch net472 2.51μs 1.81ns 7.01ns 0.158 0 0 995 B
master CallElasticsearchAsync net6.0 1.23μs 0.484ns 1.81ns 0.0129 0 0 952 B
master CallElasticsearchAsync netcoreapp3.1 1.65μs 0.756ns 2.83ns 0.014 0 0 1.02 KB
master CallElasticsearchAsync net472 2.51μs 1.52ns 5.91ns 0.166 0 0 1.05 KB
#6005 CallElasticsearch net6.0 1.25μs 0.639ns 2.39ns 0.0138 0 0 976 B
#6005 CallElasticsearch netcoreapp3.1 1.49μs 0.682ns 2.36ns 0.0128 0 0 976 B
#6005 CallElasticsearch net472 2.46μs 1.2ns 4.48ns 0.157 0 0 995 B
#6005 CallElasticsearchAsync net6.0 1.25μs 1.1ns 4.13ns 0.0131 0 0 952 B
#6005 CallElasticsearchAsync netcoreapp3.1 1.65μs 1.71ns 6.41ns 0.0139 0 0 1.02 KB
#6005 CallElasticsearchAsync net472 2.69μs 1.15ns 4.44ns 0.166 0 0 1.05 KB
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master ExecuteAsync net6.0 1.24μs 0.663ns 2.48ns 0.013 0 0 952 B
master ExecuteAsync netcoreapp3.1 1.66μs 4.33ns 16.8ns 0.013 0 0 952 B
master ExecuteAsync net472 1.85μs 1.56ns 6.03ns 0.145 0 0 915 B
#6005 ExecuteAsync net6.0 1.29μs 1.07ns 4.13ns 0.0137 0 0 952 B
#6005 ExecuteAsync netcoreapp3.1 1.57μs 0.79ns 3.06ns 0.0127 0 0 952 B
#6005 ExecuteAsync net472 1.72μs 1.27ns 4.73ns 0.145 0 0 915 B
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master SendAsync net6.0 4.12μs 1.15ns 4.29ns 0.0309 0 0 2.22 KB
master SendAsync netcoreapp3.1 5.04μs 3.13ns 11.7ns 0.0354 0 0 2.76 KB
master SendAsync net472 7.79μs 2.61ns 9.76ns 0.496 0 0 3.15 KB
#6005 SendAsync net6.0 4.33μs 1.39ns 5.21ns 0.0301 0 0 2.22 KB
#6005 SendAsync netcoreapp3.1 5.16μs 2.02ns 7.56ns 0.0362 0 0 2.76 KB
#6005 SendAsync net472 7.73μs 2.11ns 8.17ns 0.498 0 0 3.15 KB
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master EnrichedLog net6.0 1.58μs 0.638ns 2.39ns 0.023 0 0 1.64 KB
master EnrichedLog netcoreapp3.1 2.2μs 0.663ns 2.48ns 0.0223 0 0 1.64 KB
master EnrichedLog net472 2.78μs 3.02ns 11.3ns 0.249 0 0 1.57 KB
#6005 EnrichedLog net6.0 1.57μs 0.927ns 3.47ns 0.0227 0 0 1.64 KB
#6005 EnrichedLog netcoreapp3.1 2.33μs 1.07ns 3.71ns 0.0222 0 0 1.64 KB
#6005 EnrichedLog net472 2.54μs 2.06ns 7.97ns 0.249 0 0 1.57 KB
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master EnrichedLog net6.0 116μs 207ns 800ns 0.0587 0 0 4.28 KB
master EnrichedLog netcoreapp3.1 119μs 130ns 468ns 0 0 0 4.28 KB
master EnrichedLog net472 150μs 435ns 1.63μs 0.666 0.222 0 4.46 KB
#6005 EnrichedLog net6.0 115μs 317ns 1.23μs 0.057 0 0 4.28 KB
#6005 EnrichedLog netcoreapp3.1 120μs 219ns 850ns 0.06 0 0 4.28 KB
#6005 EnrichedLog net472 149μs 248ns 961ns 0.667 0.222 0 4.46 KB
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master EnrichedLog net6.0 2.89μs 1.01ns 3.9ns 0.0303 0 0 2.2 KB
master EnrichedLog netcoreapp3.1 4.22μs 2.11ns 7.91ns 0.0294 0 0 2.2 KB
master EnrichedLog net472 4.85μs 1.49ns 5.77ns 0.32 0 0 2.02 KB
#6005 EnrichedLog net6.0 3.09μs 0.889ns 3.44ns 0.0309 0 0 2.2 KB
#6005 EnrichedLog netcoreapp3.1 4.09μs 1.82ns 7.03ns 0.0285 0 0 2.2 KB
#6005 EnrichedLog net472 4.85μs 1.51ns 5.86ns 0.318 0 0 2.02 KB
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master SendReceive net6.0 1.3μs 0.69ns 2.58ns 0.0162 0 0 1.14 KB
master SendReceive netcoreapp3.1 1.68μs 0.785ns 3.04ns 0.0151 0 0 1.14 KB
master SendReceive net472 2.23μs 1.53ns 5.91ns 0.184 0.00111 0 1.16 KB
#6005 SendReceive net6.0 1.31μs 0.448ns 1.68ns 0.0158 0 0 1.14 KB
#6005 SendReceive netcoreapp3.1 1.83μs 1.29ns 5.01ns 0.0155 0 0 1.14 KB
#6005 SendReceive net472 2.23μs 3.3ns 12.4ns 0.183 0.00109 0 1.16 KB
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master EnrichedLog net6.0 2.77μs 0.762ns 2.95ns 0.0222 0 0 1.6 KB
master EnrichedLog netcoreapp3.1 3.78μs 1ns 3.88ns 0.0208 0 0 1.65 KB
master EnrichedLog net472 4.34μs 2.25ns 8.43ns 0.322 0 0 2.04 KB
#6005 EnrichedLog net6.0 2.79μs 0.953ns 3.56ns 0.0223 0 0 1.6 KB
#6005 EnrichedLog netcoreapp3.1 3.88μs 2.46ns 9.52ns 0.0214 0 0 1.65 KB
#6005 EnrichedLog net472 4.41μs 1.13ns 4.07ns 0.324 0 0 2.04 KB
Benchmarks.Trace.SpanBenchmark - Faster 🎉 Same allocations ✔️

Faster 🎉 in #6005

Benchmark base/diff Base Median (ns) Diff Median (ns) Modality
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net6.0 1.187 483.04 407.03

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master StartFinishSpan net6.0 483ns 0.305ns 1.18ns 0.008 0 0 576 B
master StartFinishSpan netcoreapp3.1 570ns 0.541ns 2.02ns 0.00771 0 0 576 B
master StartFinishSpan net472 567ns 0.914ns 3.54ns 0.0916 0 0 578 B
master StartFinishScope net6.0 521ns 0.592ns 2.29ns 0.00968 0 0 696 B
master StartFinishScope netcoreapp3.1 688ns 0.537ns 2.08ns 0.00937 0 0 696 B
master StartFinishScope net472 863ns 0.867ns 3.36ns 0.105 0 0 658 B
#6005 StartFinishSpan net6.0 407ns 0.406ns 1.57ns 0.00801 0 0 576 B
#6005 StartFinishSpan netcoreapp3.1 596ns 0.982ns 3.67ns 0.00765 0 0 576 B
#6005 StartFinishSpan net472 619ns 0.664ns 2.57ns 0.0918 0 0 578 B
#6005 StartFinishScope net6.0 554ns 0.3ns 1.16ns 0.00969 0 0 696 B
#6005 StartFinishScope netcoreapp3.1 742ns 0.512ns 1.92ns 0.00917 0 0 696 B
#6005 StartFinishScope net472 855ns 1.42ns 5.12ns 0.105 0 0 658 B
Benchmarks.Trace.TraceAnnotationsBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master RunOnMethodBegin net6.0 599ns 0.311ns 1.2ns 0.00988 0 0 696 B
master RunOnMethodBegin netcoreapp3.1 872ns 0.785ns 3.04ns 0.00932 0 0 696 B
master RunOnMethodBegin net472 1.11μs 0.921ns 3.57ns 0.104 0 0 658 B
#6005 RunOnMethodBegin net6.0 609ns 0.378ns 1.46ns 0.0097 0 0 696 B
#6005 RunOnMethodBegin netcoreapp3.1 959ns 0.325ns 1.26ns 0.00918 0 0 696 B
#6005 RunOnMethodBegin net472 1.13μs 0.809ns 3.13ns 0.104 0 0 658 B

@andrewlock

andrewlock commented Sep 6, 2024

Copy link
Copy Markdown
Member

Throughput/Crank Report:zap:

Throughput results for AspNetCoreSimpleController comparing the following branches/commits:

Cases where throughput results for the PR are worse than latest master (5% drop or greater), results are shown in red.

Note that these results are based on a single point-in-time result for each branch. For full results, see one of the many, many dashboards!

gantt
    title Throughput Linux x64 (Total requests) 
    dateFormat  X
    axisFormat %s
    section Baseline
    This PR (6005) (10.933M)   : 0, 10933220
    master (11.264M)   : 0, 11263908
    benchmarks/2.9.0 (11.151M)   : 0, 11151473

    section Automatic
    This PR (6005) (7.412M)   : 0, 7411821
    master (7.396M)   : 0, 7395721
    benchmarks/2.9.0 (7.902M)   : 0, 7902288

    section Trace stats
    master (7.755M)   : 0, 7754697

    section Manual
    This PR (6005) (9.581M)   : crit ,0, 9580695
    master (10.894M)   : 0, 10894391

    section Manual + Automatic
    This PR (6005) (7.027M)   : 0, 7027467
    master (6.833M)   : 0, 6832568

Loading
gantt
    title Throughput Linux arm64 (Total requests) 
    dateFormat  X
    axisFormat %s
    section Baseline
    This PR (6005) (9.692M)   : 0, 9692000
    master (9.689M)   : 0, 9688722
    benchmarks/2.9.0 (9.808M)   : 0, 9808052

    section Automatic
    This PR (6005) (6.506M)   : 0, 6505861
    master (6.686M)   : 0, 6685743

    section Trace stats
    master (6.609M)   : 0, 6609162

    section Manual
    This PR (6005) (8.343M)   : crit ,0, 8343119
    master (9.754M)   : 0, 9753866

    section Manual + Automatic
    This PR (6005) (6.182M)   : 0, 6181925
    master (6.225M)   : 0, 6225281

Loading
gantt
    title Throughput Windows x64 (Total requests) 
    dateFormat  X
    axisFormat %s
    section Baseline
    This PR (6005) (10.242M)   : 0, 10242068
    master (10.194M)   : 0, 10193815
    benchmarks/2.9.0 (10.095M)   : 0, 10094883

    section Automatic
    This PR (6005) (6.789M)   : 0, 6789140
    master (6.868M)   : 0, 6867533
    benchmarks/2.9.0 (7.494M)   : 0, 7494302

    section Trace stats
    master (7.421M)   : 0, 7420558

    section Manual
    This PR (6005) (8.689M)   : crit ,0, 8689312
    master (10.247M)   : 0, 10246979

    section Manual + Automatic
    This PR (6005) (6.588M)   : 0, 6587699
    master (6.274M)   : 0, 6273947

Loading

@andrewlock andrewlock changed the title [backport][build] Build tracer with ReadyToRun [backport][build] Build tracer with ReadyToRun (5962 => v2) Sep 9, 2024

@andrewlock andrewlock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in general, just a few comments/questions about the release primarily 🙂

Comment thread .azure-pipelines/ultimate-pipeline.yml Outdated
Comment thread .azure-pipelines/ultimate-pipeline.yml Outdated
Comment thread .azure-pipelines/ultimate-pipeline.yml Outdated
Comment thread .gitlab-ci.yml
Comment on lines +180 to +182
- if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+(-prerelease)?$/' # Manually triggered as artifacts are from the Github release
when: manual
allow_failure: false

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely sure how to think about this 🤔 Should we be manually triggering this when we do a release? Because it doesn't actually do anything special for releases, right (in contrast to the SSI artifacts where we take a different path for releases).

If it's not doing anything different, should we just skip for the tag instead? I'm not entirely sure the best option 🤔

@duncanista duncanista Sep 9, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, the release is not really automated from the .NET repo side, but on a downstream on our side. To not cause any accidental releases for layers.

This manual trigger is more if someone wants to release a testing AWS Lambda layer for .NET, which is why I decided to have it manual. As it'd be triggering our downstream pipeline on every push for every branch
I just realized this is in the download-serverless-arfiact and not in aws-lambda-layer.

But we do need it for the tag, since we want to make sure we can get the artifacts directly from the specific tag, which then will be used from a manual trigger downstream.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But we do need it for the tag, since we want to make sure we can get the artifacts directly from the specific tag, which then will be used from a manual trigger downstream.

The thing is, what does "directly from the specific tag" mean 😅 It's "special" like this for the download-ssi-artifacts because we use the artifacts directly from the GitHub release. But we're not doing anything like that here. It's not using the tag for anything in your script, so it's not getting "the artifacts directly from the specific tag". It's always using the COMMIT_SHA I believe. Which is not a big problem I think, it just reiterates that the "tag" logic here is superfluous I think 😃

It's not a big deal, as it all depends on downstream processes tbh, but was just flagging it in general, because it may cause issues for you down the line 🙂

Comment thread .gitlab-ci.yml
Comment on lines +196 to +198
trigger:
project: DataDog/dd-trace-dotnet-aws-lambda-layer
strategy: depend

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be clear, this doesn't actually publish a new layer, right, it just creates it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This creates and publishes a new layer for Sandbox environments, for Production, more steps have to be done on our downstream pipeline, which won't be accidentally triggered from here!

@duncanista
duncanista merged commit da56242 into release/2.x Sep 10, 2024
@duncanista
duncanista deleted the jordan.gonzalez/backport/ready-to-run/linux-deb branch September 10, 2024 03:39
@github-actions github-actions Bot added this to the vNext-v2 milestone Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:builds project files, build scripts, pipelines, versioning, releases, packages area:serverless type:backport Feature backport to old version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants