Skip to content

build: Update insta to 1.19.0 #1434

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

Merged
merged 1 commit into from
Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion relay-filter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ serde = { version = "1.0.114", features = ["derive"] }
url = "2.1.1"

[dev-dependencies]
insta = "1.1.0"
insta = "1.19.0"
serde_json = "1.0.55"
2 changes: 1 addition & 1 deletion relay-general/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ uuid = { version = "0.8.1", features = ["v4", "serde"] }
[dev-dependencies]
criterion = "0.3"
difference = "2.0.0"
insta = { version = "1.1.0", features = ["ron", "redactions"] }
insta = { version = "1.19.0", features = ["json", "redactions", "ron", "yaml"] }
pretty-hex = "0.2.0"
valico = "3.2.0"

Expand Down
74 changes: 38 additions & 36 deletions relay-general/src/store/normalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1723,8 +1723,8 @@ fn test_future_timestamp() {
"type": "default",
"logger": "",
"platform": "other",
"timestamp": 946857600,
"received": 946857600,
"timestamp": 946857600.0,
"received": 946857600.0,
"_meta": {
"timestamp": {
"": Meta(Some(MetaInner(
Expand Down Expand Up @@ -1787,8 +1787,8 @@ fn test_past_timestamp() {
"type": "default",
"logger": "",
"platform": "other",
"timestamp": 952041600,
"received": 952041600,
"timestamp": 952041600.0,
"received": 952041600.0,
"_meta": {
"timestamp": {
"": Meta(Some(MetaInner(
Expand Down Expand Up @@ -1859,38 +1859,40 @@ fn test_computed_measurements() {

normalize_measurements(&mut event);

assert_ron_snapshot!(SerializableAnnotated(&Annotated::new(event)), {}, @r###"{
"type": "transaction",
"timestamp": 1619420405,
"start_timestamp": 1619420400,
"measurements": {
"frames_frozen": {
"value": 2,
},
"frames_frozen_rate": {
"value": 0.5,
"unit": "ratio",
},
"frames_slow": {
"value": 1,
},
"frames_slow_rate": {
"value": 0.25,
"unit": "ratio",
},
"frames_total": {
"value": 4,
},
"stall_percentage": {
"value": 0.8,
"unit": "ratio",
},
"stall_total_time": {
"value": 4000,
"unit": "millisecond",
},
},
}"###);
assert_ron_snapshot!(SerializableAnnotated(&Annotated::new(event)), {}, @r###"
{
"type": "transaction",
"timestamp": 1619420405.0,
"start_timestamp": 1619420400.0,
"measurements": {
"frames_frozen": {
"value": 2.0,
},
"frames_frozen_rate": {
"value": 0.5,
"unit": "ratio",
},
"frames_slow": {
"value": 1.0,
},
"frames_slow_rate": {
"value": 0.25,
"unit": "ratio",
},
"frames_total": {
"value": 4.0,
},
"stall_percentage": {
"value": 0.8,
"unit": "ratio",
},
"stall_total_time": {
"value": 4000.0,
"unit": "millisecond",
},
},
}
"###);
}

#[test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ contexts:
model: Android SDK built for x86
model_id: NYC
arch: x86
battery_level: 100.0
battery_level: 100
orientation: portrait
manufacturer: Google
brand: google
Expand Down Expand Up @@ -519,3 +519,4 @@ _meta:
rem:
- - "@anything:remove"
- x

Original file line number Diff line number Diff line change
Expand Up @@ -46,38 +46,38 @@ contexts:
type: os
breadcrumbs:
values:
- timestamp: 1532442982.0
- timestamp: 1532442982
type: debug
category: started
level: info
message: Breadcrumb Tracking
- timestamp: 1532442982.0
- timestamp: 1532442982
type: navigation
category: UIViewController
level: info
message: viewDidAppear
data:
controller: sentry_ios_cocoapods.ViewController
- timestamp: 1532442986.0
- timestamp: 1532442986
type: debug
category: started
level: info
message: Breadcrumb Tracking
- timestamp: 1532442986.0
- timestamp: 1532442986
type: navigation
category: UIViewController
level: info
message: viewDidAppear
data:
controller: sentry_ios_cocoapods.ViewController
- timestamp: 1532442987.0
- timestamp: 1532442987
type: user
category: touch
level: info
message: "causeCrash:"
data:
view: "<UIButton: 0x7f8c0fb0a320; frame = (186.667 415.667; 41 30); opaque = NO; autoresize = RM+BM; layer = <CALayer: 0x60800002e6c0>>"
- timestamp: 1532442988.0
- timestamp: 1532442988
type: debug
category: started
level: info
Expand Down Expand Up @@ -1718,3 +1718,4 @@ _meta:
- 0
- 40
len: 15

Original file line number Diff line number Diff line change
Expand Up @@ -254,57 +254,57 @@ contexts:
type: runtime
breadcrumbs:
values:
- timestamp: 1532343407.0
- timestamp: 1532343407
type: default
category: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager
level: info
message: "User profile is available. Using 'C:\\Users\\[user]\\AppData\\Local\\ASP.NET\\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest."
- timestamp: 1532343443.0
- timestamp: 1532343443
type: default
category: Microsoft.AspNetCore.Hosting.Internal.WebHost
level: info
message: "Request starting HTTP/1.1 POST http://localhost:62919/Home/[user]/json; charset=UTF-8 65"
data:
eventId: "1"
- timestamp: 1532343443.0
- timestamp: 1532343443
type: default
category: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
level: info
message: Executing action method Sentry.Samples.AspNetCore.Mvc.Controllers.HomeController.PostIndex (Sentry.Samples.AspNetCore.Mvc) with arguments () - ModelState is Valid
data:
eventId: "1"
- timestamp: 1532343443.0
- timestamp: 1532343443
type: default
category: Sentry.Samples.AspNetCore.Mvc.Controllers.HomeController
level: warning
message: Param is null!
- timestamp: 1532343443.0
- timestamp: 1532343443
type: default
category: Sentry.Samples.AspNetCore.Mvc.GameService
level: info
message: Fetching dungeons and mana level in parallel.
- timestamp: 1532343443.0
- timestamp: 1532343443
type: default
category: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
level: info
message: Executed action Sentry.Samples.AspNetCore.Mvc.Controllers.HomeController.PostIndex (Sentry.Samples.AspNetCore.Mvc) in 43.7868ms
data:
eventId: "2"
- timestamp: 1532343443.0
- timestamp: 1532343443
type: default
category: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
level: info
message: Executing action method Sentry.Samples.AspNetCore.Mvc.Controllers.HomeController.Error (Sentry.Samples.AspNetCore.Mvc) with arguments ((null)) - ModelState is Valid
data:
eventId: "1"
- timestamp: 1532343443.0
- timestamp: 1532343443
type: default
category: Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
level: info
message: "Executing ViewResult, running view at path /Views/Shared/Error.cshtml."
data:
eventId: "1"
- timestamp: 1532343443.0
- timestamp: 1532343443
type: default
category: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
level: info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ contexts:
device:
name: MacFox
model: "MacBookPro16,1"
battery_level: 87.0
battery_level: 87
simulator: true
memory_size: ~
boot_time: ~
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ contexts:
device:
name: MacFox
model: "MacBookPro16,1"
battery_level: 87.0
battery_level: 87
simulator: true
memory_size: ~
boot_time: ~
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ contexts:
device:
name: MacFox
model: "MacBookPro16,1"
battery_level: 87.0
battery_level: 87
simulator: true
memory_size: ~
boot_time: ~
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ contexts:
device:
name: MacFox
model: "MacBookPro16,1"
battery_level: 87.0
battery_level: 87
simulator: true
memory_size: ~
boot_time: ~
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ contexts:
device:
name: DESKTOP-23F43DQ
model: XPS 15 9570 (Dell Inc.)
battery_level: 100.0
battery_level: 100
simulator: true
memory_size: ~
boot_time: ~
Expand Down
2 changes: 1 addition & 1 deletion relay-metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ crc32fast = "1.2.1"
[dev-dependencies]
criterion = "0.3"
futures01 = { version = "0.1.28", package = "futures" }
insta = "1.1.0"
insta = "1.19.0"
lazy_static = "1.4.0"
relay-test = { path = "../relay-test" }

Expand Down
2 changes: 1 addition & 1 deletion relay-quotas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ smallvec = { version = "1.4.0", features = ["serde"] }

[dev-dependencies]
lazy_static = "1.4.0"
insta = { version = "1.1.0", features = ["ron"] }
insta = { version = "1.19.0", features = ["ron"] }
serde_json = "1.0.55"
2 changes: 1 addition & 1 deletion relay-sampling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ rand_pcg = "0.1.2"
unicase = "2.6.0"

[dev-dependencies]
insta = { version = "1.1.0", features = ["ron"] }
insta = { version = "1.19.0", features = ["ron"] }
2 changes: 1 addition & 1 deletion relay-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ zstd = { version = "0.11.2"}
libc = "0.2.71"

[dev-dependencies]
insta = "1.1.0"
insta = "1.19.0"
relay-test = { path = "../relay-test" }
2 changes: 1 addition & 1 deletion tools/document-metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ structopt = { version = "0.3.16", features = ["paw"] }
syn = "1.0.39"

[dev-dependencies]
insta = "1.1.0"
insta = "1.19.0"