Skip to content

Remove hard exit hack #1280

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 55 commits into from
Jun 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
e38374b
Add back multi server for node platform
natebosch Jun 18, 2020
6fcd27f
Typo
natebosch Jun 18, 2020
f355958
Merge streams instead of calling .first on each
natebosch Jun 19, 2020
3cf83d3
Remove hard exit hack
natebosch Jun 19, 2020
1db9e9d
No analyze and format
natebosch Jun 19, 2020
b0deff4
Merge commit '6fcd27fa4c6abdfe46b0410b50a43cb366f75ccd' into hard-exi…
natebosch Jun 19, 2020
9f9c025
Merge branch 'restore-ipv4-node' into hard-exit-travis
natebosch Jun 19, 2020
58383da
Use finally block
natebosch Jun 19, 2020
03a5781
Merge branch 'restore-ipv4-node' into hard-exit-travis
natebosch Jun 19, 2020
46ed7d6
Merge branch 'master' into hard-exit-travis
natebosch Jun 20, 2020
4431a17
Skip signal tests to see if the flake still shows up
natebosch Jun 20, 2020
9b76490
Skip browser loader tests.
natebosch Jun 20, 2020
98a5cf0
Skip more browser tests
natebosch Jun 20, 2020
b49ee01
Skip top level tests
natebosch Jun 20, 2020
a804ac1
Skip more
natebosch Jun 20, 2020
f4d36e5
Skip hybrid test
natebosch Jun 20, 2020
920e6b3
Unskip everything other than hybrid test
natebosch Jun 20, 2020
f7e3c22
Unskip - verify the flakes resurface
natebosch Jun 20, 2020
9bf24fd
Try running just the hybrid tests
natebosch Jun 23, 2020
08df850
Keep sharding
natebosch Jun 23, 2020
66a078e
Skip test_api tests
natebosch Jun 23, 2020
671417a
Expanded reporter
natebosch Jun 23, 2020
96c75dc
Remove some test cases
natebosch Jun 23, 2020
11a9bd9
Run the same shard multiple times
natebosch Jun 23, 2020
66c7d4e
Skip the chrome ones
natebosch Jun 23, 2020
8f84221
Skip non-chrome ones
natebosch Jun 23, 2020
5adc193
Both serialization error tests
natebosch Jun 23, 2020
d93ab23
Unskip tests
natebosch Jun 23, 2020
467c06b
Print when starting/exiting isolate
natebosch Jun 23, 2020
3fb74a6
Run without pub run
natebosch Jun 23, 2020
84ce861
Mono repo
natebosch Jun 23, 2020
5b35ab8
Attempt to diagnose hang with vm service
natebosch Jun 23, 2020
8092fd5
Run through the new script
natebosch Jun 23, 2020
8f3c983
Do we sometimes get non-observatory output?
natebosch Jun 23, 2020
2c68035
Write as char code
natebosch Jun 23, 2020
c557a0c
Fake a hang to see output on "success" case
natebosch Jun 24, 2020
8716882
Write context ref and indexes
natebosch Jun 24, 2020
36cf1bc
Hack things up to reduce retained references
natebosch Jun 24, 2020
9503eb0
Try to print retaining root names
natebosch Jun 24, 2020
16fd219
Merge branch 'master' into hard-exit-travis
natebosch Aug 19, 2020
e19afa3
GO back to running through the real test, verify it is still failing
natebosch Aug 19, 2020
96a8f8b
Go back to normal, verify still fails
natebosch Aug 19, 2020
f0e6ded
Cancel subscriptions in expanded reporter
natebosch Aug 20, 2020
e9ee364
Merge branch 'master' into hard-exit-travis
natebosch Oct 17, 2020
ff28c1b
CLose some recieve ports
natebosch Nov 14, 2020
194a48a
Merge branch 'master' into hard-exit-travis
natebosch Nov 14, 2020
3462c3f
Back to narrow travis
natebosch Nov 14, 2020
bcab1f0
Back to typical job setup
natebosch Nov 14, 2020
f28164f
Dev versions
natebosch Nov 14, 2020
8944588
Merge branch 'master' into hard-exit-travis
natebosch Jun 23, 2021
735ec36
Try undoing the port closing - it doesn't currently repro on github a…
natebosch Jun 23, 2021
628d062
Revert "Try undoing the port closing - it doesn't currently repro on …
natebosch Jun 23, 2021
8812181
Merge branch 'master' into hard-exit-travis
natebosch Jun 23, 2021
3fed1c9
Clean up other references
natebosch Jun 23, 2021
211a5b3
Update mono repo
natebosch Jun 23, 2021
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
1 change: 0 additions & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ defaults:
shell: bash
env:
PUB_ENVIRONMENT: bot.github
FORCE_TEST_EXIT: true

