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

Fix AWS SQS test snapshots #4913

Merged
merged 2 commits into from
Nov 23, 2023
Merged

Fix AWS SQS test snapshots #4913

merged 2 commits into from
Nov 23, 2023

Conversation

andrewlock
Copy link
Member

Summary of changes

AWS SWS 3.7.300.x changed the way requests are made to the backend, which requires updating some snapshots

Reason for change

The AWS integration tests fail on the latest packages without these changes

Implementation details

  • Copied the existing snapshots
  • Added a .pre-3_7_300 to the old snapshots
  • In the new snapshots, find and replace
    • http.url: http://localhost:00000/000000000000/MyAsyncSQSQueue -> http.url: http://localhost:00000
    • http.url: http://localhost:00000/000000000000/MyAsyncSQSQueue2 -> http.url: http://localhost:00000
    • http.url: http://localhost:00000/000000000000/MySyncSQSQueue -> http.url: http://localhost:00000
    • http.url: http://localhost:00000/000000000000/MySyncSQSQueue2 -> http.url: http://localhost:00000
    • Also updated the http.request spans where required

Test coverage

Should be covered by existing

Other details

I did this in here initially, but I just know the bot is going to overwrite my changes soon 🙄

@andrewlock andrewlock added area:builds project files, build scripts, pipelines, versioning, releases, packages area:tests unit tests, integration tests labels Nov 22, 2023
@andrewlock andrewlock requested review from a team as code owners November 22, 2023 14:44
@andrewlock andrewlock requested a review from a team November 22, 2023 14:44
Copy link
Contributor

Snapshots difference summary

The following differences have been observed in committed snapshots. It is meant to help the reviewer.
The diff is simplistic, so please check some files anyway while we improve it.

4 occurrences of :

-    Resource: POST localhost:00000/?/MyAsyncSQSQueue,
+    Resource: POST localhost:00000/,

64 occurrences of :

-      http.url: http://localhost:00000/000000000000/MyAsyncSQSQueue,
+      http.url: http://localhost:00000/,

4 occurrences of :

-    Resource: POST localhost:00000/?/MyAsyncSQSQueue2,
+    Resource: POST localhost:00000/,

48 occurrences of :

-      http.url: http://localhost:00000/000000000000/MyAsyncSQSQueue2,
+      http.url: http://localhost:00000/,

2 occurrences of :

-    Resource: POST localhost:00000/?/MySyncSQSQueue,
+    Resource: POST localhost:00000/,

32 occurrences of :

-      http.url: http://localhost:00000/000000000000/MySyncSQSQueue,
+      http.url: http://localhost:00000/,

2 occurrences of :

-    Resource: POST localhost:00000/?/MySyncSQSQueue2,
+    Resource: POST localhost:00000/,

24 occurrences of :

-      http.url: http://localhost:00000/000000000000/MySyncSQSQueue2,
+      http.url: http://localhost:00000/,

@datadog-ddstaging
Copy link

datadog-ddstaging bot commented Nov 22, 2023

Datadog Report

Branch report: andrew/bump-aws
Commit report: a28142f

dd-trace-dotnet: 0 Failed, 0 New Flaky, 301261 Passed, 939 Skipped, 25m 42.67s Wall Time

@andrewlock
Copy link
Member Author

andrewlock commented Nov 22, 2023

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 (4913) - mean (71ms)  : 64, 78
     .   : milestone, 71,
    master - mean (70ms)  : 62, 78
     .   : milestone, 70,

    section CallTarget+Inlining+NGEN
    This PR (4913) - mean (990ms)  : 966, 1014
     .   : milestone, 990,
    master - mean (998ms)  : 982, 1013
     .   : milestone, 998,

Loading
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (4913) - mean (106ms)  : 103, 109
     .   : milestone, 106,
    master - mean (106ms)  : 103, 109
     .   : milestone, 106,

    section CallTarget+Inlining+NGEN
    This PR (4913) - mean (686ms)  : 670, 702
     .   : milestone, 686,
    master - mean (686ms)  : 667, 705
     .   : milestone, 686,

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

    section CallTarget+Inlining+NGEN
    This PR (4913) - mean (661ms)  : 636, 686
     .   : milestone, 661,
    master - mean (661ms)  : 634, 687
     .   : milestone, 661,

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

    section CallTarget+Inlining+NGEN
    This PR (4913) - mean (1,133ms)  : 1110, 1157
     .   : milestone, 1133,
    master - mean (1,136ms)  : 1115, 1157
     .   : milestone, 1136,

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

    section CallTarget+Inlining+NGEN
    This PR (4913) - mean (1,087ms)  : 1063, 1110
     .   : milestone, 1087,
    master - mean (1,092ms)  : 1066, 1118
     .   : milestone, 1092,

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

    section CallTarget+Inlining+NGEN
    This PR (4913) - mean (1,056ms)  : 1030, 1082
     .   : milestone, 1056,
    master - mean (1,059ms)  : 1036, 1081
     .   : milestone, 1059,

Loading

Copy link
Collaborator

@pierotibou pierotibou left a comment

Choose a reason for hiding this comment

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

Just one question

=> packageVersion switch
{
null or "" => ".pre3_7_300",
{ } v when new Version(v) < new Version("3.7.300.6") => ".pre3_7_300",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't it be 3.7.300.0? You said: AWS SWS 3.7.300.x changed the way requests are made to the backend in the PR desc

Suggested change
{ } v when new Version(v) < new Version("3.7.300.6") => ".pre3_7_300",
{ } v when new Version(v) < new Version("3.7.300.0") => ".pre3_7_300",

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah... I know... it's weird right... but it looks like we're already testing 3.7.300.3 already , which is apparently passing. And after this update we'll never test 3.7.300.0-3.7.300.5 so meh 😄 🤷‍♂️

@andrewlock andrewlock merged commit b96ed5f into master Nov 23, 2023
51 of 54 checks passed
@andrewlock andrewlock deleted the andrew/bump-aws branch November 23, 2023 14:32
@github-actions github-actions bot added this to the vNext milestone Nov 23, 2023
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:tests unit tests, integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants