Skip to content

Add test using v1 lint config with inter-module dependencies that must run on Buf 1.31.0 #299

Add test using v1 lint config with inter-module dependencies that must run on Buf 1.31.0

Add test using v1 lint config with inter-module dependencies that must run on Buf 1.31.0 #299

GitHub Actions / Test Results (Ubuntu) failed Sep 20, 2024 in 0s

1 fail, 217 pass in 3m 36s

 22 files   22 suites   3m 36s ⏱️
218 tests 217 ✅ 0 💤 1 ❌
242 runs  241 ✅ 0 💤 1 ❌

Results for commit 115c9df.

Annotations

Check warning on line 0 in build.buf.gradle.LintWithProtobufGradleTest

See this annotation in the file changed.

@github-actions github-actions / Test Results (Ubuntu)

lint a file with an implementation dependency and a lint config with the protobuf-gradle-plugin() (build.buf.gradle.LintWithProtobufGradleTest) failed

build/test-results/test/TEST-build.buf.gradle.LintWithProtobufGradleTest.xml [took 0s]
Raw output
value of:
    getOutput()
expected to contain:
    Enum zero value name "BROKEN_ENUM_NONSPECIFIED" should be suffixed with "_UNSPECIFIED"
but was:
    Calculating task graph as no cached configuration is available for tasks: :check
    > Task :extractTestProto
    > Task :extractProto
    > Task :processTestResources NO-SOURCE
    > Task :processResources
    > Task :extractIncludeTestProto
    > Task :extractIncludeProto
    > Task :generateTestProto NO-SOURCE
    > Task :writeWorkspaceYaml
    > Task :createSymLinksToModules
    > Task :generateProto
    > Task :compileJava SKIPPED
    > Task :classes
    > Task :compileTestJava NO-SOURCE
    > Task :testClasses UP-TO-DATE
    > Task :test NO-SOURCE
    > Task :bufFormatCheck
    > Task :bufLint FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':bufLint'.
    > Some Protobuf files had lint violations:
      src-main-proto/buf/test/v1/test.proto:20:8:import "protokt/protokt.proto": file does not exist
    
    
    * Try:
    > Run with --stacktrace option to get the stack trace.
    > Run with --info or --debug option to get more log output.
    > Run with --scan to get full insights.
    > Get more help at https://help.gradle.org.
    
    Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
    
    You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
    
    For more on this, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
    
    BUILD FAILED in 244ms
    10 actionable tasks: 10 executed
    Configuration cache entry stored.
    
	at app//build.buf.gradle.LintWithProtobufGradleTest.lint a file with an implementation dependency and a lint config with the protobuf-gradle-plugin(LintWithProtobufGradleTest.kt:51)
	at [[Reflective call: 4 frames collapsed (https://goo.gl/aH3UyP)]].(:0)
	at [[Testing framework: 27 frames collapsed (https://goo.gl/aH3UyP)]].(:0)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)
	at [[Testing framework: 9 frames collapsed (https://goo.gl/aH3UyP)]].(:0)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)
	at [[Testing framework: 20 frames collapsed (https://goo.gl/aH3UyP)]].(:0)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:119)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:94)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:89)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:62)
	at [[Reflective call: 4 frames collapsed (https://goo.gl/aH3UyP)]].(:0)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy2.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:119)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:66)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)