Skip to content

Commit b6d365b

Browse files
Fix CI failures
- Updated JavaAgenticWayProfileTest to expect 466 rules instead of 465 to account for newly added S8911 rule - Added autoscan test baseline for S8911 and updated rulesNotReporting count from 19 to 20 - Removed activateLicense() call from AutoScanTest that was causing Windows CI failure
1 parent f20a9ac commit b6d365b

8 files changed

Lines changed: 16 additions & 3 deletions

File tree

its/autoscan/src/test/java/org/sonar/java/it/AutoScanTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ public class AutoScanTest {
6464
@ClassRule
6565
public static OrchestratorRule orchestrator = OrchestratorRule.builderEnv()
6666
.setEdition(com.sonar.orchestrator.container.Edition.ENTERPRISE_LW)
67-
.activateLicense()
6867
.useDefaultAdminCredentialsForBuilds(true)
6968
.setSonarVersion(System.getProperty("sonar.runtimeVersion", "LATEST_RELEASE"))
7069
.addPlugin(FileLocation.of(TestClasspathUtils.findModuleJarPath("../../sonar-java-plugin").toFile()))
@@ -199,7 +198,7 @@ public void javaCheckTestSources() throws Exception {
199198
softly.assertThat(newDiffs).containsExactlyInAnyOrderElementsOf(knownDiffs.values());
200199
softly.assertThat(newTotal).isEqualTo(knownTotal);
201200
softly.assertThat(rulesCausingFPs).hasSize(10);
202-
softly.assertThat(rulesNotReporting).hasSize(19);
201+
softly.assertThat(rulesNotReporting).hasSize(20);
203202

204203
/**
205204
* 4. Check total number of differences (FPs + FNs)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"ruleKey": "S8911",
3+
"hasTruePositives": false,
4+
"falseNegatives": 0,
5+
"falsePositives": 0
6+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Manifest-Version: 1.0
2+
Created-By: Maven JAR Plugin 3.4.2
3+
Build-Jdk-Spec: 21
4+
Build-Time: _
5+
Implementation-Build: 40c53e90d0fe1a2f4ef4692276bbf586ca79ed64
6+
Implementation-Version: 8.34.0-SNAPSHOT
7+
Version: 8.34.0-SNAPSHOT
8+
464 Bytes
Binary file not shown.
14.5 KB
Binary file not shown.
47.8 KB
Binary file not shown.
211 Bytes
Binary file not shown.

sonar-java-plugin/src/test/java/org/sonar/plugins/java/JavaAgenticWayProfileTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void profile_is_registered_as_expected() {
5353
BuiltInQualityProfilesDefinition.BuiltInQualityProfile actualProfile = profilesPerLanguages.get("java").get("Sonar agentic AI");
5454
assertThat(actualProfile.isDefault()).isFalse();
5555
assertThat(actualProfile.rules())
56-
.hasSize(465)
56+
.hasSize(466)
5757
.extracting(BuiltInQualityProfilesDefinition.BuiltInActiveRule::ruleKey)
5858
.doesNotContainAnyElementsOf(List.of(
5959
"S101",

0 commit comments

Comments
 (0)