* [PATCH 2/3] t/extsearch: use indexlevel=basic in inboxes
2020-12-09 9:25 5% [PATCH 0/3] extindex: another fix and some cleanups Eric Wong
@ 2020-12-09 9:25 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2020-12-09 9:25 UTC (permalink / raw)
To: meta
There's no need for per-inbox Xapian DBs when using extindex, so
reduce wear on the poor systems this test runs on.
---
t/extsearch.t | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/t/extsearch.t b/t/extsearch.t
index 97786b21..96512227 100644
--- a/t/extsearch.t
+++ b/t/extsearch.t
@@ -25,8 +25,8 @@ EOF
close $fh or BAIL_OUT $!;
my $v2addr = 'v2test@example.com';
my $v1addr = 'v1test@example.com';
-ok(run_script([qw(-init -V2 v2test --newsgroup v2.example), "$home/v2test",
- 'http://example.com/v2test', $v2addr ]), 'v2test init');
+ok(run_script([qw(-init -Lbasic -V2 v2test --newsgroup v2.example),
+ "$home/v2test", 'http://example.com/v2test', $v2addr ]), 'v2test init');
my $env = { ORIGINAL_RECIPIENT => $v2addr };
my $eml = eml_load('t/utf8.eml');
@@ -50,7 +50,7 @@ seek($fh, 0, SEEK_SET) or BAIL_OUT $!;
$env = { ORIGINAL_RECIPIENT => $v1addr };
run_script(['-mda', '--no-precheck'], $env, { 0 => $fh }) or BAIL_OUT '-mda';
-run_script(['-index', "$home/v1test"]) or BAIL_OUT "index $?";
+run_script([qw(-index -Lbasic), "$home/v1test"]) or BAIL_OUT "index $?";
ok(run_script([qw(-extindex --all), "$home/extindex"]), 'extindex init');
{
^ permalink raw reply related [relevance 7%]
* [PATCH 0/3] extindex: another fix and some cleanups
@ 2020-12-09 9:25 5% Eric Wong
2020-12-09 9:25 7% ` [PATCH 2/3] t/extsearch: use indexlevel=basic in inboxes Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2020-12-09 9:25 UTC (permalink / raw)
To: meta
3/3 avoids potential for user-error by enforcing -index
before -extindex.
And some cleanups found while working on --reindex.
--reindex is still running and not OOM-ing, at least...
Eric Wong (3):
searchidx: all indexers check for bad blobs
t/extsearch: use indexlevel=basic in inboxes
extsearchidx: enforce -index before -extindex
lib/PublicInbox/ExtSearchIdx.pm | 20 +++++------
lib/PublicInbox/SearchIdx.pm | 18 ++++++++--
lib/PublicInbox/V2Writable.pm | 25 +++++++++++---
t/extsearch.t | 60 +++++++++++++++++++++++++++++++--
4 files changed, 100 insertions(+), 23 deletions(-)
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2020-12-09 9:25 5% [PATCH 0/3] extindex: another fix and some cleanups Eric Wong
2020-12-09 9:25 7% ` [PATCH 2/3] t/extsearch: use indexlevel=basic in inboxes Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).