0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-05 06:05:54 -05:00
denoland-deno/cli/tests/integration
Matt Mastracci 86c3c4f343
feat(core): initialize SQLite off-main-thread (#18401)
This gets SQLite off the flamegraph and reduces initialization time by
somewhere between 0.2ms and 0.5ms. In addition, I took the opportunity
to move all the cache management code to a single place and reduce
duplication. While the PR has a net gain of lines, much of that is just
being a bit more deliberate with how we're recovering from errors.

The existing caches had various policies for dealing with cache
corruption, so I've unified them and tried to isolate the decisions we
make for recovery in a single place (see `open_connection` in
`CacheDB`). The policy I chose was:

 1. Retry twice to open on-disk caches
 2. If that fails, try to delete the file and recreate it on-disk
3. If we fail to delete the file or re-create a new cache, use a
fallback strategy that can be chosen per-cache: InMemory (temporary
cache for the process run), BlackHole (ignore writes, return empty
reads), or Error (fail on every operation).

The caches all use the same general code now, and share the cache
failure recovery policy.

In addition, it cleans up a TODO in the `NodeAnalysisCache`.
2023-03-27 22:01:52 +00:00
..
bench_tests.rs feat(bench): add --no-run flag (#18433) 2023-03-26 14:55:58 +00:00
bundle_tests.rs feat(cli): --ext parameter for run, compile, and bundle (#17172) 2023-03-22 10:15:53 -04:00
cache_tests.rs feat(npm): support bare specifiers from package.json in more subcommands and language server (#17891) 2023-02-23 10:58:10 -05:00
cert_tests.rs fix(lsp): avoid calling client while holding lock (#18197) 2023-03-15 14:34:23 +00:00
check_tests.rs refactor(core): pass cwd explicitly to resolve_path (#18092) 2023-03-13 18:50:23 +01:00
compile_tests.rs feat(cli): --ext parameter for run, compile, and bundle (#17172) 2023-03-22 10:15:53 -04:00
coverage_tests.rs chore(cli/tests): use test builder in more integration tests (#18031) 2023-03-13 09:40:46 -04:00
doc_tests.rs fix(info/doc): add missing --no-lock and --lock flags (#18166) 2023-03-13 17:04:00 -04:00
eval_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
flags_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
fmt_tests.rs chore(cli/tests): use test builder in more integration tests (#18031) 2023-03-13 09:40:46 -04:00
info_tests.rs fix(info/doc): add missing --no-lock and --lock flags (#18166) 2023-03-13 17:04:00 -04:00
init_tests.rs chore(cli/tests): use test builder in more integration tests (#18031) 2023-03-13 09:40:46 -04:00
inspector_tests.rs feat(core): initialize SQLite off-main-thread (#18401) 2023-03-27 22:01:52 +00:00
install_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
js_unit_tests.rs chore(cli): ensure no signal on test exit (#18354) 2023-03-22 18:00:07 +00:00
lint_tests.rs chore: test builders for integration tests (#17965) 2023-02-27 16:52:49 -04:00
lsp_tests.rs fix(lsp): ensure enablePaths works when clients do not provide a trailing slash for workspace dir (#18373) 2023-03-23 01:58:38 +00:00
macos_tests.rs test: disable macos_shared_libraries test (#18342) 2023-03-21 18:23:35 -06:00
mod.rs chore(cli/tests): move macos_shared_libraries test to macos_test.rs (#18268) 2023-03-18 21:08:51 +05:30
node_compat_tests.rs test: add node compat tests (#17805) 2023-02-17 23:58:52 +09:00
node_unit_tests.rs test(ext/node): add tls_test (#17871) 2023-02-23 12:27:29 +09:00
npm_tests.rs fix(npm): show a progress bar when initializing the node_modules folder (#18136) 2023-03-13 18:18:29 +00:00
repl_tests.rs fix(repl): Hide indexable properties in tab completion (#18141) 2023-03-16 19:46:50 +00:00
run_tests.rs chore(tests): enable single_compile_with_reload again (#18196) 2023-03-25 09:59:39 +00:00
task_tests.rs feat(task): support scripts in package.json (#17887) 2023-02-22 22:45:35 -05:00
test_tests.rs feat(test): print pending tests on sigint (#18246) 2023-03-25 21:32:11 +02:00
upgrade_tests.rs chore: use rustfmt imports_granularity option (#17421) 2023-01-14 23:18:58 -05:00
vendor_tests.rs refactor: make resolver required (#17783) 2023-02-15 11:30:54 -05:00
watcher_tests.rs feat(core): initialize SQLite off-main-thread (#18401) 2023-03-27 22:01:52 +00:00
worker_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00