Skip to content

Commit be08db8

Browse files
SONARPY-1222 Disable cache to prepare for SQ 9.8 release (#1310)
1 parent 38f8fae commit be08db8

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

its/ruling/src/test/java/org/sonar/python/it/PythonPrAnalysisTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.apache.commons.io.FileUtils;
3535
import org.junit.BeforeClass;
3636
import org.junit.ClassRule;
37+
import org.junit.Ignore;
3738
import org.junit.Rule;
3839
import org.junit.Test;
3940
import org.junit.rules.TemporaryFolder;
@@ -95,6 +96,7 @@ public static Collection<Object[]> data() {
9596
}
9697

9798
@Test
99+
@Ignore
98100
public void pr_analysis_logs() throws IOException {
99101
File tempDirectory = temporaryFolder.newFolder();
100102
File litsDifferencesFile = FileLocation.of("target/differences").getFile();
@@ -113,6 +115,7 @@ public void pr_analysis_logs() throws IOException {
113115
}
114116

115117
@Test
118+
@Ignore
116119
public void pr_analysis_issues() throws IOException {
117120
File tempDirectory = temporaryFolder.newFolder();
118121
File litsDifferencesFile = FileLocation.of("target/differences").getFile();

python-frontend/src/main/java/org/sonar/python/caching/CacheContextImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public PythonWriteCache getWriteCache() {
5555

5656
public static CacheContextImpl of(SensorContext context) {
5757
if (!context.runtime().getProduct().equals(SonarProduct.SONARLINT) && context.runtime().getApiVersion().isGreaterThanOrEqual(Version.create(9, 7))) {
58-
return new CacheContextImpl(context.isCacheEnabled(), new PythonWriteCacheImpl(context.nextCache()), new PythonReadCacheImpl(context.previousCache()));
58+
return new CacheContextImpl(false, new PythonWriteCacheImpl(context.nextCache()), new PythonReadCacheImpl(context.previousCache()));
5959
}
6060
return new CacheContextImpl(false, new DummyCache(), new DummyCache());
6161
}

python-frontend/src/test/java/org/sonar/python/caching/CacheContextImplTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*/
2020
package org.sonar.python.caching;
2121

22+
import org.junit.Ignore;
2223
import org.junit.Test;
2324
import org.sonar.api.SonarProduct;
2425
import org.sonar.api.SonarRuntime;
@@ -36,6 +37,7 @@ public class CacheContextImplTest {
3637
private static final Version VERSION_WITHOUT_CACHING = Version.create(9, 6);
3738

3839
@Test
40+
@Ignore
3941
public void cache_context_of_enabled_cache() {
4042
SensorContext sensorContext = sensorContext(SonarProduct.SONARQUBE, VERSION_WITH_CACHING, true);
4143

sonar-python-plugin/src/test/java/org/sonar/plugins/python/PythonSensorTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import java.util.function.Function;
3636
import javax.annotation.Nullable;
3737
import org.junit.Before;
38+
import org.junit.Ignore;
3839
import org.junit.Test;
3940
import org.mockito.Mockito;
4041
import org.sonar.api.SonarProduct;
@@ -657,6 +658,7 @@ public void saving_performance_measure_empty_path() throws IOException {
657658

658659

659660
@Test
661+
@Ignore
660662
public void test_using_cache() {
661663
activeRules = new ActiveRulesBuilder()
662664
.addRule(new NewActiveRule.Builder()
@@ -689,6 +691,7 @@ public void test_using_cache() {
689691
}
690692

691693
@Test
694+
@Ignore
692695
public void test_scan_without_parsing_test_file() {
693696
activeRules = new ActiveRulesBuilder()
694697
.addRule(new NewActiveRule.Builder()

0 commit comments

Comments
 (0)