mirror of
https://github.com/apache/lucene.git
synced 2025-03-01 05:49:33 +00:00
LUCENE-10168: Only test N-2 codecs on nightly runs.
In order for tests to keep running fast, this annotates all tests of N-2 codecs with `@Nightly`. To keep good coverage of releases, the smoke tester is now configured to run nightly tests.
This commit is contained in:
parent
170137129a
commit
3f634e2ab9
@ -1129,6 +1129,12 @@ def smokeTest(java, baseURL, gitRevision, version, tmpDir, isSigned, local_keys,
|
||||
# disable flakey tests for smoke-tester runs:
|
||||
testArgs = '-Dtests.badapples=false %s' % testArgs
|
||||
|
||||
# Tests annotated @Nightly are more resource-intensive but often cover
|
||||
# important code paths. They're disabled by default to preserve a good
|
||||
# developer experience, but we enable them for smoke tests where we want good
|
||||
# coverage.
|
||||
testArgs = '-Dtests.nigthly=true %s' % testArgs
|
||||
|
||||
if FORCE_CLEAN:
|
||||
if os.path.exists(tmpDir):
|
||||
raise RuntimeError('temp dir %s exists; please remove first' % tmpDir)
|
||||
|
@ -66,9 +66,11 @@ import org.apache.lucene.store.ByteBuffersDataOutput;
|
||||
import org.apache.lucene.store.Directory;
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.BytesRefBuilder;
|
||||
import org.apache.lucene.util.LuceneTestCase.Nightly;
|
||||
import org.apache.lucene.util.TestUtil;
|
||||
|
||||
/** Tests Lucene70DocValuesFormat */
|
||||
@Nightly // N-2 formats are only tested on nightly runs
|
||||
public class TestLucene70DocValuesFormat extends BaseCompressingDocValuesFormatTestCase {
|
||||
private final Codec codec = TestUtil.alwaysDocValuesFormat(new Lucene70DocValuesFormat());
|
||||
|
||||
|
@ -18,8 +18,10 @@ package org.apache.lucene.backward_codecs.lucene70;
|
||||
|
||||
import org.apache.lucene.codecs.Codec;
|
||||
import org.apache.lucene.index.BaseNormsFormatTestCase;
|
||||
import org.apache.lucene.util.LuceneTestCase.Nightly;
|
||||
|
||||
/** Tests Lucene70NormsFormat */
|
||||
@Nightly // N-2 formats are only tested on nightly runs
|
||||
public class TestLucene70NormsFormat extends BaseNormsFormatTestCase {
|
||||
@Override
|
||||
protected Codec getCodec() {
|
||||
|
@ -1037,6 +1037,7 @@ public class TestBackwardsCompatibility extends LuceneTestCase {
|
||||
searchIndex(oldIndexDirs.get(name), name, Version.MIN_SUPPORTED_MAJOR);
|
||||
}
|
||||
|
||||
if (TEST_NIGHTLY) {
|
||||
for (String name : binarySupportedNames) {
|
||||
Path oldIndexDir = createTempDir(name);
|
||||
TestUtil.unzip(getDataInputStream("unsupported." + name + ".zip"), oldIndexDir);
|
||||
@ -1045,6 +1046,7 @@ public class TestBackwardsCompatibility extends LuceneTestCase {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void testIndexOldIndexNoAdds() throws IOException {
|
||||
for (String name : oldNames) {
|
||||
@ -2096,6 +2098,7 @@ public class TestBackwardsCompatibility extends LuceneTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
@Nightly
|
||||
public void testReadNMinusTwoCommit() throws IOException {
|
||||
for (String name : binarySupportedNames) {
|
||||
Path oldIndexDir = createTempDir(name);
|
||||
|
@ -165,6 +165,7 @@ public abstract class BaseCompoundFormatTestCase extends BaseIndexFileFormatTest
|
||||
}
|
||||
|
||||
// LUCENE-5724: actually test we play nice with NRTCachingDir and massive file
|
||||
@Slow
|
||||
public void testLargeCFS() throws IOException {
|
||||
final String testfile = "_123.test";
|
||||
IOContext context = new IOContext(new FlushInfo(0, 512 * 1024 * 1024));
|
||||
|
Loading…
x
Reference in New Issue
Block a user