-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFastfile
More file actions
44 lines (38 loc) · 1.3 KB
/
Fastfile
File metadata and controls
44 lines (38 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
lane :test do
sentry_api(
path: "/organizations/my-org/projects/",
params: {}
)
end
lane :availability_check do
sentry_crash_free_sessions(stats_period: "7d")
rate = lane_context[SharedValues::SENTRY_CRASH_FREE_SESSION_RATE]
UI.important("Crash-free session rate: #{(rate * 100).round(2)}%")
end
lane :ttid_check do
screens = sentry_ttid_percentiles(stats_period: "7d", per_page: 10, include_overall: true)
screens.each do |s|
UI.message("#{s[:transaction]}: p50=#{s[:p50]}ms p95=#{s[:p95]}ms (#{s[:count]} loads)")
end
overall = lane_context[SharedValues::SENTRY_TTID_OVERALL]
UI.important("Overall TTID: p50=#{overall[:p50]}ms p95=#{overall[:p95]}ms") if overall
end
lane :app_launch_check do
result = sentry_app_launch(stats_period: "7d")
cold = result[:cold_start]
warm = result[:warm_start]
UI.message("Cold start: p50=#{cold[:p50]}ms p95=#{cold[:p95]}ms (#{cold[:count]} launches)")
UI.message("Warm start: p50=#{warm[:p50]}ms p95=#{warm[:p95]}ms (#{warm[:count]} launches)")
end
lane :slo_report do
sentry_slo_report(
crash_free_target: 0.998,
ttid_p95_target_ms: 1000,
app_launch_p95_target_ms: 2000,
compare_weeks: true,
compare_releases: true,
current_release: "v25.10.0",
previous_release: "v25.9.0",
output_json: "slo_report.json"
)
end