Brian Quinlan
1b8382b14d
Revert "Call the HttpClient constructor when connecting a WebSocket to allow HttpOverrides to work."
...
This reverts commit 92e7989fbc .
Reason for revert: Causes VmService WebSocket creating to fail because HttpClient is mocked during Flutter Widget tests. See https://github.com/flutter/flutter/issues/138413
Original change's description:
> Call the HttpClient constructor when connecting a WebSocket to allow HttpOverrides to work.
>
> One consequence of this is that there will be one HttpClient per WebSocket connection rather than one for all WebSocket connections. This does *not* affect connection pooling because the sockets are detached from the HttpClient after the WebSocket connection is made.
>
> Closes https://github.com/dart-lang/sdk/pull/52509
>
> GitOrigin-RevId: 28ca642a56e3bbc6112df844b07026b9e0ae8ae6
> Change-Id: I8d9c6f2a883b0f79bafca30abd1dfd98291cf0e0
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/305620
> Reviewed-by: Alexander Aprelev <aam@google.com >
> Commit-Queue: Brian Quinlan <bquinlan@google.com >
Change-Id: Ie1d029e7acf477503cd601f6a03e121cd17d1695
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/336100
Auto-Submit: Brian Quinlan <bquinlan@google.com >
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com >
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
2023-11-14 16:32:50 +00:00
Brian Quinlan
92e7989fbc
Call the HttpClient constructor when connecting a WebSocket to allow HttpOverrides to work.
...
One consequence of this is that there will be one HttpClient per WebSocket connection rather than one for all WebSocket connections. This does *not* affect connection pooling because the sockets are detached from the HttpClient after the WebSocket connection is made.
Closes https://github.com/dart-lang/sdk/pull/52509
GitOrigin-RevId: 28ca642a56e3bbc6112df844b07026b9e0ae8ae6
Change-Id: I8d9c6f2a883b0f79bafca30abd1dfd98291cf0e0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/305620
Reviewed-by: Alexander Aprelev <aam@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
2023-11-13 19:46:09 +00:00
Alexander Thomas
57724af73a
[test] Prepare symbolic links test for the removal of _2 suites
...
Bug: b/310114753
Change-Id: Id39362d267c9967ab679456c6f891700196f9170
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/335444
Auto-Submit: Alexander Thomas <athom@google.com >
Commit-Queue: William Hesse <whesse@google.com >
Commit-Queue: Alexander Thomas <athom@google.com >
Reviewed-by: William Hesse <whesse@google.com >
2023-11-10 11:45:16 +00:00
Brian Quinlan
258863c6d1
Fix a bug where proxy usernames/passwords containing @ were not correctly parsed.
...
Bug:https://github.com/dart-lang/sdk/issues/53157
Change-Id: I068fd770dac7f0f762cefbe8ca158fee8ba882fb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/333901
Commit-Queue: Brian Quinlan <bquinlan@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
2023-11-03 19:48:42 +00:00
William Hesse
adc79bc389
Avoid crashes in string concatenation 32-bit integer overflow test
...
The test standalone/string_overflow_test.dart is causing crashes
and out-of-memory thrashing on some configurations. It was originally
a regression test that concatenating a string with 2^31 characters
did not overflow a 32-bit signed integer.
It was changed to exponentially grow a string until an out-of-memory
runtime exception is thrown in Dart. On some VM configurations,
this crashes the machine instead.
Restoring it to only check concatenating a string of 2^31 bytes.
Bug: https://github.com/dart-lang/sdk/issues/46225
Change-Id: Ib50625fe14be2613c907a7bc30cd57766693f6aa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/332423
Reviewed-by: Martin Kustermann <kustermann@google.com >
2023-10-27 12:36:29 +00:00
Stephen Adams
e19e4bfaaf
[tests/io] Avoid use of deprecated unmodifiable typed data view constructor
...
Issue: 53785
Change-Id: I47c854c1eafec8ffee30852a94eb6183c222442a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/332264
Reviewed-by: Brian Quinlan <bquinlan@google.com >
Commit-Queue: Stephen Adams <sra@google.com >
2023-10-26 22:46:39 +00:00
Brian Quinlan
097c84f11b
[io/doc/test] Modify the Windows symlink resolution behavior so that resolving a link that points to a non-existent file results in a type of notFound, which is consistent with all other platforms.
...
Bug:https://github.com/dart-lang/sdk/issues/53684
Change-Id: I1b594e1a85906d1f510358eec71792ea15ab801b
CoreLibraryReviewExempt: VM- and doc-only
Tested: unit tests
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/331841
Reviewed-by: Lasse Nielsen <lrn@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
2023-10-25 23:14:38 +00:00
Brian Quinlan
155f4b271a
Add a test for the byte truncation behavior of writeAsBytes.
...
Change-Id: Iee7505bcbea1a3496643e595d98e818048867d59
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/331093
Commit-Queue: Brian Quinlan <bquinlan@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
2023-10-19 16:17:03 +00:00
Brian Quinlan
b04c5a433e
Adds tests and documentation for print line ending behavior
...
Bug:https://github.com/dart-lang/sdk/issues/53161
Change-Id: I3f13af3cb852b3656341922b9656ec91fc413eed
Tested: documentation + unit test only
CoreLibraryReviewExempt: Only adds documentation and adds a unit test to verify existing behavior
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/323426
Reviewed-by: Lasse Nielsen <lrn@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
2023-10-17 22:10:38 +00:00
asiva
24155ef6f0
[IO/http] - Fix for https://github.com/dart-lang/sdk/issues/49930
...
Check for null 'bufferedData' even in the path when 'subscription' is
null. Should also fix https://github.com/dart-lang/sdk/issues/26379
TEST=ci
Change-Id: Iacc18c8a38e2c5b36c5234495d39cf20bfd8bac3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/330201
Reviewed-by: Brian Quinlan <bquinlan@google.com >
Commit-Queue: Siva Annamalai <asiva@google.com >
2023-10-13 22:59:28 +00:00
Brian Quinlan
0fa13d4627
[doc/io] Add documentation for HttpSession
...
Bug:https://github.com/dart-lang/sdk/issues/16228
Change-Id: I4e70c0b15af7325d9bfaba6dcee6b3a4c68639c1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/330169
Reviewed-by: Alexander Aprelev <aam@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
2023-10-13 17:59:08 +00:00
asiva
8e6a02d899
[vm/lib] Fix for https://github.com/dart-lang/sdk/issues/45347
...
TEST=new tests added
Change-Id: Ic604cc9576f092c1bf96f411ae1abdea6c78c384
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/329784
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Siva Annamalai <asiva@google.com >
2023-10-11 21:51:02 +00:00
Ryan Macnak
c816c1d24e
[test] Remove ARM64-specific status entries.
...
In particular, this un-skips the service tests.
TEST=ci
Bug: b/302156166
Bug: https://github.com/dart-lang/sdk/issues/26109
Bug: https://github.com/dart-lang/sdk/issues/27806
Bug: https://github.com/dart-lang/sdk/issues/33057
Bug: https://github.com/dart-lang/sdk/issues/52589
Change-Id: Ieddf50ac6c27d23c5efa26a7e5bf7f9044350a5e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/328381
Reviewed-by: Jonas Termansen <sortie@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2023-10-09 19:30:29 +00:00
Brian Quinlan
5f89d7f765
Remove macOS as a platform that can run scripts in named pipes.
...
Bug:https://github.com/dart-lang/sdk/issues/28737
Change-Id: I977095f7e68b0a3e3514053295ce7d7154989e7e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/329220
Reviewed-by: Alexander Aprelev <aam@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
2023-10-06 20:29:04 +00:00
Ryan Macnak
1e2d1b294f
[test] Fix slow async_catch_errors_test.
...
The default socket timeout is longer than the test timeout for some configurations.
Change-Id: Iddf60b6d40b8aa00115463fe76f1d924a93424bf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/329640
Commit-Queue: Ryan Macnak <rmacnak@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
2023-10-06 19:20:37 +00:00
Brian Quinlan
ae6e15a55e
Allow files to be renamed to links to directories
...
Bug: https://github.com/dart-lang/sdk/issues/53583
Change-Id: If6670f813698f030c2d07f8bedbdd82fcab372aa
Tested: unit tests
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/328040
Reviewed-by: Alexander Aprelev <aam@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
2023-09-29 00:17:04 +00:00
Brian Quinlan
b1a4a35f96
[io] Ignore Content-Length if Transfer-Encoding header is set.
...
Bug:https://github.com/dart-lang/sdk/issues/48822
Change-Id: I250d51f9784443ef17f58b0c5b296c09e287c10c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/327703
Reviewed-by: Alexander Aprelev <aam@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
2023-09-27 19:12:44 +00:00
Martin Kustermann
0aa481ad94
[gardening] Call initial asyncStart() and final asyncEnd()
...
The asyncStart/asyncEnd implementation maintains a counter that will
signify to the test framework the test is done as soon as the counter
reaches 0 again.
This means we have to ensure the counter is >0 as long as any test is
running.
The standalone/io/http_client_connect_test wasn't doing that as it has
code like this
main() async {
...
await foo();
await bar();
...
}
foo() async {
asyncStart();
...
asyncEnd();
}
bar() async {
asyncStart();
...
asyncEnd();
}
So the test is considered done after the `await foo()` decremented the
counter back to 0.
TEST=Fixes flaky standalone{,_2}/io/http_client_connect_test on iso-stress builder
Change-Id: I71a89d740a814df7364153ef79bad9dd85dc9b3e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/327862
Reviewed-by: Daco Harkes <dacoharkes@google.com >
Commit-Queue: Martin Kustermann <kustermann@google.com >
2023-09-26 11:41:03 +00:00
Vyacheslav Egorov
61b03b49b1
[vm] Disable dart:cli waitFor by default
...
Per breaking change request we are now disabling
waitFor by default.
Users can still enable it by passing the flag:
--enabled-deprecated-wait-for
Issue https://github.com/dart-lang/sdk/issues/52121
TEST=standalone/io/wait_for_deprecation_test
CoreLibraryReviewExempt: standalone VM only change
Change-Id: Ied78f91344d15cb77e932514e2b752bb6ac5dc5d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326021
Commit-Queue: Slava Egorov <vegorov@google.com >
Reviewed-by: Martin Kustermann <kustermann@google.com >
Reviewed-by: Michael Thomsen <mit@google.com >
2023-09-14 10:08:29 +00:00
Brian Quinlan
8a91749e42
Fix parsing of folded header field values.
...
Bug: https://github.com/dart-lang/sdk/issues/53227
Bug: https://github.com/dart-lang/sdk/issues/53185
Change-Id: Ibbdbdf9c8f2875e8f687244982810fffee20e69c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/320920
Commit-Queue: Brian Quinlan <bquinlan@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
2023-09-11 21:13:58 +00:00
Ryan Macnak
ef4984566b
[vm, io] Skip global destructors when using dart:io's exit.
...
TEST=msan
Bug: https://github.com/dart-lang/sdk/issues/51271
Bug: https://github.com/dart-lang/sdk/issues/51560
Change-Id: Ie3a487656173790d48c41c272a131ce51f667a9f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321921
Reviewed-by: Daco Harkes <dacoharkes@google.com >
Reviewed-by: Alexander Markov <alexmarkov@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2023-08-22 16:24:40 +00:00
Ryan Macnak
c1256bec01
[test] Skip process_sync_test on MSAN.
...
Bug: https://github.com/dart-lang/sdk/issues/51271
Change-Id: If96167b559a16539cef40dfd6244b9623e921ea1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321743
Reviewed-by: Alexander Markov <alexmarkov@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2023-08-18 21:25:59 +00:00
Ryan Macnak
12e456cdeb
[test] Remove some stale status entries.
...
Bug: https://github.com/dart-lang/sdk/issues/30618
Change-Id: Iadeac7d4b02256a638fec0919375e4115f4103a1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321781
Reviewed-by: Alexander Markov <alexmarkov@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2023-08-18 20:56:03 +00:00
Brian Quinlan
ce0d051c9c
Remove trailing whitespace from header values.
...
Bug: https://github.com/dart-lang/sdk/issues/53005
Bug: https://github.com/dart-lang/sdk/issues/51532
Change-Id: I8a2fc04f48d50103819d655ccd300e73d59fbecc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/319903
Reviewed-by: Alexander Aprelev <aam@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
2023-08-15 16:58:12 +00:00
Alexander Aprelev
2cd2bed059
[gardening] Make standalone/package/package_isolate_test a no-op in AOT.
...
The test relies on spawning some other dart helper scripts, which is not supported for AOT tests at the moment.
BUG=https://github.com/dart-lang/sdk/issues/53195
TEST=ci
Change-Id: Id083440227f5cf446c296c9ca561ab2147c0da75
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/320200
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Commit-Queue: Alexander Aprelev <aam@google.com >
2023-08-11 21:06:10 +00:00
Alexander Aprelev
f22d82f70e
[gardening] Fix standalone/package/* tests.
...
BUG=https://github.com/dart-lang/sdk/issues/46528
TEST=standalone/package
Change-Id: Id8d99afef86df3f676bf54d62b047c2d9b4747fb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/319905
Commit-Queue: Alexander Aprelev <aam@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2023-08-11 18:15:11 +00:00
Alexander Aprelev
fe547cfac8
[gardening] Remove Crash entries for standalone/io tests that actually pass.
...
TEST=ci
Change-Id: I3228db7490735dd36265fac6549376a4e83910e9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/319907
Reviewed-by: Siva Annamalai <asiva@google.com >
Commit-Queue: Alexander Aprelev <aam@google.com >
2023-08-11 17:27:29 +00:00
Brian Quinlan
e75cacf2b8
Clean up Platform.lineTerminator test.
...
Change-Id: I933956de806d9b4597385cf4afa4a98528c2165c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/313542
Reviewed-by: Lasse Nielsen <lrn@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
2023-07-19 20:23:51 +00:00
Daco Harkes
4333288aaa
[gardening] Declare resources in test
...
And give test more time in tsan.
Bug: https://github.com/dart-lang/sdk/issues/52917
Change-Id: I1342612470d63233b265dc9063b0335ec8bef760
Cq-Include-Trybots: luci.dart.try:vm-tsan-linux-release-x64-try,vm-aot-tsan-linux-release-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/313383
Commit-Queue: Daco Harkes <dacoharkes@google.com >
Auto-Submit: Daco Harkes <dacoharkes@google.com >
Reviewed-by: Martin Kustermann <kustermann@google.com >
Commit-Queue: Martin Kustermann <kustermann@google.com >
2023-07-12 14:02:41 +00:00
Vyacheslav Egorov
4fddaf9486
[sdk] Provide Isolate.resolvePackageUriSync
...
TEST=augmented few existing tests
Bug: https://github.com/dart-lang/sdk/issues/52121
CoreLibraryReviewExempt: VM-only change, other platforms don't support this API.
Change-Id: I95decae6cf1a5c6ad694747313aa0dbe0a13025d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/312981
Reviewed-by: Lasse Nielsen <lrn@google.com >
Commit-Queue: Slava Egorov <vegorov@google.com >
Reviewed-by: Martin Kustermann <kustermann@google.com >
2023-07-11 12:59:33 +00:00
Ryan Macnak
99ef36064f
[infra] Make the sanitizer a first-class status variable.
...
Makes the TSAN skips apply to
`test.py -mrelease --sanitizer=tsan`
and not just
`test.py -n vm-tsan-linux-release-x64`.
Also makes the timeouts agree.
Change-Id: I10315e754a4ebb3020f3c2f6cecfac6b77e77a9b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/311828
Reviewed-by: Alexander Thomas <athom@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2023-07-10 17:46:31 +00:00
asiva
f84cf9413f
[vm/runtime] - Fix RegExp exception messages (issue 52691)
...
TEST=new test added
Fixed: 52691
Change-Id: Ibc8865f8e9b1e908be80d4fbe8b8931eda448df8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/312348
Reviewed-by: Alexander Aprelev <aam@google.com >
Commit-Queue: Siva Annamalai <asiva@google.com >
2023-07-06 21:10:28 +00:00
Ryan Macnak
8f21c8ed2a
[gardening] Don't attempt to measure RSS under sanitizers or with reload.
...
Bug: https://github.com/dart-lang/sdk/issues/52816
Change-Id: I4e50180a9285727cc2e275dd17dd6855f21a0b6e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/311926
Commit-Queue: Ryan Macnak <rmacnak@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
2023-06-29 19:39:05 +00:00
Ryan Macnak
ac77af1c07
Group the GC tests into a common directory.
...
The makes it possible to run just these tests with `test.py vm/gc/`.
Change-Id: Ied4aa0b2fb045c19b1aced68f58a1ef195a5df8a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/311145
Reviewed-by: Alexander Aprelev <aam@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2023-06-29 17:27:48 +00:00
Slava Egorov
8b6e39696f
[vm/io] Avoid leaking Handle::data_ready_ on Windows.
...
Handle::data_ready_ contains bytes which are ready to be sent to Dart
side. Not all code paths fully drain this buffer and delete it
before destroying the handle, for example directory watch implementation
was prone to leaking data_ready_ when subscription was cancelled.
This CL switches the code to use unique_ptr to hold on to data_ready_
which makes sure that it is deleted when Handle is destroyed.
The code would benefit from holding all OverlappedBuffer instances
through unique_ptr but that is a much larger refactoring which
we leave for a later date.
Fixes https://github.com/dart-lang/sdk/issues/52715
TEST=standalone{,_2}/regress_52715_test
Bug: 52715
Cq-Include-Trybots: luci.dart.try:vm-win-release-x64-try,vm-win-debug-x64-try,vm-aot-win-release-x64-try,analyzer-win-release-try
Change-Id: Ie8d728b823de7e8f9de1489898e270580c2af269
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/311841
Commit-Queue: Slava Egorov <vegorov@google.com >
Commit-Queue: Martin Kustermann <kustermann@google.com >
Reviewed-by: Martin Kustermann <kustermann@google.com >
Auto-Submit: Slava Egorov <vegorov@google.com >
2023-06-28 13:06:51 +00:00
asiva
d29341e1ea
Ensure HttpClient.setTimelineLogging does not throw an exception in
...
product mode.
Change-Id: I38097caac847ac5211b1b12f77f342956eaecc6e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/309823
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Commit-Queue: Siva Annamalai <asiva@google.com >
2023-06-22 01:16:45 +00:00
Vyacheslav Egorov
71dd8b3d16
[vm/io] Fix standalone/io/client_socket_add_destroy_no_error_test
...
The test was written in a way that let GC collect (and shutdown)
receiving end leading to EPIPE.
Fixes https://github.com/dart-lang/sdk/issues/52654
Fixed: 52654
Change-Id: I2100fee1498e80c6af65d570179d3335310696a4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/308340
Reviewed-by: Tess Strickland <sstrickl@google.com >
Commit-Queue: Tess Strickland <sstrickl@google.com >
2023-06-09 18:14:53 +00:00
Vyacheslav Egorov
eefa234d28
[gardening] Fix standalone/io/regress_50904_test
...
* Do not use runInShell on Android.
* Forward runtime flags to the child process.
Fixes https://github.com/dart-lang/sdk/issues/52657
Fixed: 52657
Cq-Include-Trybots: luci.dart.try:vm-aot-android-release-arm64c-try
Change-Id: Ie2761172f80cb3fc3f22a89984e417ca8c38d4f1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/308342
Commit-Queue: Tess Strickland <sstrickl@google.com >
Reviewed-by: Tess Strickland <sstrickl@google.com >
2023-06-09 17:04:29 +00:00
Mihail Slobodyanuk
a4b25027fe
Fix Socket remoteAddress obtaining on Win32 #51778
...
Closes https://github.com/dart-lang/sdk/pull/51981
GitOrigin-RevId: de22efdd25a716b6c7eac086e2cb12e8793554f5
Change-Id: If1d8247f7e0188c47c19e19f33732a56493d21d8
Bug: https://github.com/dart-lang/sdk/issues/51778
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/294220
Reviewed-by: Alexander Aprelev <aam@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
Reviewed-by: Brian Quinlan <bquinlan@google.com >
2023-06-07 19:32:49 +00:00
Ryan Macnak
884be01ec3
[vm, gc] Add option to madvise(DONTNEED) when sweeping.
...
- More expensive sweeping that will also slow down the mutator from more TLB invalidation
- Might cause OOM sooner from PTE fragmentation
- Won't decrease the Dart heap capacity stat
- Unclear how often holes are at least page sized
TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/52571
Change-Id: I54011e451bf0ad21859c11023d1c4123cc0fa435
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/306902
Commit-Queue: Ryan Macnak <rmacnak@google.com >
Reviewed-by: Martin Kustermann <kustermann@google.com >
2023-06-07 19:01:51 +00:00
Vyacheslav Egorov
74285a6e31
[io] Take pending writes into account in _SocketStreamConsumer
...
On Windows `_NativeSocket.nativeWrite` returning to caller does
not mean that the data was flushed into OS buffer. Overlapped
operation might still be in progress - and it will be cancelled
with data loss if we close the handle.
This means _SocketStreamConsumer should take such pending writes
into account and not issue `done` event until pending write
completes.
This change prevents data loss when communicating with
subprocesses on Windows. Previously even doing
`await process.stdin.flush()` would not guarantee data
delivery.
Fixes https://github.com/dart-lang/sdk/issues/50904
TEST=tests/standalone/io/regress_50904_test.dart
Cq-Include-Trybots: luci.dart.try:vm-win-release-x64-try,vm-win-debug-x64-try,pkg-win-release-try
Change-Id: I13ab2cc3ce45f1ff8cb3183884d26bbb2b72f7ac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/307043
Reviewed-by: Brian Quinlan <bquinlan@google.com >
Commit-Queue: Slava Egorov <vegorov@google.com >
2023-06-07 09:49:35 +00:00
Ryan Macnak
25bc8b4aee
[test] Skip named_pipe_script_test on Mac.
...
This test fails flakily so approvals keep getting undone after a run of successes.
Bug: https://github.com/dart-lang/sdk/issues/28737
Change-Id: If81813b1daec554c1b0175a415d854b18f094fd9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/306131
Reviewed-by: Siva Annamalai <asiva@google.com >
Commit-Queue: Siva Annamalai <asiva@google.com >
2023-05-26 22:14:57 +00:00
Brian Quinlan
95509b2b34
Add tests to ensure that \n is not translated to the platform line ending and document that behavior.
...
Change-Id: I52668a87507dfdc560fd7c1ec20e86114c1199b7
CoreLibraryReviewExempt: documentation and test-only change
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/303421
Commit-Queue: Brian Quinlan <bquinlan@google.com >
Reviewed-by: Lasse Nielsen <lrn@google.com >
2023-05-24 18:50:29 +00:00
Brian Quinlan
a75e857df5
Add a Platform.lineTerminator static method
...
Bug: https://github.com/dart-lang/sdk/issues/52379
Change-Id: Ic3a7f06252f8a69dcfdb29c00f16557c34529652
CoreLibraryReviewExempt: Aske is on holiday
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/297260
Reviewed-by: Siva Annamalai <asiva@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
Reviewed-by: Lasse Nielsen <lrn@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
2023-05-18 19:57:58 +00:00
Lasse R.H. Nielsen
066106d19a
Make Uri.base see IOOverrides changes to current directory.
...
Fixes #39796 .
Tested: Case added to `io_overrides_test.dart`.
Bug: https://dartbug.com/39796
Change-Id: Id72f75f972f59f4f9b7d17e79b4bcffd6d79f2c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/304006
Commit-Queue: Lasse Nielsen <lrn@google.com >
Reviewed-by: Nate Bosch <nbosch@google.com >
2023-05-17 17:27:13 +00:00
Vyacheslav Egorov
19e56613cf
[infra] Prevent VM AOT tests from poluting SDK source.
...
Extend test_runner VMOptions support with an ability to specify
paths relative to temporary compilation directory.
// VMOptions=--foo=$TEST_COMPILATION_DIR/foo.file
The same directory will also be passed as an environment variable
to execution command.
Migrate most of the tests which used to write stuff into the SDK
root to use this feature. I am leaving vm/dart/causal/* tests
unmigrated because migrating requires time consuming manual
update of expectations (which encode raw line numbers). I have
a follow up CL which changes how these tests are written which
will make migration trivial.
Change-Id: Id53008be66de8ff18623efac27ff15750f407749
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/300600
Reviewed-by: William Hesse <whesse@google.com >
Commit-Queue: Slava Egorov <vegorov@google.com >
2023-05-03 13:24:39 +00:00
Sun Jiao
f9ccf90c97
[http] support SameSite in Cookies.
...
Closes https://github.com/dart-lang/sdk/pull/51457
GitOrigin-RevId: 4e0bece11ae2c1b7b7eac5a43293ae43682e22d2
Change-Id: I0fe39aede037b713b5a3fdbf7950a4a44a02ea1d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/283984
Reviewed-by: Lasse Nielsen <lrn@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Brian Quinlan <bquinlan@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
2023-05-02 23:51:22 +00:00
Valentin Hăloiu
9a5de8e2ea
Fix HTTPS client certificate test
...
These tests have been broken (and disabled) for a while. This pull-request fixes the tests and re-enables them.
Bug: #47052
Change-Id: Ib8c83959e5f00a2a5dc29959f87adbaa963385fe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/296863
Commit-Queue: Daco Harkes <dacoharkes@google.com >
Reviewed-by: Daco Harkes <dacoharkes@google.com >
2023-04-26 06:45:20 +00:00
Valentin Hăloiu
db766b37cb
Fix SSL certificate check when hostname is an IP address
...
Closes https://github.com/dart-lang/sdk/pull/52118
GitOrigin-RevId: 7598354d2ad5baba2ed65177bdff521a637b5b65
Change-Id: I78246e423f6ee090030912576ab8202f0fa60509
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/296722
Reviewed-by: Brian Quinlan <bquinlan@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
2023-04-25 16:06:12 +00:00
Martin Kustermann
586d359813
[gardening] Update status files after starting to run tests in obfucated/dwarf nnbd mode
...
After [0] landed we started running tests in strong mode (instead of
skipping them). This is the corresponding status file update.
[0] https://dart-review.googlesource.com/c/sdk/+/296583
Issue https://github.com/dart-lang/sdk/issues/52122
TEST=ci
Change-Id: I52e5e9477c47c42a583fb76a8b4205c0ac16bbf3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/296820
Commit-Queue: Martin Kustermann <kustermann@google.com >
Reviewed-by: Daco Harkes <dacoharkes@google.com >
2023-04-21 10:13:57 +00:00