Skip to content

Commit 2b5b316

Browse files
jensjohaCommit Queue
authored andcommitted
[status_file] Status file linting should not check for non-existing files when given input on stdin
Given input on stdin it has no path to resolve the relative paths that exists in a status file from. It will thus complain about almost all lines which is not ideal. This CL changes it so it doesn't check for it when given data on stdin. This also means that - because there are no old errors on that account - if there are such errors now you will be forced to fix it. The current errors in the status files I could find have also been fixed. This should for instance have flaggen when I in https://dart-review.googlesource.com/c/sdk/+/400320 updated the pkg.status file but forgot to actually rename the underlying file (as fixed in https://dart-review.googlesource.com/c/sdk/+/400560). Technically I suppose it _did_ flag it, but there were also hundreds of lines of false positives caused by the old status file been given at stdin to check if there were existing errors - which there then was, thus not forcing me to do anything. Logical follow-up to https://dart-review.googlesource.com/c/sdk/+/370886 TEST=ci Change-Id: Ib3533ede88b6d99a31f8b423c00930857e0ba49f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/400620 Reviewed-by: Alexander Thomas <[email protected]> Commit-Queue: Jens Johansen <[email protected]>
1 parent 555d9ea commit 2b5b316

File tree

7 files changed

+10
-18
lines changed

7 files changed

+10
-18
lines changed

