Skip to content
GitHub Actions / Unit Test Results failed Apr 23, 2024 in 0s

2 fail, 22 skipped, 5 188 pass in 31m 50s

     916 files  +  48       916 suites  +48   31m 50s ⏱️ + 5m 28s
  5 212 tests ±    0    5 188 ✔️ +    1  22 💤 ±0  2  - 1 
10 385 runs  +618  10 339 ✔️ +619  44 💤 ±0  2  - 1 

Results for commit 6694deb. ± Comparison against earlier commit 986b5dc.

Annotations

Check warning on line 0 in com.google.firebase.lint.checks.FirebaseAppGetDetectorTests

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_app_get_from_getInstance_returningSubclass_shouldNotFail_kotlin (com.google.firebase.lint.checks.FirebaseAppGetDetectorTests) failed

artifacts/Unit Test Results/tools/lint/build/test-results/test/TEST-com.google.firebase.lint.checks.FirebaseAppGetDetectorTests.xml
Raw output
java.lang.AssertionError: Incident (message, location) reported more
than once; this typically means that your detector is incorrectly
reaching the same element twice (for example, visiting each call of a
method and reporting the error on the method itself), or that you should
incorporate more details in your error message such as specific names of
methods or variables to make each message unique if overlapping errors
are expected.

If you *really* want to allow this, add .allowDuplicates() to the test
task.

