Skip to content

build(agents): properly ignore all wasm publsihing tasks for otel module#1975

Open
EugeneTheDev wants to merge 1 commit intodevelopfrom
eugenethedev/fix-otel-wasm-publishing
Open

build(agents): properly ignore all wasm publsihing tasks for otel module#1975
EugeneTheDev wants to merge 1 commit intodevelopfrom
eugenethedev/fix-otel-wasm-publishing

Conversation

@EugeneTheDev
Copy link
Copy Markdown
Collaborator

@EugeneTheDev EugeneTheDev commented May 9, 2026

The existing task filter only matched names starting with wasmJs, so publication tasks like generateMetadataFileForWasmJsPublication (where WasmJs appears mid-name) slipped through and failed reading the klib that the disabled compileKotlinWasmJs never produced. Broadened the filter to also match contains("WasmJs")

@EugeneTheDev EugeneTheDev requested a review from sdubov May 9, 2026 14:42
@EugeneTheDev EugeneTheDev marked this pull request as ready for review May 9, 2026 14:42
@EugeneTheDev
Copy link
Copy Markdown
Collaborator Author

I don't know why dokkaGenerate fails on CI. Locally it works, tried ./gradlew dokkaGenerate --rerun. The branch is also completely up-to-date with develop. Let's merge it and see, I guess.

tasks.matching { it.name.startsWith("wasmJs") || it.name == "compileKotlinWasmJs" || it.name == "compileTestKotlinWasmJs" }.configureEach {
// Match both camelCase prefixed tasks (wasmJsJar, wasmJsSourcesJar, ...) and PascalCase
// suffixed ones (compileKotlinWasmJs, generateMetadataFileForWasmJsPublication, ...).
tasks.matching { it.name.startsWith("wasmJs") || it.name.contains("WasmJs") }.configureEach {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be re-written to:

tasks.matching { it.name.contains("wasmjs", ignoreCase = true) }.configureEach { ... }

However, let me check if we can disable wasm target in more solid way. I'm not sure that this check for task name is the best we can do here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants