Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure we upload hotfix artifacts to Azure #6667

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

andrewlock
Copy link
Member

Summary of changes

Make sure we upload the hotfix artifacts to azure

Reason for change

The Serverless release process relies on the artifacts from the build being uploaded to Azure. Currently, we only upload the artifacts on master builds. This ensures we upload it on all release branches i.e. hotfix/* (or release/*) branches

Implementation details

isMainBranch -> isMainOrReleaseBranch

Test coverage

YOLO

Other details

Discovered during the release of 3.10.1

@andrewlock andrewlock added the area:builds project files, build scripts, pipelines, versioning, releases, packages label Feb 13, 2025
@andrewlock andrewlock requested a review from a team as a code owner February 13, 2025 16:18
@andrewlock
Copy link
Member Author

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 (6667) - mean (69ms)  : 65, 73
     .   : milestone, 69,
    master - mean (69ms)  : 66, 72
     .   : milestone, 69,

    section CallTarget+Inlining+NGEN
    This PR (6667) - mean (994ms)  : 974, 1014
     .   : milestone, 994,
    master - mean (992ms)  : 960, 1024
     .   : milestone, 992,

Loading
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6667) - mean (102ms)  : 100, 104
     .   : milestone, 102,
    master - mean (102ms)  : 100, 104
     .   : milestone, 102,

    section CallTarget+Inlining+NGEN
    This PR (6667) - mean (673ms)  : 654, 693
     .   : milestone, 673,
    master - mean (674ms)  : 659, 690
     .   : milestone, 674,

Loading
gantt
    title Execution time (ms) FakeDbCommand (.NET 6) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6667) - mean (89ms)  : 87, 91
     .   : milestone, 89,
    master - mean (89ms)  : 87, 91
     .   : milestone, 89,

    section CallTarget+Inlining+NGEN
    This PR (6667) - mean (631ms)  : 609, 653
     .   : milestone, 631,
    master - mean (630ms)  : 615, 645
     .   : milestone, 630,

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

    section CallTarget+Inlining+NGEN
    This PR (6667) - mean (1,105ms)  : 1075, 1136
     .   : milestone, 1105,
    master - mean (1,105ms)  : 1077, 1133
     .   : milestone, 1105,

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

    section CallTarget+Inlining+NGEN
    This PR (6667) - mean (866ms)  : 837, 895
     .   : milestone, 866,
    master - mean (868ms)  : 834, 903
     .   : milestone, 868,

Loading
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6667) - mean (262ms)  : 258, 266
     .   : milestone, 262,
    master - mean (262ms)  : 258, 266
     .   : milestone, 262,

    section CallTarget+Inlining+NGEN
    This PR (6667) - mean (850ms)  : 812, 887
     .   : milestone, 850,
    master - mean (849ms)  : 811, 886
     .   : milestone, 849,

Loading

@andrewlock
Copy link
Member Author

Benchmarks Report for tracer 🐌

Benchmarks for #6667 compared to master:

  • 1 benchmarks are faster, with geometric mean 1.153
  • 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.86μs 43.2ns 256ns 0.0155 0.00777 0 5.61 KB
master StartStopWithChild netcoreapp3.1 10.3μs 52.9ns 339ns 0.0256 0.0102 0 5.8 KB
master StartStopWithChild net472 16.3μs 51ns 197ns 1.03 0.295 0.0878 6.21 KB
#6667 StartStopWithChild net6.0 7.88μs 45.1ns 322ns 0.0158 0.00788 0 5.61 KB
#6667 StartStopWithChild netcoreapp3.1 10.2μs 57.1ns 379ns 0.0206 0.0103 0 5.8 KB
#6667 StartStopWithChild net472 15.9μs 50.4ns 195ns 1.03 0.295 0.0878 6.21 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 466μs 340ns 1.32μs 0 0 0 2.7 KB
master WriteAndFlushEnrichedTraces netcoreapp3.1 666μs 666ns 2.58μs 0 0 0 2.7 KB
master WriteAndFlushEnrichedTraces net472 851μs 504ns 1.95μs 0.428 0 0 3.3 KB
#6667 WriteAndFlushEnrichedTraces net6.0 475μs 420ns 1.57μs 0 0 0 2.7 KB
#6667 WriteAndFlushEnrichedTraces netcoreapp3.1 644μs 422ns 1.52μs 0 0 0 2.7 KB
#6667 WriteAndFlushEnrichedTraces net472 851μs 601ns 2.25μs 0.425 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 135μs 198ns 766ns 0.172 0 0 14.47 KB
master SendRequest netcoreapp3.1 151μs 169ns 655ns 0.226 0 0 17.27 KB
master SendRequest net472 2.88E‑05ns 2.88E‑05ns 0.000108ns 0 0 0 0 b
#6667 SendRequest net6.0 135μs 320ns 1.24μs 0.2 0 0 14.47 KB
#6667 SendRequest netcoreapp3.1 152μs 195ns 754ns 0.226 0 0 17.27 KB
#6667 SendRequest net472 0.000334ns 0.000175ns 0.000655ns 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 581μs 3.37μs 27.6μs 0.556 0 0 41.55 KB
master WriteAndFlushEnrichedTraces netcoreapp3.1 679μs 3.72μs 21μs 0.317 0 0 41.78 KB
master WriteAndFlushEnrichedTraces net472 845μs 2.21μs 7.97μs 8.3 2.62 0.437 53.3 KB
#6667 WriteAndFlushEnrichedTraces net6.0 575μs 3.24μs 25.1μs 0.571 0 0 41.68 KB
#6667 WriteAndFlushEnrichedTraces netcoreapp3.1 704μs 4.1μs 38.2μs 0.347 0 0 41.77 KB
#6667 WriteAndFlushEnrichedTraces net472 838μs 4.26μs 19.1μs 8.87 2.53 0.422 53.32 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.29μs 1.77ns 6.86ns 0.0146 0 0 1.02 KB
master ExecuteNonQuery netcoreapp3.1 1.84μs 1.16ns 4.48ns 0.0137 0 0 1.02 KB
master ExecuteNonQuery net472 2.1μs 2.37ns 8.86ns 0.156 0.00105 0 987 B
#6667 ExecuteNonQuery net6.0 1.35μs 1.95ns 7.57ns 0.0143 0 0 1.02 KB
#6667 ExecuteNonQuery netcoreapp3.1 1.83μs 1.14ns 4.1ns 0.0138 0 0 1.02 KB
#6667 ExecuteNonQuery net472 2.08μs 1.76ns 6.81ns 0.157 0.00104 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.23μs 0.53ns 1.98ns 0.0136 0 0 976 B
master CallElasticsearch netcoreapp3.1 1.59μs 0.624ns 2.33ns 0.0134 0 0 976 B
master CallElasticsearch net472 2.4μs 1.69ns 6.53ns 0.158 0 0 995 B
master CallElasticsearchAsync net6.0 1.35μs 1.61ns 6.25ns 0.0135 0 0 952 B
master CallElasticsearchAsync netcoreapp3.1 1.65μs 0.9ns 3.49ns 0.0133 0 0 1.02 KB
master CallElasticsearchAsync net472 2.55μs 1.78ns 6.41ns 0.167 0 0 1.05 KB
#6667 CallElasticsearch net6.0 1.25μs 0.804ns 2.9ns 0.0138 0 0 976 B
#6667 CallElasticsearch netcoreapp3.1 1.67μs 1.01ns 3.91ns 0.0133 0 0 976 B
#6667 CallElasticsearch net472 2.54μs 1.57ns 6.08ns 0.157 0 0 995 B
#6667 CallElasticsearchAsync net6.0 1.35μs 1.93ns 7.47ns 0.0129 0 0 952 B
#6667 CallElasticsearchAsync netcoreapp3.1 1.69μs 0.76ns 2.94ns 0.0135 0 0 1.02 KB
#6667 CallElasticsearchAsync net472 2.51μs 1.28ns 4.95ns 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.28μs 0.417ns 1.62ns 0.0135 0 0 952 B
master ExecuteAsync netcoreapp3.1 1.58μs 1.1ns 4.1ns 0.0126 0 0 952 B
master ExecuteAsync net472 1.88μs 0.381ns 1.48ns 0.145 0 0 915 B
#6667 ExecuteAsync net6.0 1.29μs 1.79ns 6.69ns 0.013 0 0 952 B
#6667 ExecuteAsync netcoreapp3.1 1.61μs 0.63ns 2.36ns 0.0122 0 0 952 B
#6667 ExecuteAsync net472 1.91μs 0.665ns 2.57ns 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.43μs 1.71ns 6.64ns 0.0332 0 0 2.31 KB
master SendAsync netcoreapp3.1 5.22μs 2.51ns 9.4ns 0.0367 0 0 2.85 KB
master SendAsync net472 7.53μs 3ns 11.6ns 0.494 0 0 3.12 KB
#6667 SendAsync net6.0 4.33μs 1.89ns 7.33ns 0.0324 0 0 2.31 KB
#6667 SendAsync netcoreapp3.1 5.26μs 2.02ns 7.83ns 0.0395 0 0 2.85 KB
#6667 SendAsync net472 7.48μs 1.47ns 5.71ns 0.493 0 0 3.12 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.51μs 1.83ns 7.09ns 0.0233 0 0 1.64 KB
master EnrichedLog netcoreapp3.1 2.34μs 9.08ns 35.2ns 0.0219 0 0 1.64 KB
master EnrichedLog net472 2.54μs 1.91ns 7.39ns 0.249 0 0 1.57 KB
#6667 EnrichedLog net6.0 1.48μs 1.51ns 5.67ns 0.0234 0 0 1.64 KB
#6667 EnrichedLog netcoreapp3.1 2.25μs 1.1ns 3.97ns 0.0211 0 0 1.64 KB
#6667 EnrichedLog net472 2.68μs 2.02ns 7.55ns 0.248 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 115μs 581ns 2.53μs 0.0567 0 0 4.28 KB
master EnrichedLog netcoreapp3.1 116μs 109ns 408ns 0.0574 0 0 4.28 KB
master EnrichedLog net472 149μs 134ns 519ns 0.67 0.223 0 4.46 KB
#6667 EnrichedLog net6.0 114μs 98.7ns 369ns 0.0574 0 0 4.28 KB
#6667 EnrichedLog netcoreapp3.1 116μs 153ns 592ns 0.0576 0 0 4.28 KB
#6667 EnrichedLog net472 150μs 156ns 605ns 0.672 0.224 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 3.15μs 0.59ns 2.21ns 0.0313 0 0 2.2 KB
master EnrichedLog netcoreapp3.1 4.04μs 1.27ns 4.9ns 0.0282 0 0 2.2 KB
master EnrichedLog net472 4.79μs 1.59ns 6.16ns 0.319 0 0 2.02 KB
#6667 EnrichedLog net6.0 3.17μs 2.03ns 7.58ns 0.0302 0 0 2.2 KB
#6667 EnrichedLog netcoreapp3.1 4.29μs 1.44ns 5.59ns 0.028 0 0 2.2 KB
#6667 EnrichedLog net472 4.91μs 1.21ns 4.67ns 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.35μs 0.549ns 2.13ns 0.0161 0 0 1.14 KB
master SendReceive netcoreapp3.1 1.79μs 1.78ns 6.65ns 0.015 0 0 1.14 KB
master SendReceive net472 2.05μs 0.928ns 3.47ns 0.183 0 0 1.16 KB
#6667 SendReceive net6.0 1.3μs 1.25ns 4.85ns 0.0156 0 0 1.14 KB
#6667 SendReceive netcoreapp3.1 1.78μs 0.696ns 2.6ns 0.015 0 0 1.14 KB
#6667 SendReceive net472 2.02μs 0.437ns 1.63ns 0.183 0 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.85μs 1.02ns 3.83ns 0.0224 0 0 1.6 KB
master EnrichedLog netcoreapp3.1 3.95μs 6.95ns 26.9ns 0.0215 0 0 1.65 KB
master EnrichedLog net472 4.26μs 3.29ns 12.7ns 0.324 0 0 2.04 KB
#6667 EnrichedLog net6.0 2.92μs 2ns 7.76ns 0.0219 0 0 1.6 KB
#6667 EnrichedLog netcoreapp3.1 3.87μs 1.82ns 7.03ns 0.0213 0 0 1.65 KB
#6667 EnrichedLog net472 4.17μs 2.21ns 7.96ns 0.322 0 0 2.04 KB
Benchmarks.Trace.SpanBenchmark - Faster 🎉 Same allocations ✔️

Faster 🎉 in #6667

Benchmark base/diff Base Median (ns) Diff Median (ns) Modality
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net472 1.153 665.48 577.13

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master StartFinishSpan net6.0 403ns 0.44ns 1.71ns 0.00802 0 0 576 B
master StartFinishSpan netcoreapp3.1 600ns 0.81ns 3.14ns 0.00776 0 0 576 B
master StartFinishSpan net472 665ns 1.36ns 5.26ns 0.0917 0 0 578 B
master StartFinishScope net6.0 531ns 0.752ns 2.91ns 0.0098 0 0 696 B
master StartFinishScope netcoreapp3.1 771ns 1.3ns 5.05ns 0.00955 0 0 696 B
master StartFinishScope net472 857ns 2.43ns 9.41ns 0.104 0 0 658 B
#6667 StartFinishSpan net6.0 447ns 0.437ns 1.69ns 0.00801 0 0 576 B
#6667 StartFinishSpan netcoreapp3.1 630ns 0.818ns 3.17ns 0.0076 0 0 576 B
#6667 StartFinishSpan net472 577ns 0.831ns 3.22ns 0.0916 0 0 578 B
#6667 StartFinishScope net6.0 476ns 0.497ns 1.86ns 0.0097 0 0 696 B
#6667 StartFinishScope netcoreapp3.1 719ns 0.93ns 3.48ns 0.00929 0 0 696 B
#6667 StartFinishScope net472 861ns 4.59ns 23.9ns 0.104 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 686ns 0.566ns 2.19ns 0.00983 0 0 696 B
master RunOnMethodBegin netcoreapp3.1 1.06μs 1.21ns 4.67ns 0.00952 0 0 696 B
master RunOnMethodBegin net472 1.15μs 0.573ns 2.14ns 0.104 0 0 658 B
#6667 RunOnMethodBegin net6.0 634ns 0.955ns 3.7ns 0.00993 0 0 696 B
#6667 RunOnMethodBegin netcoreapp3.1 966ns 1.74ns 6.74ns 0.00931 0 0 696 B
#6667 RunOnMethodBegin net472 1.05μs 1.96ns 7.58ns 0.104 0 0 658 B

@@ -4573,7 +4573,7 @@ stages:
ne(variables['push_artifacts_to_azure_storage'], 'false'),
or(
eq(variables['push_artifacts_to_azure_storage'], 'true'),
eq(variables.isMainBranch, true)
eq(variables.isMainOrReleaseBranch, true)
Copy link
Member

Choose a reason for hiding this comment

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

isMainOrReleaseBranch includes hotfix/*?

isMainOrReleaseOrHotfixBranch 😅

Copy link
Member Author

Choose a reason for hiding this comment

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

Haha, yeah, or even just isReleasableBranch or something 😅

@andrewlock andrewlock merged commit 069a619 into master Feb 14, 2025
140 of 142 checks passed
@andrewlock andrewlock deleted the andrew/ci/run-upload-to-azure-on-hotfix branch February 14, 2025 11:36
@github-actions github-actions bot added this to the vNext-v3 milestone Feb 14, 2025
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants