Ilya Goncharov [JB]
03/18/2025, 5:21 PMwebApp
and compose-web
, and compose-web
is built pretty fine and it works with run
task, but for webApp
I get an error
Maybe this project should be built only on CI?
So I’d like to know is there some task which I could run to build the project (for all targets)
Execution failed for task ':webApp:generateApiApolloSources'.
> A failure occurred while executing com.apollographql.apollo.gradle.internal.GenerateSources
> e: ~/reproducers/Confetti/shared/src/commonMain/graphql/extra.graphqls: (6, 1): Apollo: unknown foreign schema 'cache/v0.1'
----------------------------------------------------
[5]:)
[6]:@link(
[7]: url: "<https://specs.apollo.dev/cache/v0.1>",
----------------------------------------------------
John O'Reilly
03/18/2025, 5:23 PMcompose-web
should be the "active" one now.....using shared CMP code etc
@mbonnin I think webApp
might have been the initial Compose for Web implementation? Maybe something we can remove nowJohn O'Reilly
03/18/2025, 5:24 PMcompose-web
Ilya Goncharov [JB]
03/18/2025, 5:24 PMbuild
task, but it triggers tasks across all subprojects (including webApp
) and probably other legacy modules?John O'Reilly
03/18/2025, 5:25 PMmbonnin
03/18/2025, 5:28 PMwebApp
John O'Reilly
03/18/2025, 5:29 PMmbonnin
03/18/2025, 5:29 PMJohn O'Reilly
03/18/2025, 5:45 PMbuild
working now
@mbonnin I think one of last remaining failures is :backend:datastore:jvmTest
.....I guess this probably only runs in CI?
no credentials found for gcp_service_account_key.json
java.lang.IllegalStateException: no credentials found for gcp_service_account_key.json
mbonnin
03/18/2025, 5:47 PMJohn O'Reilly
03/18/2025, 5:48 PM> Task :androidApp:sdkBenchmarkDependencyData FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':androidApp:sdkBenchmarkDependencyData'.
> 'void com.google.crypto.tink.proto.Keyset.makeExtensionsImmutable()'
mbonnin
03/18/2025, 5:48 PMno credentials found for gcp_service_account_key.jsonCan you
@Ignore
this one ?mbonnin
03/18/2025, 5:48 PMJohn O'Reilly
03/18/2025, 5:49 PMJohn O'Reilly
03/18/2025, 5:51 PMandroidBenchmark
for now just to get baseline of build
workingJohn O'Reilly
03/18/2025, 5:57 PM:compose-web:wasmJsJar FAILED
mbonnin
03/18/2025, 5:59 PM'void com.google.crypto.tink.proto.Keyset.makeExtensionsImmutable()'This sounds like the usual Gradle classpath thing?
mbonnin
03/18/2025, 6:00 PMJohn O'Reilly
03/18/2025, 6:04 PMJohn O'Reilly
03/18/2025, 6:15 PMbuild
now and not seeing that compose-web error.....still seeing this though
> Task :androidApp:sdkGithubReleaseDependencyData FAILED
> Task :kotlinNpmInstall
warning Ignored scripts due to flag.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':androidApp:sdkGithubReleaseDependencyData'.
> 'void com.google.crypto.tink.proto.Keyset.makeExtensionsImmutable()'
John O'Reilly
03/18/2025, 6:20 PMJohn O'Reilly
03/18/2025, 6:20 PMmbonnin
03/18/2025, 6:20 PMJohn O'Reilly
03/18/2025, 6:21 PMbuild
working ok for you now with that change?mbonnin
03/18/2025, 6:25 PMmbonnin
03/18/2025, 6:26 PMA problem was found with the configuration of task ':compose-web:wasmJsJar' (type 'Jar').
- Gradle detected a problem with the following location: '/Users/martinbonnin/git/Confetti/compose-web/build/processedResources/wasmJs/main'.
Reason: Task ':compose-web:wasmJsJar' uses this output of task ':compose-web:copyWasmResourcesWorkaround' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
mbonnin
03/18/2025, 6:27 PMJohn O'Reilly
03/18/2025, 6:28 PMmbonnin
03/18/2025, 6:28 PMJohn O'Reilly
03/18/2025, 6:33 PMIlya Goncharov [JB]
03/18/2025, 6:37 PMmbonnin
03/18/2025, 6:39 PM> Task :wearApp:compileGithubReleaseScreenshotTestKotlin FAILED
e: file:///Users/martinbonnin/git/Confetti/wearApp/src/screenshotTest/java/dev/johnoreilly/confetti/wear/ConferenceHomeScreenTest.kt:24:5 Unresolved reference 'TestScaffold'.
e: file:///Users/martinbonnin/git/Confetti/wearApp/src/screenshotTest/java/dev/johnoreilly/confetti/wear/ConferenceHomeScreenTest.kt:25:9 @Composable invocations can only happen from the context of a @Composable function
e: file:///Users/martinbonnin/git/Confetti/wearApp/src/screenshotTest/java/dev/johnoreilly/confetti/wear/ConferenceHomeScreenTest.kt:53:5 Unresolved reference 'TestScaffold'.
e: file:///Users/martinbonnin/git/Confetti/wearApp/src/screenshotTest/java/dev/johnoreilly/confetti/wear/ConferenceHomeScreenTest.kt:54:9 @Composable invocations can only happen from the context of a @Composable function
e: file:///Users/martinbonnin/git/Confetti/wearApp/src/screenshotTest/java/dev/johnoreilly/confetti/wear/ConferenceHomeScreenTest.kt:92:5 Unresolved reference 'TestScaffold'.
e: file:///Users/martinbonnin/git/Confetti/wearApp/src/screenshotTest/java/dev/johnoreilly/confetti/wear/ConferenceHomeScreenTest.kt:93:9 @Composable invocations can only happen from the context of a @Composable function
> Task :androidApp:testBenchmarkUnitTest
SpeakerDetailsScTest > screenshotDetails FAILED
java.lang.RuntimeException at RoboMonitoringInstrumentation.java:102
1 test completed, 1 failed
> Task :androidApp:testBenchmarkUnitTest FAILED
> Task :androidApp:minifyBenchmarkWithR8 FAILED
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /Users/martinbonnin/git/Confetti/androidApp/build/outputs/mapping/benchmark/missing_rules.txt.
ERROR: R8: Missing class io.ktor.client.network.sockets.SocketTimeoutException (referenced from: java.lang.Throwable io.ktor.client.engine.okhttp.OkHttpEngineKt.mapExceptions(java.lang.Throwable, io.ktor.client.request.HttpRequestData) and 1 other context)
mbonnin
03/18/2025, 6:40 PMJohn O'Reilly
03/18/2025, 6:41 PMinclude(":backend:terraform")
include(":landing-page")
include(":wearApp")
-include(":wearBenchmark")
+//include(":wearBenchmark")
include(":compose-desktop")
include(":compose-web")
include(":proto")
John O'Reilly
03/18/2025, 6:41 PMyschimke
03/18/2025, 6:49 PMJohn O'Reilly
03/18/2025, 7:26 PM:wearApp:testGithubReleaseUnitTest
.....maybe issue with with githubRelease build flavour....not sure we run those tests typically for that build flavour..John O'Reilly
03/18/2025, 7:50 PMbuild
task is run......could you perhaps run assemble
for now? (should work with code in main
now)Ilya Goncharov [JB]
03/20/2025, 1:02 PMassemble
now. Am I right, that there are only JVM tests in the project?Ilya Goncharov [JB]
03/20/2025, 2:22 PMassemble
task, I can see now
> Task :androidApp:packageRelease FAILED
Execution failed for task ':androidApp:packageRelease'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> SigningConfig "release" is missing required property "storeFile".
John O'Reilly
03/20/2025, 3:15 PMJohn O'Reilly
03/20/2025, 3:16 PMJohn O'Reilly
03/20/2025, 3:17 PMIlya Goncharov [JB]
03/20/2025, 3:21 PMassembleDebug
is relevant only for android
variant?
I mean I run assemble
to “assemble every target”,
So the correact way for that is something like
:compose-web:assemble :androidApp:assembeDebug
?John O'Reilly
03/20/2025, 3:57 PM