Identical incident encountered at the same location more than once:
Incident(
 issue='FirebaseUseExplicitDependencies',
 message='Use of FirebaseApp#get(Class) is discouraged, and is only acceptable in SDK#getInstance(...) methods. Instead declare dependencies explicitly in your ComponentRegistrar and inject.',
 file=src/Foo.kt,
 line=8
)
	at org.junit.Assert.fail(Assert.java:89)
	at com.android.tools.lint.checks.infrastructure.TestLintClient.report(TestLintClient.java:1106)
	at com.android.tools.lint.client.api.LintDriver$LintClientWrapper.report(LintDriver.kt:2666)
	at com.android.tools.lint.client.api.LintClient.report$default(LintClient.kt:186)
	at com.android.tools.lint.detector.api.JavaContext.report(JavaContext.kt:332)
	at com.android.tools.lint.detector.api.JavaContext.report$default(JavaContext.kt:324)
	at com.google.firebase.lint.checks.FirebaseAppGetDetector.visitMethodCall(FirebaseAppGetDetector.kt:47)
	at com.android.tools.lint.client.api.UElementVisitor$DelegatingPsiVisitor.visitMethodCallExpression(UElementVisitor.kt:1096)
	at com.android.tools.lint.client.api.UElementVisitor$DelegatingPsiVisitor.visitCallExpression(UElementVisitor.kt:1076)
	at org.jetbrains.uast.kotlin.KotlinUFunctionCallExpression.accept(KotlinUFunctionCallExpression.kt:164)
	at org.jetbrains.uast.UQualifiedReferenceExpression$DefaultImpls.accept(UQualifiedReferenceExpression.kt:34)
	at org.jetbrains.uast.kotlin.KotlinUQualifiedReferenceExpression.accept(KotlinUQualifiedReferenceExpression.kt:11)
	at org.jetbrains.uast.UReturnExpression$DefaultImpls.accept(UReturnExpression.kt:22)
	at org.jetbrains.uast.kotlin.KotlinUImplicitReturnExpression.accept(KotlinUImplicitReturnExpression.kt:11)
	at org.jetbrains.uast.internal.ImplementationUtilsKt.acceptList(implementationUtils.kt:29)
	at org.jetbrains.uast.UBlockExpression$DefaultImpls.accept(UBlockExpression.kt:21)
	at org.jetbrains.uast.kotlin.KotlinLazyUBlockExpression.accept(KotlinLazyUBlockExpression.kt:9)
	at org.jetbrains.uast.UMethod$DefaultImpls.accept(UMethod.kt:45)
	at org.jetbrains.uast.kotlin.KotlinUMethod.accept(KotlinUMethod.kt:21)
	at org.jetbrains.uast.internal.ImplementationUtilsKt.acceptList(implementationUtils.kt:29)
	at org.jetbrains.uast.kotlin.AbstractKotlinUClass.accept(AbstractKotlinUClass.kt:42)
	at org.jetbrains.uast.internal.ImplementationUtilsKt.acceptList(implementationUtils.kt:29)
	at org.jetbrains.uast.kotlin.AbstractKotlinUClass.accept(AbstractKotlinUClass.kt:42)
	at org.jetbrains.uast.internal.ImplementationUtilsKt.acceptList(implementationUtils.kt:29)
	at org.jetbrains.uast.UFile$DefaultImpls.accept(UFile.kt:87)
	at org.jetbrains.uast.kotlin.KotlinUFile.accept(KotlinUFile.kt:14)
	at com.android.tools.lint.detector.api.UastLintUtilsKt.acceptSourceFile(UastLintUtils.kt:515)
	at com.android.tools.lint.client.api.UElementVisitor$visitFile$3.run(UElementVisitor.kt:274)
	at com.android.tools.lint.client.api.LintClient.runReadAction(LintClient.kt:1775)
	at com.android.tools.lint.checks.infrastructure.TestLintClient.runReadAction(TestLintClient.java:893)
	at com.android.tools.lint.client.api.LintDriver$LintClientWrapper.runReadAction(LintDriver.kt:2757)
	at com.android.tools.lint.client.api.UElementVisitor.visitFile(UElementVisitor.kt:271)
	at com.android.tools.lint.client.api.LintDriver$visitUastDetectors$1.run(LintDriver.kt:2073)
	at com.android.tools.lint.client.api.LintClient.runReadAction(LintClient.kt:1775)
	at com.android.tools.lint.checks.infrastructure.TestLintClient.runReadAction(TestLintClient.java:893)
	at com.android.tools.lint.client.api.LintDriver$LintClientWrapper.runReadAction(LintDriver.kt:2757)
	at com.android.tools.lint.client.api.LintDriver.visitUastDetectors(LintDriver.kt:2073)
	at com.android.tools.lint.client.api.LintDriver.visitUast(LintDriver.kt:2032)
	at com.android.tools.lint.client.api.LintDriver.runFileDetectors(LintDriver.kt:1421)
	at com.android.tools.lint.client.api.LintDriver.checkProject(LintDriver.kt:1185)
	at com.android.tools.lint.client.api.LintDriver.checkProjectRoot(LintDriver.kt:645)
	at com.android.tools.lint.client.api.LintDriver.access$checkProjectRoot(LintDriver.kt:158)
	at com.android.tools.lint.client.api.LintDriver$analyze$1.invoke(LintDriver.kt:438)
	at com.android.tools.lint.client.api.LintDriver$analyze$1.invoke(LintDriver.kt:435)
	at com.android.tools.lint.client.api.LintDriver.doAnalyze(LintDriver.kt:519)
	at com.android.tools.lint.client.api.LintDriver.doAnalyze$default(LintDriver.kt:490)
	at com.android.tools.lint.client.api.LintDriver.analyze(LintDriver.kt:435)
	at com.android.tools.lint.checks.infrastructure.TestLintClient.analyze(TestLintClient.java:671)
	at com.android.tools.lint.checks.infrastructure.TestLintClient.analyze(TestLintClient.java:602)
	at com.android.tools.lint.checks.infrastructure.TestLintClient.checkLint(TestLintClient.java:341)
	at com.android.tools.lint.checks.infrastructure.TestLintRunner.checkLint(TestLintRunner.kt:312)
	at com.android.tools.lint.checks.infrastructure.TestLintRunner.runMode(TestLintRunner.kt:264)
	at com.android.tools.lint.checks.infrastructure.TestLintRunner.runMode(TestLintRunner.kt:220)
	at com.android.tools.lint.checks.infrastructure.TestLintRunner.runMode$default(TestLintRunner.kt:194)
	at com.android.tools.lint.checks.infrastructure.TestLintRunner.run(TestLintRunner.kt:131)
	at com.android.tools.lint.checks.infrastructure.TestLintTask.run(TestLintTask.java:1045)
	at com.google.firebase.lint.checks.FirebaseAppGetDetectorTests.test_app_get_from_getInstance_returningSubclass_shouldNotFail_kotlin(FirebaseAppGetDetectorTests.kt:156)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:112)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:40)
	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:60)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:52)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	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 jdk.proxy1/jdk.proxy1.$Proxy2.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
	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:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)

