Debian Codegraph @

testing/test/SKIP-FAILS.txt

raw
1 Design Specification for ./mach manifest skip-fails
2 ===================================================
3
4 The first of the mach manifest subcommands is skip-fails. This command
5 can be used to automatically edit manifests to skip tests that are
6 failing as well as file the corresponding bugs for the failures. This
7 is particularly useful when “greening up” a new platform.
8
9 The user documentation for skip-fails is here:
10 https://firefox-source-docs.mozilla.org/mozbase/manifestparser.html#using-mach-manifest-skip-fails
11
12 The skip-fails command knows how to manage failures for TOML, WPT
13 and REFTEST manifests. Additional developer design notes are included here.
14
15
16 Running skip-fails for TOML
17 ---------------------------
18
19 The user documentation for TOML manifests is:
20 https://firefox-source-docs.mozilla.org/mozbase/manifestparser.html
21
22 1. Classify the failure based on the following:
23 a. If less than 3 runs, classify "unknown"
24 b. If zero failures, classify "success"
25 c. If the ratio of failed runs / total runs is less than 40%
26 classify "intermittent"
27 d. Else edit the manifest to skip this failure
28
29 As design changes for skip-fails / TOML, notes will be added here.
30
31 Running skip-fails for WPT
32 ---------------------------
33
34 The user documentation for WPT manifests is:
35 https://firefox-source-docs.mozilla.org/web-platform/index.html
36
37 1. Classify the failure based on the following:
38 a. If less than 3 runs, classify "unknown"
39 b. If zero failures, classify "success"
40 c. If the ratio of failed runs / total runs is less than 40%
41 classify "intermittent"
42 d. Else edit the manifest to skip this failure
43
44 As design changes for skip-fails / WPT, notes will be added here.
45
46
47 Running skip-fails for REFTEST
48 ------------------------------
49
50 The user documentation for REFTEST manifests is:
51 https://firefox-source-docs.mozilla.org/layout/Reftest.html
52
53 Current Design notes for skip-fails / REFTEST:
54
55 As skip-fails for REFTEST finds a failure it will take the following actions:
56
57 1. Classify the failure based on the following:
58 a. If less than 3 runs, classify "unknown"
59 b. If zero failures, classify "success"
60 c. If the ratio of failed runs / total runs is less than 40%
61 classify "low frequency intermittent" (INTERMITTENT)
62 c. If the ratio of failed runs / total runs is less than 80%
63 classify "high frequency intermittent" (DISABLE_INTERMITTENT)
64 d. If the ratio is <= 100%, classify "failure" (DISABLE_FAILURE)
65
66 2. Propose a new range (differences, pixels)
67 a. For "low frequency intermittent" errors do nothing
68 b. For "high frequency intermittent" set the range 0-Y (i.e. always
69 start at zero to avoid UNEXPECTED PASS)
70 c. For "failure" set the range X-Y (i.e. the range as reported in
71 reftest_errorsummary.log). If the failure is UNEXPECTED PASS
72 then set the range to 0-Y.
73 d. NOTE: The maximum for differences and pixels will be increased
74 by 5% over the reported values in reftest_errorsummary.log
75 e. NOTE: If for whatever reason the range is calculated to be 0-0 then
76 remove the fuzzy-if entirely
77
78 3. Merge with an existing fuzzy-if for this OS platform if the other
79 criteria differ in only one dimension. Current dimensions include:
80
81 OS: gtkWidget, winWidget, cocoaWidget, Android
82 build_type: optimized, isDebugBuild, isCoverageBuild, AddressSanitizer, ThreadSanitizer
83 is64Bit
84 fission
85 useDrawSnapshot
86 swgl
87 <OTHER>
88
89 4. Based on a command line switch choose do use implicit variables (or not).
90 a. The following variables can implicit values:
91 is64Bit: true
92 fission: true
93 useDrawSnapshot: false
94 swgl: false
95 If the value of an implicit variable matches it's default then it may be
96 elided from the conditional expression.
97 If the value of an implicit variable is the oppposite of it's default
98 value then it may be specified in the condition, e.g. !is64Bit
99 When merging an existing condition with a new failure condition where
100 the one dimension of difference is an implicit variable then the
101 condition must include the disjunction of the variable, e.g. (is64Bit&&!is64Bit)
102 That is essential so that the reftest sandbox does not add the implicit
103 variable and cover only one of the two possible values.
104 b. When implicit variables are not used then the following heuristics apply:
105 The variable is64Bit will be elided for all platforms except for winWidget.
106 The variable useDrawSnapshot will be elided for all platforms except gtkWidget.
107
108 5. Position of fuzzy-if conditions
109 In reftest manifest the rightmost applicable condition is used.
110
111 a. First sorting criterion is based on OS in this order:
112 OSES = ["Android", "cocoaWidget", "appleSilicon", "gtkWidget", "winWidget"]
113 This is because appleSilicon is a narrower specification than
114 cocoaWidget and would be ignored if not to the right of cocoaWidget.
115
116 b. The second sorting criterion is the number of dimensions that participate
117 in the expression (including implicits) from least dimensions to
118 greatest dimensions.
119
120 The last fuzzy-if will be placed on the line immediately to the left of the
121 "type" (e.g. == or !=) (or to the left of an optional "HTTP" expression, if present).
122 Non fuzzy-if statements will appear before the fuzzy-if statements.
123 In this way the more generic conditions will only be superceded by very specific
124 conditions.