pkg/pkg.status

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ dev_compiler/test/options/*: Skip # test needs fixes
5252
dev_compiler/test/sourcemap/*: SkipByDesign # Skip sourcemap tests
5353
dev_compiler/test/sourcemap/testfiles/*: SkipByDesign # Skip dev_compiler codegen tests
5454
dev_compiler/test/worker/*: Skip # test needs fixes
55-
front_end/test/fasta/analyze_git_test: Pass, Slow
56-
front_end/test/fasta/bootstrap_test: Pass, Slow
57-
front_end/test/fasta/rasta/*: SkipByDesign # Anything in rasta is input to fasta unit tests and shouldn't be run as tests.
58-
front_end/test/fasta/types/dart2js_benchmark_test: Pass, Slow
59-
front_end/test/fasta/types/large_app_benchmark_test: Pass, ExtraSlow
55+
front_end/test/analyze_git_test: Pass, Slow
56+
front_end/test/bootstrap_test: Pass, Slow
6057
front_end/test/incremental_compiler_leak_test: Pass, ExtraSlow
6158
front_end/test/incremental_dart2js_test: Pass, Slow
59+
front_end/test/rasta/*: SkipByDesign # Anything in rasta is input to cfe unit tests and shouldn't be run as tests.
60+
front_end/test/types/dart2js_benchmark_test: Pass, Slow
61+
front_end/test/types/large_app_benchmark_test: Pass, ExtraSlow
6262
front_end/testcases/*: Skip # These are not tests but input for tests.
6363
front_end/tool/incremental_perf_test: Slow, Pass
6464
kernel/test/dart_scope_calculator_test: Slow, Pass
@@ -250,7 +250,7 @@ vm_snapshot_analysis/test/*: SkipByDesign # Only meant to run on vm
250250

251251
[ $system == windows ]
252252
_macros/test/executor/executor_test: Skip # dartbug.com/56002
253-
front_end/test/fasta/bootstrap_test: Skip # Issue 31902
253+
front_end/test/bootstrap_test: Skip # Issue 31902
254254
front_end/test/incremental_dart2js_load_from_dill_test: Pass, Slow
255255
vm_service/test/private_rpcs/dev_fs_http_put_test: Skip # Windows disallows "?" in paths
256256
vm_service/test/private_rpcs/dev_fs_http_put_weird_char_test: Skip # Windows disallows "\r" in paths

pkg/status_file/bin/lint.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ void main(List<String> arguments) {
5151
bool usePipe = results["text"];
5252
if (usePipe) {
5353
lintStdIn(
54-
checkForDisjunctions: checkForDisjunctions,
55-
checkForNonExisting: checkForNonExisting);
54+
checkForDisjunctions: checkForDisjunctions, checkForNonExisting: false);
5655
} else {
5756
if (results.rest.length != 1) {
5857
printHelp(parser);

runtime/observatory/tests/service/service_kernel.status

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,13 @@ next_through_await_for_test: SkipByDesign # Debugger is disabled in AOT mode.
121121
next_through_call_on_field_in_class_test: SkipByDesign # Debugger is disabled in AOT mode.
122122
next_through_call_on_field_test: SkipByDesign # Debugger is disabled in AOT mode.
123123
next_through_call_on_static_field_in_class_test: SkipByDesign # Debugger is disabled in AOT mode.
124-
next_through_catch_test: SkipByDesign # Debugger is disabled in AOT mode.
125124
next_through_closure_test: SkipByDesign # Debugger is disabled in AOT mode.
126125
next_through_create_list_and_map_test: SkipByDesign # Debugger is disabled in AOT mode.
127126
next_through_for_each_loop_test: SkipByDesign # Debugger is disabled in AOT mode.
128127
next_through_for_loop_with_break_and_continue_test: SkipByDesign # Debugger is disabled in AOT mode.
129128
next_through_function_expression_test: SkipByDesign # Debugger is disabled in AOT mode.
130129
next_through_implicit_call_test: SkipByDesign # Debugger is disabled in AOT mode.
131130
next_through_is_and_as_test: SkipByDesign # Debugger is disabled in AOT mode.
132-
next_through_multi_catch_test: SkipByDesign # Debugger is disabled in AOT mode.
133131
next_through_new_test: SkipByDesign # Debugger is disabled in AOT mode.
134132
next_through_operator_bracket_on_super_test: SkipByDesign # Debugger is disabled in AOT mode.
135133
next_through_operator_bracket_on_this_test: SkipByDesign # Debugger is disabled in AOT mode.
@@ -218,15 +216,13 @@ next_through_assign_int_test: Skip # Issues 32137 and 32138.
218216
next_through_call_on_field_in_class_test: Skip # Issues 32137 and 32138.
219217
next_through_call_on_field_test: Skip # Issues 32137 and 32138.
220218
next_through_call_on_static_field_in_class_test: Skip # Timeout
221-
next_through_catch_test: Skip # Issues 32137 and 32138.
222219
next_through_closure_test: Skip # Timeout
223220
next_through_create_list_and_map_test: Skip # Issues 32137 and 32138.
224221
next_through_for_each_loop_test: Skip # Timeout
225222
next_through_for_loop_with_break_and_continue_test: Skip # Timeout
226223
next_through_function_expression_test: Skip # Issues 32137 and 32138.
227224
next_through_implicit_call_test: Skip # Timeout
228225
next_through_is_and_as_test: Skip # Issues 32137 and 32138.
229-
next_through_multi_catch_test: Skip # Issues 32137 and 32138.
230226
next_through_new_test: Skip # Timeout
231227
next_through_operator_bracket_on_super_test: Skip # Timeout
232228
next_through_operator_bracket_on_this_test: Skip # Timeout

tests/ffi/ffi.status

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# for details. All rights reserved. Use of this source code is governed by a
33
# BSD-style license that can be found in the LICENSE file.
44

5-
native_assets/asset_*: Pass, Slow # https://dartbug.com/56330
65
function_callbacks_structs_by_value_test: Pass, Slow # https://dartbug.com/47304 https://dartbug.com/45007
76
function_structs_by_value_generated_args_leaf_test: Pass, Slow # https://dartbug.com/47303 https://dartbug.com/45007
87
function_structs_by_value_generated_args_test: Pass, Slow # https://dartbug.com/47303 https://dartbug.com/45007
98
function_structs_by_value_generated_ret_arg_leaf_test: Pass, Slow # https://dartbug.com/47303 https://dartbug.com/45007
109
function_structs_by_value_generated_ret_arg_test: Pass, Slow # https://dartbug.com/47303 https://dartbug.com/45007
1110
function_structs_by_value_generated_ret_leaf_test: Pass, Slow # https://dartbug.com/47303 https://dartbug.com/45007
1211
function_structs_by_value_generated_ret_test: Pass, Slow # https://dartbug.com/47303 https://dartbug.com/45007
12+
native_assets/asset_*: Pass, Slow # https://dartbug.com/56330
1313

1414
[ $builder_tag == optimization_counter_threshold ]
1515
aliasing_test: SkipByDesign # Already has VMOptions=--optimization-counter-threshold

tests/language/language.status

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ type_object/literal_type_literal_test: SkipByDesign # Relies on symbol names
2727
unsorted/invocation_mirror_test: SkipByDesign # Relies on symbol names
2828
vm/type_cast_vm_test: SkipByDesign # Relies on symbol names
2929

30-
[ $compiler != dart2analyzer ]
31-
switch/case_warn_test: Skip # Analyzer only, see language_analyzer2.status
32-
3330
[ $compiler == dart2bytecode ]
3431
class_modifiers/trans_legacy/legacy_superdeclaration_test: Crash
3532
const/inference_test: Crash

tests/standalone/standalone.status

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ io/https_connection_closed_during_handshake_test: SkipByDesign # long_ssl_cert_e
7777
io/https_nonblocking_trust_evaluation_test: SkipByDesign
7878

7979
[ $simulator ]
80-
io/socket_sigpipe_test: SkipByDesign # Test uses ffi
8180
io/http_big_header_test: SkipSlow # Issue 52110
81+
io/socket_sigpipe_test: SkipByDesign # Test uses ffi
8282

8383
[ $compiler == dartk && $runtime == vm && $system == fuchsia ]
8484
*: Skip # Not yet triaged.

tests/web/web.status

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ code_motion_exception_test: Skip # Requires unminified operator names.
5757
code_motion_exception_test: Skip # Required V8 specific format of JavaScript errors.
5858

5959
[ $compiler == dart2wasm && $runtime != d8 ]
60-
wasm/source_map_simple_test: SkipByDesign # Reads source map file using d8's readbuffer
6160
wasm/source_map_simple_optimized_test: SkipByDesign # Reads source map file using d8's readbuffer
61+
wasm/source_map_simple_test: SkipByDesign # Reads source map file using d8's readbuffer
6262
wasm/uri_base_test: SkipByDesign # Converts Uri.base to file path
6363

6464
[ $compiler == dartk && $runtime == vm ]

0 commit comments

Comments
 (0)