Check warning on line 0 in com.google.firebase.lint.checks.FirebaseAppGetDetectorTests

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_app_get_from_getInstance_shouldNotFail_kotlin (com.google.firebase.lint.checks.FirebaseAppGetDetectorTests) failed

artifacts/Unit Test Results/tools/lint/build/test-results/test/TEST-com.google.firebase.lint.checks.FirebaseAppGetDetectorTests.xml
Raw output
java.lang.AssertionError: Incident (message, location) reported more
than once; this typically means that your detector is incorrectly
reaching the same element twice (for example, visiting each call of a
method and reporting the error on the method itself), or that you should
incorporate more details in your error message such as specific names of
methods or variables to make each message unique if overlapping errors
are expected.

If you *really* want to allow this, add .allowDuplicates() to the test
task.

Identical incident encountered at the same location more than once:
Incident(
 issue='FirebaseUseExplicitDependencies',
 message='Use of FirebaseApp#get(Class) is discouraged, and is only acceptable in SDK#getInstance(...) methods. Instead declare dependencies explicitly in your ComponentRegistrar and inject.',
 file=src/Foo.kt,
 line=8
)
	at org.junit.Assert.fail(Assert.java:89)
	at com.android.tools.lint.checks.infrastructure.TestLintClient.report(TestLintClient.java:1106)
	at com.android.tools.lint.client.api.LintDriver$LintClientWrapper.report(LintDriver.kt:2666)
	at com.android.tools.lint.client.api.LintClient.report$default(LintClient.kt:186)
	at com.android.tools.lint.detector.api.JavaContext.report(JavaContext.kt:332)
	at com.android.tools.lint.detector.api.JavaContext.report$default(JavaContext.kt:324)
	at com.google.firebase.lint.checks.FirebaseAppGetDetector.visitMethodCall(FirebaseAppGetDetector.kt:47)
	at com.android.tools.lint.client.api.UElementVisitor$DelegatingPsiVisitor.visitMethodCallExpression(UElementVisitor.kt:1096)
	at com.android.tools.lint.client.api.UElementVisitor$DelegatingPsiVisitor.visitCallExpression(UElementVisitor.kt:1076)
	at org.jetbrains.uast.kotlin.KotlinUFunctionCallExpression.accept(KotlinUFunctionCallExpression.kt:164)
	at org.jetbrains.uast.UQualifiedReferenceExpression$DefaultImpls.accept(UQualifiedReferenceExpression.kt:34)
	at org.jetbrains.uast.kotlin.KotlinUQualifiedReferenceExpression.accept(KotlinUQualifiedReferenceExpression.kt:11)
	at org.jetbrains.uast.UReturnExpression$DefaultImpls.accept(UReturnExpression.kt:22)
	at org.jetbrains.uast.kotlin.KotlinUImplicitReturnExpression.accept(KotlinUImplicitReturnExpression.kt:11)
	at org.jetbrains.uast.internal.ImplementationUtilsKt.acceptList(implementationUtils.kt:29)
	at org.jetbrains.uast.UBlockExpression$DefaultImpls.accept(UBlockExpression.kt:21)
	at org.jetbrains.uast.kotlin.KotlinLazyUBlockExpression.accept(KotlinLazyUBlockExpression.kt:9)
	at org.jetbrains.uast.UMethod$DefaultImpls.accept(UMethod.kt:45)
	at org.jetbrains.uast.kotlin.KotlinUMethod.accept(KotlinUMethod.kt:21)
	at org.jetbrains.uast.internal.ImplementationUtilsKt.acceptList(implementationUtils.kt:29)
	at org.jetbrains.uast.kotlin.AbstractKotlinUClass.accept(AbstractKotlinUClass.kt:42)
	at org.jetbrains.uast.internal.ImplementationUtilsKt.acceptList(implementationUtils.kt:29)
	at org.jetbrains.uast.kotlin.AbstractKotlinUClass.accept(AbstractKotlinUClass.kt:42)
	at org.jetbrains.uast.internal.ImplementationUtilsKt.acceptList(implementationUtils.kt:29)
	at org.jetbrains.uast.UFile$DefaultImpls.accept(UFile.kt:87)
	at org.jetbrains.uast.kotlin.KotlinUFile.accept(KotlinUFile.kt:14)
	at com.android.tools.lint.detector.api.UastLintUtilsKt.acceptSourceFile(UastLintUtils.kt:515)
	at com.android.tools.lint.client.api.UElementVisitor$visitFile$3.run(UElementVisitor.kt:274)
	at com.android.tools.lint.client.api.LintClient.runReadAction(LintClient.kt:1775)
	at com.android.tools.lint.checks.infrastructure.TestLintClient.runReadAction(TestLintClient.java:893)
	at com.android.tools.lint.client.api.LintDriver$LintClientWrapper.runReadAction(LintDriver.kt:2757)
	at com.android.tools.lint.client.api.UElementVisitor.visitFile(UElementVisitor.kt:271)
	at com.android.tools.lint.client.api.LintDriver$visitUastDetectors$1.run(LintDriver.kt:2073)
	at com.android.tools.lint.client.api.LintClient.runReadAction(LintClient.kt:1775)
	at com.android.tools.lint.checks.infrastructure.TestLintClient.runReadAction(TestLintClient.java:893)
	at com.android.tools.lint.client.api.LintDriver$LintClientWrapper.runReadAction(LintDriver.kt:2757)
	at com.android.tools.lint.client.api.LintDriver.visitUastDetectors(LintDriver.kt:2073)
	at com.android.tools.lint.client.api.LintDriver.visitUast(LintDriver.kt:2032)
	at com.android.tools.lint.client.api.LintDriver.runFileDetectors(LintDriver.kt:1421)
	at com.android.tools.lint.client.api.LintDriver.checkProject(LintDriver.kt:1185)
	at com.android.tools.lint.client.api.LintDriver.checkProjectRoot(LintDriver.kt:645)
	at com.android.tools.lint.client.api.LintDriver.access$checkProjectRoot(LintDriver.kt:158)
	at com.android.tools.lint.client.api.LintDriver$analyze$1.invoke(LintDriver.kt:438)
	at com.android.tools.lint.client.api.LintDriver$analyze$1.invoke(LintDriver.kt:435)
	at com.android.tools.lint.client.api.LintDriver.doAnalyze(LintDriver.kt:519)
	at com.android.tools.lint.client.api.LintDriver.doAnalyze$default(LintDriver.kt:490)
	at com.android.tools.lint.client.api.LintDriver.analyze(LintDriver.kt:435)
	at com.android.tools.lint.checks.infrastructure.TestLintClient.analyze(TestLintClient.java:671)
	at com.android.tools.lint.checks.infrastructure.TestLintClient.analyze(TestLintClient.java:602)
	at com.android.tools.lint.checks.infrastructure.TestLintClient.checkLint(TestLintClient.java:341)
	at com.android.tools.lint.checks.infrastructure.TestLintRunner.checkLint(TestLintRunner.kt:312)
	at com.android.tools.lint.checks.infrastructure.TestLintRunner.runMode(TestLintRunner.kt:264)
	at com.android.tools.lint.checks.infrastructure.TestLintRunner.runMode(TestLintRunner.kt:220)
	at com.android.tools.lint.checks.infrastructure.TestLintRunner.runMode$default(TestLintRunner.kt:194)
	at com.android.tools.lint.checks.infrastructure.TestLintRunner.run(TestLintRunner.kt:131)
	at com.android.tools.lint.checks.infrastructure.TestLintTask.run(TestLintTask.java:1045)
	at com.google.firebase.lint.checks.FirebaseAppGetDetectorTests.test_app_get_from_getInstance_shouldNotFail_kotlin(FirebaseAppGetDetectorTests.kt:130)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:112)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:40)
	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:60)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:52)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	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 jdk.proxy1/jdk.proxy1.$Proxy2.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
	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:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)