Skip to content

Commit

Permalink
chore: Reenable cquery e2e tests (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
honnix authored Oct 11, 2024
1 parent 482214d commit 3fffd5f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 deletions.
5 changes: 0 additions & 5 deletions cli/src/test/kotlin/com/bazel_diff/e2e/E2ETest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.bazel_diff.e2e
import assertk.assertThat
import assertk.assertions.isEqualTo
import com.bazel_diff.cli.BazelDiff
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.rules.TemporaryFolder
Expand Down Expand Up @@ -188,8 +187,6 @@ class E2ETest {
testFineGrainedHashBzlMod(listOf("--useCquery"), "@rules_jvm_external~~maven~maven", "/fixture/fine-grained-hash-bzlmod-cquery-test-impacted-targets.txt")
}

// TODO: re-enable the test after https://github.com/bazelbuild/bazel/issues/21010 is fixed
@Ignore("cquery mode is broken with Bazel 7 because --transition=lite is crashes due to https://github.com/bazelbuild/bazel/issues/21010")
@Test
fun testUseCqueryWithExternalDependencyChange() {
// The difference between these two snapshots is simply upgrading the Guava version for Android platform.
Expand Down Expand Up @@ -292,8 +289,6 @@ class E2ETest {
assertThat(actual).isEqualTo(expected)
}

// TODO: re-enable the test after https://github.com/bazelbuild/bazel/issues/21010 is fixed
@Ignore("cquery mode is broken with Bazel 7 because --transition=lite is crashes due to https://github.com/bazelbuild/bazel/issues/21010")
@Test
fun testUseCqueryWithAndroidCodeChange() {
// The difference between these two snapshots is simply making a code change to Android-only source code.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
//src/main/java/com/integration:android
//src/main/java/com/integration:guava-user
@@//src/main/java/com/integration:android
@@//src/main/java/com/integration:android_deployjars_internal_rule
@@//src/main/java/com/integration:guava-user
Binary file modified cli/src/test/resources/fixture/cquery-test-android-code-change.zip
Binary file not shown.
Binary file modified cli/src/test/resources/fixture/cquery-test-base.zip
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
//external:bazel_diff_maven_android
//src/main/java/com/integration:android
//src/main/java/com/integration:guava-user
@bazel_diff_maven_android//:com_google_errorprone_error_prone_annotations
@bazel_diff_maven_android//:com_google_guava_guava
@bazel_diff_maven_android//:com_google_j2objc_j2objc_annotations
@bazel_diff_maven_android//:org_checkerframework_checker_qual
@@//src/main/java/com/integration:android
@@//src/main/java/com/integration:android_deployjars_internal_rule
@@//src/main/java/com/integration:guava-user
@@bazel_diff_maven_android//:com_google_errorprone_error_prone_annotations
@@bazel_diff_maven_android//:com_google_guava_guava
@@bazel_diff_maven_android//:com_google_j2objc_j2objc_annotations
@@bazel_diff_maven_android//:org_checkerframework_checker_qual
Binary file modified cli/src/test/resources/fixture/cquery-test-guava-upgrade.zip
Binary file not shown.

0 comments on commit 3fffd5f

Please sign in to comment.