jobs:
job_001:
Expand Down
2 changes: 0 additions & 2 deletions mono_repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
self_validate: analyze_and_format

github:
env:
FORCE_TEST_EXIT: true
# Setting just `cron` keeps the defaults for `push` and `pull_request`
cron: '0 0 * * 0' # “At 00:00 (UTC) on Sunday.”
on_completion:
Expand Down
2 changes: 2 additions & 0 deletions pkgs/test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 1.17.10-dev

## 1.17.9

* Fix a bug where a tag level configuration would cause test suites with that
Expand Down
4 changes: 2 additions & 2 deletions pkgs/test/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: test
version: 1.17.9
version: 1.17.10-dev
description: >-
A full featured library for writing and running Dart tests across platforms.
repository: https://github.com/dart-lang/test/blob/master/pkgs/test
Expand Down Expand Up @@ -34,7 +34,7 @@ dependencies:
yaml: ^3.0.0
# Use an exact version until the test_api and test_core package are stable.
test_api: 0.4.1
test_core: 0.3.29
test_core: 0.3.30

dev_dependencies:
fake_async: ^1.0.0
Expand Down
3 changes: 1 addition & 2 deletions pkgs/test/test/runner/runner_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,7 @@ void main(List<String> args) async {
test.completeShutdown();
}''').create();
var test = await runDart(['runner.dart', '--no-color', '--', 'test.dart'],
description: 'dart runner.dart -- test.dart',
environment: {'FORCE_TEST_EXIT': 'false'});
description: 'dart runner.dart -- test.dart');
expect(
test.stdout,
emitsThrough(containsInOrder([
Expand Down
4 changes: 4 additions & 0 deletions pkgs/test_core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.30-dev

* Remove support for `FORCE_TEST_EXIT`.

## 0.3.29

* Fix a bug where a tag level configuration would cause test suites with that
Expand Down
6 changes: 0 additions & 6 deletions pkgs/test_core/lib/src/executable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,6 @@ Future<void> _execute(List<String> args) async {
await runner?.close();
}

// TODO(grouma) - figure out why the executable can hang in the travis
// environment. https://github.com/dart-lang/test/issues/599
if (Platform.environment['FORCE_TEST_EXIT'] == 'true') {
exit(exitCode);
}

return;
}

Expand Down
2 changes: 2 additions & 0 deletions pkgs/test_core/lib/src/runner/spawn_hybrid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ StreamChannel spawnHybridUri(String url, Object? message, Suite suite) {
var disconnector = Disconnector();
onExitPort.listen((_) {
disconnector.disconnect();
port.close();
onExitPort.close();
});

Expand All @@ -62,6 +63,7 @@ StreamChannel spawnHybridUri(String url, Object? message, Suite suite) {
.transformSink(StreamSinkTransformer.fromHandlers(handleDone: (sink) {
// If the user closes the stream channel, kill the isolate.
isolate.kill();
port.close();
onExitPort.close();
sink.close();
}));
Expand Down
1 change: 1 addition & 0 deletions pkgs/test_core/lib/src/runner/vm/platform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class VMPlatform extends PlatformPlugin {
StreamSubscription<Event>? eventSub;
var channel = IsolateChannel.connectReceive(receivePort)
.transformStream(StreamTransformer.fromHandlers(handleDone: (sink) {
receivePort.close();
isolate!.kill();
eventSub?.cancel();
client?.dispose();
Expand Down
2 changes: 1 addition & 1 deletion pkgs/test_core/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: test_core
version: 0.3.29
version: 0.3.30-dev
description: A basic library for writing tests and running them on the VM.
homepage: https://github.com/dart-lang/test/blob/master/pkgs/test_core

Expand Down