Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-14375

Postcommit Java Wordcount Dataflow failure since upgraded Gradle to 7.4

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • 2.39.0
    • 2.39.0
    • test-failures
    • None

    Description

      Github Action of Java Wordcount Dataflow failure since this update:

      FAILURE: Build failed with an exception.
      
      * Where:
      Build file '/home/runner/work/beam/beam/runners/google-cloud-dataflow-java/build.gradle' line: 47
      
      * What went wrong:
      A problem occurred evaluating project ':runners:google-cloud-dataflow-java'.
      > Circular referencing during evaluation for project ':examples:java'.}}
      

      By setting manual print statements, found the error happens when evaluating :runnders:google-cloud-dataflow-java at

      runners/google-cloud-dataflow-java/build.gradle L47:
      evaluationDependsOn(":examples:java")
      examples/java/build.gradle L32:
      enableJavaPerformanceTesting()
      beam/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy::BeamModulePlugin.apply() L1790:
      project.evaluationDependsOn(":runners:google-cloud-dataflow-java:worker:legacy-worker")
      

      circular happens here.

      It seems that Gradle somehow detects this as a circular dependency, which should not been so. Probably a Gradle bug.

      Attachments

        Issue Links

          Activity

            People

              yihu Yi Hu
              yihu Yi Hu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m