Repository navigation
fix: CI failures on rel/1.0.0: a stateless test wait, an OAuth double resume on Linux, apt retries - #410
Conversation
…he deadline The four sign-in tests in "Discovery timeout over HTTP" set discoveryTimeout to 1 second and assumed that the server/discover POST reaches the authorizer before the timeout runs out. On a loaded runner it can take longer: the discovery timer then finds no authorization in progress, abandons the probe and connect moves on to initialize. Each test fails its own way: - "Cancelling connect during sign-in stops waiting promptly": the timer never waits, so authorizationWaiterCount stays 0 (#410, RHEL UBI 9; earlier on the iOS simulator) - "Signing in does not count against the discovery timeout": connects at 2025-11-25 instead of 2026-07-28 (twice on #372, RHEL and Ubuntu) - the other two: initialize is challenged as well In a 2-CPU RHEL UBI 9 container (scripts/ci-linux.sh --cpus 2) the first one failed in 2 of 4 full test runs, each time with one sign-in and no authorized request. The sign-in now lasts until release(), which the tests call once the discovery timer waits for it, so it outlasts the deadline whatever the runner's speed. A sign-in that starts before start + timeout belongs to server/discover, because initialize is sent only after the timer fires; an attempt where it started later does not test the timer and is run again with a longer timeout (1, 4, then 12 seconds), and the test records an issue when even the longest one is missed. The assertions are unchanged. In the same container the four tests passed in 12 of 12 full runs. With the discovery timer changed to give up instead of waiting for a sign-in, all four fail. On an idle machine they finish in 1 to 2 seconds, as before. Assisted-by: Claude
12bee6e to
260220a
Compare
…ulator Most failures in the CI runs of #372 and #410 came from the tests, not from the SDK. Each cause: - offThreadPool ran blocking work, such as a read() on a pipe, on DispatchQueue.global(). On Linux the Swift global executor runs on libdispatch's global queues, so those reads held the cooperative pool's threads: in about one full run in eight on two CPUs the whole process froze for about 30 seconds (a thread dump showed five workers blocked in read() and one running every async job), and dozens of tests failed on their time limits at once, among them the HTTPClientTransportTests.swift:2759 and :2888 failures. It now runs each work item on a Thread of its own, as do the two streaming mocks that block while they wait. OffThreadPoolTests blocks 24 work items until all have started: with the Dispatch queue only 23 started within 10 seconds on Linux. - The mock URL protocols checked a "stopped" flag and then called their client, so a task cancelled in between was called after it had left its session ("Trying to access a behaviour for a task that in not in the registry", MockURLProtocol.load()). They also called it from a Swift task or a Dispatch thread, while every corelibs URLProtocolClient method reads the session's task registry, two dictionaries without a lock, as the session's work queue changes it ("Bad pointer dereference at 0x10" in URLSession.behaviour(for:)). URLProtocolStop now holds a lock across the check and the call, and on Linux makes each call on the task's work queue, where corelibs makes its own protocols' calls and runs stopLoading(); the queue is internal, so the helper finds it with Mirror. A stress test that sends 1000 requests, 50 at a time, on one session crashed in 8 of 10 runs with the calls made in place, and in none of 10 on the work queue. - The four sign-in tests of "Discovery timeout over HTTP" assumed the server/discover POST reaches the authorizer within the 1-second discovery timeout. On a loaded runner it can come later, the timer abandons the probe, and connect moves on to initialize. The sign-in now lasts until release(); an attempt whose sign-in started after the deadline does not test the timer and is run again with a longer timeout (1, 4, then 12 seconds). With the timer changed to give up instead of waiting for a sign-in, all four fail. They also wait at most 30 seconds for connect, then record the attempt's state and cancel it, instead of holding the suite. - Limits that only stop a hang are raised: nextIncoming() in StatelessGatingTests from 2 to 30 seconds, and the second-response test at HTTPClientTransportTests.swift:2888 from 5 to 30. The 2759 and 2888 failures now print the outcome; 2759 ("fails promptly") keeps its 2 seconds. - testRoundtrip() raced each step against a 10-second Task.sleep of its own, and failed with that sleep's CancellationError on the iOS simulator when a trivial test took 26.7 seconds to finish. The steps now await the client's calls directly, the concurrent ones with async let, and the test's .timeLimit is the only limit. - Every .timeLimit in the suite (59 tests) is 2 minutes instead of 1. These limits only stop a hang, and a stall of the simulator alone has taken 27 seconds of the minute. With these and the next commit, 60 of 60 full test runs passed in a 2-CPU RHEL UBI 9 container (scripts/ci-linux.sh --cpus 2), against 23 of 27 before, with four 30-second freezes. Assisted-by: Claude
…let every test leg finish The Conformance (ubuntu-latest, swift:6.1-noble) job failed in most CI runs of #372 although every conformance leg in it passed. The first leg, conformance-scripts, installs Node with apt, and archive.ubuntu.com and security.ubuntu.com refused connections: `apt-get update` only warned ("Some index files failed to download"), and the install that followed failed with "Unable to locate package curl". The next leg in the same job installed the same packages a few minutes later. apt_install in scripts/ci/deps-linux.sh now tries the update and the install again up to four times, after 15, 30, 45 and 60 seconds, and fails the job after the fifth attempt. On dnf, Node 22 comes from nodejs.org, checked against its published SHA-256 as on apt, when the image's repositories cannot install it. The UBI 9 x86_64 AppStream mirrors listed the nodejs:22 module without its packages ("Unable to find a match: nodejs npm"), which failed the Conformance (swift:6.1-rhel-ubi9) and Interop (ubuntu-latest) jobs before they ran anything; the arm64 mirrors had them. Run in fresh images, the script installs the dnf package on arm64 UBI 9, falls back to nodejs.org on x86_64 UBI 9, and installs from nodejs.org on noble as before. The test matrix in ci.yml also sets fail-fast: false, as the other matrices do. Without it, one Linux leg that failed cancelled the two macOS legs and the other Linux leg, so a single flake hid the results of three platforms. Assisted-by: Claude
260220a to
869ea37
Compare
…ulator Most failures in the CI runs of #372 and #410 came from the tests, not from the SDK. Each cause: - offThreadPool ran blocking work, such as a read() on a pipe, on DispatchQueue.global(). On Linux the Swift global executor runs on libdispatch's global queues, so those reads held the cooperative pool's threads: in about one full run in eight on two CPUs the whole process froze for about 30 seconds (a thread dump showed five workers blocked in read() and one running every async job), and dozens of tests failed on their time limits at once, among them the HTTPClientTransportTests.swift:2759 and :2888 failures. It now runs each work item on a Thread of its own, as do the two streaming mocks that block while they wait. OffThreadPoolTests blocks 24 work items until all have started: with the Dispatch queue only 23 started within 10 seconds on Linux. - The mock URL protocols checked a "stopped" flag and then called their client, so a task cancelled in between was called after it had left its session ("Trying to access a behaviour for a task that in not in the registry", MockURLProtocol.load()). They also called it from a Swift task or a Dispatch thread, while every corelibs URLProtocolClient method reads the session's task registry, two dictionaries without a lock, as the session's work queue changes it ("Bad pointer dereference at 0x10" in URLSession.behaviour(for:)). URLProtocolStop now holds a lock across the check and the call, and on Linux makes each call on the task's work queue, where corelibs makes its own protocols' calls and runs stopLoading(); the queue is internal, so the helper finds it with Mirror. A stress test that sends 1000 requests, 50 at a time, on one session crashed in 8 of 10 runs with the calls made in place, and in none of 10 on the work queue. - The four sign-in tests of "Discovery timeout over HTTP" assumed the server/discover POST reaches the authorizer within the 1-second discovery timeout. On a loaded runner it can come later, the timer abandons the probe, and connect moves on to initialize. The sign-in now lasts until release(); an attempt whose sign-in started after the deadline does not test the timer and is run again with a longer timeout (1, 4, then 12 seconds). With the timer changed to give up instead of waiting for a sign-in, all four fail. They also wait at most 30 seconds for connect, then record the attempt's state and cancel it, instead of holding the suite. - Limits that only stop a hang are raised: nextIncoming() in StatelessGatingTests from 2 to 30 seconds, and the second-response test at HTTPClientTransportTests.swift:2888 from 5 to 30. The 2759 and 2888 failures now print the outcome; 2759 ("fails promptly") keeps its 2 seconds. - testRoundtrip() raced each step against a 10-second Task.sleep of its own, and failed with that sleep's CancellationError on the iOS simulator when a trivial test took 26.7 seconds to finish. The steps now await the client's calls directly, the concurrent ones with async let, and the test's .timeLimit is the only limit. - Every .timeLimit in the suite (59 tests) is 2 minutes instead of 1. These limits only stop a hang, and a stall of the simulator alone has taken 27 seconds of the minute. With these and the next commit, 60 of 60 full test runs passed in a 2-CPU RHEL UBI 9 container (scripts/ci-linux.sh --cpus 2), against 23 of 27 before, with four 30-second freezes. Assisted-by: Claude
|
Review of the diff (AI-assisted, reviewed by @varunkumar before posting). I did not build or run the tests. No blocking issues. There are no public API, wire-format or Should-fix
Nits
|
…ulator Most failures in the CI runs of #372 and #410 came from the tests, not from the SDK. Each cause: - offThreadPool ran blocking work, such as a read() on a pipe, on DispatchQueue.global(). On Linux the Swift global executor runs on libdispatch's global queues, so those reads held the cooperative pool's threads: in about one full run in eight on two CPUs the whole process froze for about 30 seconds (a thread dump showed five workers blocked in read() and one running every async job), and dozens of tests failed on their time limits at once, among them the HTTPClientTransportTests.swift:2759 and :2888 failures. It now runs each work item on a Thread of its own, as do the two streaming mocks that block while they wait. OffThreadPoolTests blocks 24 work items until all have started: with the Dispatch queue only 23 started within 10 seconds on Linux. - The mock URL protocols checked a "stopped" flag and then called their client, so a task cancelled in between was called after it had left its session ("Trying to access a behaviour for a task that in not in the registry", MockURLProtocol.load()). They also called it from a Swift task or a Dispatch thread, while every corelibs URLProtocolClient method reads the session's task registry, two dictionaries without a lock, as the session's work queue changes it ("Bad pointer dereference at 0x10" in URLSession.behaviour(for:)). URLProtocolStop now holds a lock across the check and the call, and on Linux makes each call on the task's work queue, where corelibs makes its own protocols' calls and runs stopLoading(); the queue is internal, so the helper finds it with Mirror. A stress test that sends 1000 requests, 50 at a time, on one session crashed in 8 of 10 runs with the calls made in place, and in none of 10 on the work queue. - The four sign-in tests of "Discovery timeout over HTTP" assumed the server/discover POST reaches the authorizer within the 1-second discovery timeout. On a loaded runner it can come later, the timer abandons the probe, and connect moves on to initialize. The sign-in now lasts until release(); an attempt whose sign-in started after the deadline does not test the timer and is run again with a longer timeout (1, 4, then 12 seconds). With the timer changed to give up instead of waiting for a sign-in, all four fail. They also wait at most 30 seconds for connect, then record the attempt's state and cancel it, instead of holding the suite. - Limits that only stop a hang are raised: nextIncoming() in StatelessGatingTests from 2 to 30 seconds, and the second-response test at HTTPClientTransportTests.swift:2888 from 5 to 30. The 2759 and 2888 failures now print the outcome; 2759 ("fails promptly") keeps its 2 seconds. - testRoundtrip() raced each step against a 10-second Task.sleep of its own, and failed with that sleep's CancellationError on the iOS simulator when a trivial test took 26.7 seconds to finish. The steps now await the client's calls directly, the concurrent ones with async let, and the test's .timeLimit is the only limit. - Every .timeLimit in the suite (59 tests) is 2 minutes instead of 1. These limits only stop a hang, and a stall of the simulator alone has taken 27 seconds of the minute. With these and the next commit, 60 of 60 full test runs passed in a 2-CPU RHEL UBI 9 container (scripts/ci-linux.sh --cpus 2), against 23 of 27 before, with four 30-second freezes. Assisted-by: Claude
…reaming
Both crash the process on swift-corelibs-foundation (release/6.1) when
a task is cancelled as it finishes or while it starts.
OAuthAuthorizationCodeFlow, without an OAuthAuthorizationDelegate,
crashed with
SWIFT TASK CONTINUATION MISUSE: data(for:delegate:) tried to resume
its continuation more than once, throwing ... Code=-999 "cancelled"
... https://localhost:8080/oauth/authorize?response_type=code...
perform sends the authorization request on its own no-redirect session
and ended with `defer { noRedirectSession.invalidateAndCancel() }`. A
task's success path calls the completion handler, which resumes the
data(for:) continuation, and only then sets the task to .completed
(_ProtocolClient.urlProtocolDidFinishLoading). The resumed caller can
run the defer in between: cancel() still sees .running, and its failure
path completes the task a second time. The request has always ended
when the defer runs, so the session is now invalidated with
finishTasksAndInvalidate(), as the guarded session of
URLSession.oauthData(for:redirects:validator:) already is. Cancelling
the caller still cancels the request through data(for:)'s own
cancellation handler. A stress run (40,000 authorizations, 12 busy
threads on 8 CPUs, Swift 6.1 on Ubuntu 24.04) crashed in 2 of 2 runs
before the change and in none of 6 after it; with fewer busy threads it
did not crash in 28 runs, so no test in the suite can show it reliably.
HTTPClientTransport crashed with
FoundationNetworking/TaskRegistry.swift:118: Fatal error: Trying to
access a behaviour for a task that in not in the registry
URLSession.behaviour(for:)
_ProtocolClient.urlProtocol(task:didFailWithError:)
closure #1 in closure #2 in closure #1 in URLSessionTask.cancel()
StreamingSession, which streams HTTPClientTransport's responses and
ServerCard.fetch's on Linux, took the configuration as given, and
URLSessionConfiguration.ephemeral has an in-memory URLCache. With a
cache, corelibs first looks each request up in it, and a task cancelled
during that lookup can be failed after it has left its session's
registry. The session now copies the configuration and sets urlCache to
nil. MCP requests are never answered from a cache, and a server card is
revalidated with its ETag through fetch(from:ifNoneMatch:session:); on
Linux ServerCard.fetch therefore no longer reads the session's cache.
Apple platforms do not use this session. In 60 full test runs on two
CPUs, with the test fixes of the previous commit, the crash happened 11
times without the change and never in 60 runs with it.
The short-lived OAuth sessions that
URLSession.oauthData(for:redirects:validator:) and
OAuthAuthorizationCodeFlow.perform make on Linux also took the caller's
configuration, cache included, and data(for:) cancels their task when
the calling task is cancelled, so they were open to the same trap. They
now use the same copy without urlCache
(URLSessionConfiguration.withoutURLCache()); OAuth responses are not
meant to be served from a cache anyway.
The interleaving cannot be forced from a test, so the regression tests
check that each of these sessions has no cache: the streaming session
directly, and the OAuth sessions through a URLProtocol that reads the
session of its task. They fail without the change, and the streaming
test also checks that the caller's configuration keeps its own cache.
Assisted-by: Claude
869ea37 to
f69fc9a
Compare
|
Thanks @varun06, all four are addressed and folded into the existing three commits. Should-fix
Nits
Retested on the new head ( |
Motivation and Context
The CI runs of #372 (
7e2dabc2, which includes #408) still fail. This fixes nine causes in three commits:fixfor the two library crashes (2 and 8),testfor the test fixes (1, 4–7 and 9), andcifor the CI change (3). The fourth showed up in this PR's own first CI run. The last four are the Linux flakes the first version of this PR listed as not addressed: theTaskRegistrytrap and theHTTPClientTransportTests.swift:2759/:2888time-outs.1. A 2-second wait in the stateless exchange tests (test)
Two tests in
StatelessTransportExchangeTestsfailed on RHEL UBI 9 (push run) and Ubuntu 24.04 (PR run):nextIncoming()records "No message reached the server" after 2 seconds. Both tests recorded it in the same millisecond, while unrelated tests around them took up to 8.7 seconds. Both then finished with no other issue, so the message did arrive, just after the limit. The limit is now 30 seconds, likewaitUntil,resultInTimeandexchangein the same file.2.
SWIFT TASK CONTINUATION MISUSEinOAuthAuthorizationCodeFlowon Linux (library)An Ubuntu 24.04 test run (
0d80a17d, before #408) crashed with:This is a different problem from the leaked continuation #408 fixed. Without a delegate,
performsends the authorization request on its own session and then cancels that session:In swift-corelibs-foundation (
release/6.1,_ProtocolClient.urlProtocolDidFinishLoading), the success path calls the completion handler, which resumes thedata(for:)continuation, and only then sets the task to.completed. The resumed caller can run thedeferin that gap.cancel()still sees.running, and its failure path completes the task a second time with -999, which traps. Any Linux app that signs in without anOAuthAuthorizationDelegatecan hit this.When the
deferruns, the request has always ended, so there is nothing to cancel.finishTasksAndInvalidate()is what the guarded session inURLSession.oauthData(for:redirects:validator:)already uses. Cancelling the caller still cancels the request, throughdata(for:)'s own cancellation handler.3. apt mirror outages, and one Linux flake cancelling three platforms (CI)
Conformance (ubuntu-latest, swift:6.1-noble)job failed in most runs even though every conformance leg passed. Its first leg,conformance-scripts, installs Node with apt whilearchive.ubuntu.comandsecurity.ubuntu.comwere refusing connections.apt-get updateonly warned, and the install then failed withUnable to locate package curl.apt_installinscripts/ci/deps-linux.shnow retries the update and the install up to four times (after 15, 30, 45 and 60 s) before failing.testmatrix now setsfail-fast: false, as the other matrices do. Before, one failing Linux leg cancelled both macOS legs and the other Linux leg.nodejs:22module without its packages (Unable to find a match: nodejs npm), which failed the Conformance (RHEL UBI 9) and Interop (ubuntu-latest) jobs before they ran anything; the arm64 mirrors had them. In fresh images, the script installs the dnf package on arm64 UBI 9, falls back to nodejs.org on x86_64 UBI 9, and installs from nodejs.org on noble as before.Not addressed: the
Linux Static SDK Buildjob failed once inside the pinned upstreaminstall-and-build-with-sdk.sh, after 24 minutes ofapt updateagainst the same unreachable mirrors.4. The discovery timeout tests assume the sign-in starts within 1 second (test)
This PR's first CI run failed on RHEL UBI 9 with:
The four sign-in tests in "Discovery timeout over HTTP" set
discoveryTimeoutto 1 second. They assume theserver/discoverPOST reaches the authorizer before that. When it doesn't, the discovery timer finds no authorization in progress, abandons the probe, andconnectmoves on toinitialize. The same thing failed "Signing in does not count against the discovery timeout" twice on #372 (it connected at 2025-11-25 instead of 2026-07-28), and the cancel test once on the iOS simulator.A sign-in that starts before
start + timeoutmust belong toserver/discover, becauseinitializeis sent only after the timer fires.5.
offThreadPoolfroze the whole Linux test process for 30 seconds (test)In about one full run in eight on 2 CPUs, some 540 tests finished within the same second, about 37 s in, and dozens failed on their time limits at once: the discovery timeout sign-in tests,
TaskTests.swift:1079, the stateless client tests and others. A thread dump taken during a freeze showed eight threads:On Linux the Swift global executor runs on libdispatch's global queues, so
DispatchQueue.global()doesn't get around the cooperative pool: a blockedread()there holds one of the pool's threads all the same.6. The mock URL protocols called their client off corelibs' work queue (test)
Two crashes came from the mocks, not the SDK:
URLProtocolClientmethod reads the session's task registry, two dictionaries without a lock, on the calling thread. Meanwhile the session's work queue adds and removes tasks. corelibs' own protocols call their client from the task's work queue; the mocks called it from a Swift task or a Dispatch thread.The work queue is internal to corelibs, so the test helper finds it with
Mirror, and stops the test run if it's gone. The streaming mocks also run on their own thread now, as in 5. The failures atHTTPClientTransportTests.swift:2759and:2888print the outcome. The:2888test checks that a second response fails the request, and it now waits 30 s instead of 5: its limit only stops a hang.:2759("fails promptly") keeps its 2 s.7. The sign-in tests waited for
connectwithout a limit (test)A
connectthat never returned held the suite until CI stopped it. Now each waits at most 30 s, then records the attempt's state (sign-ins started and ended, requests waiting for authorization, methods authorized) and cancels. The stalls this showed were the freeze in 5; none remain.8.
TaskRegistrytrap from the SDK's own cancel on Linux (library)With 5 and 6 fixed, this remained, with no mock on the stack:
StreamingSession, which streamsHTTPClientTransport's responses andServerCard.fetch's on swift-corelibs-foundation, used the configuration as given, and.ephemeralhas an in-memoryURLCache. With a cache, corelibs first looks each request up in it, and a task cancelled during that lookup can be failed after the session has removed it.MCP requests are never answered from a cache. A server card revalidates with its ETag through
fetch(from:ifNoneMatch:session:), so on LinuxServerCard.fetchno longer reads the session's cache. Apple platforms don't use this session. The two short-lived OAuth sessions are built the same way, anddata(for:)cancels their task when the caller is cancelled, so they had the same exposure (pointed out in review). OAuth responses are not meant to come from a cache either. There's a CHANGELOG entry, anddesign/linux.mddescribes both.9.
testRoundtripraced each step against a sleep, and every time limit was 1 minute (test)This PR's CI run on
e4e35142failed on the iOS simulator:The error was the test's own. Each step raced its requests against a
Task.sleep(for: .seconds(10))and threw when the sleep won. The simulator was slow to start in that run, and a trivial test took 26.7 s. On the rerun it took 17.0 s, andtestRoundtrippassed after 20.7 s.The steps now await the client directly, and the test's
.timeLimitis the only limit. Every.timeLimitin the suite (59 tests) is now 2 minutes instead of 1. These limits only stop a hang, and a simulator stall alone has taken 27 s of the minute.How Has This Been Tested?
Every CI job, run locally on
f69fc9a6All 17 jobs in
scripts/ci/jobspass on each host:scripts/ci/run-jobs.shon macOS, andscripts/ci-linux.sh allin each Linux image. The Apple simulator and Catalyst runs usescripts/ci/apple-platform.sh. The whole set was run again after the review changes.withKnownIssuein "A result with a null id gets -32600" inRequestLifecycleTests: 2 on Apple platforms and 3 on Linux. The HelloClient example runs against HelloServer on macOS and on both Linux images. The two Linux-only OAuth cache tests added in review account for 1575 → 1577.docsjob passes everywhere: DocC with--warnings-as-errors, doc coverage, andweave.swift --check.fuzzran its 5 targets for 60 s each on both Linux images without a crash; it skips on macOS, which has no libFuzzer.api-breakagepasses, but there is no 1.x release tag yet to compare against.f69fc9a6.Conformance. The results are identical on all three hosts, with 0 failures and 0 warnings:
--spec-version 2025-11-25--spec-version 2026-07-28--requirements 2025-11-25--requirements 2026-07-28The unscored scenarios (3 and 7 at 2025-11-25, 13 and 7 at 2026-07-28) all pass too.
conformance-scripts(the harness's own tests) passes.Interop.
scripts/run-interop.sh --checkruns Swift against the Go, Python and TypeScript SDKs:On each host every pair matches the committed
interop/RESULTS.md, with the same pass, fail and skip counts. The failures that file records are all on Go or TypeScript servers; none is on a Swift server.The fixes
Full test runs in a 2-CPU RHEL UBI 9 container (
scripts/ci-linux.sh --cpus 2), counting crashes and frozen runs:TaskRegistrytrapsRegression tests, before and after:
OffThreadPoolTestsblocks 24 work items until all have started. With the Dispatch queue, only 23 started within 10 s on Linux; now all do.URLProtocolStopTestsstress test sends 1000 requests, 50 at a time, on one session, to a protocol that answers from its own thread. With the calls made in place, it crashed with the segfault above in 8 of 10 runs; now in none of 10.URLCacheProbe, aURLProtocolthat reads the session of its task. All three fail without the change.Crash in 2, before and after. A throwaway stress test, not committed, runs 40,000 delegate-less
performcalls against aURLProtocolthat answers 302 from aTask, with 12 busy threads on 8 CPUs, on Swift 6.1 / Ubuntu 24.04 (arm64):The stateless exchange suites pass on macOS. Their failure needs an overloaded runner, so the evidence for fix 1 is the CI logs.
apt_installwas run with a stubapt-get: it succeeded when the stub succeeded on attempt 3, and failed with exit 1 after 5 attempts when the stub always failed. Building the noble CI image with the new script installs Node, Go, uv and ps as before.Discovery timeout tests (4), before and after, in the same 2-CPU container:
Breaking Changes
None. No public API changes.
OAuthAuthorizationCodeFlowonly changes how it releases its private session.HTTPClientTransportandServerCard.fetchignores the configuration'sURLCache. So a server card fetched on Linux is no longer answered from that cache; ETag revalidation is unchanged.URLCache. The newURLSessionConfiguration.withoutURLCache()is internal.Types of changes
AI Assistance
Drafted with an AI coding agent (Claude) at the author's request, for human review before merge.