Skip to content

Conversation

Schahen
Copy link
Collaborator

@Schahen Schahen commented Aug 8, 2025

CompatibilityDistributionTest::testWebJsWasmReconfigured makes sure that composeCompatibilityBrowserDistribution task can be reconfigured to be used with arbitrary set of input tasks

Testing

Pipeline

Release Notes

N/A

…ich tests heavily reconfigured project with composeCompatibilityBrowserDistribution
@igordmn igordmn self-requested a review August 8, 2025 14:19
Comment on lines +31 to +32
val actualFiles = distributionNames.filterNot { it.endsWith(".wasm") }.toSet()
assertEquals(expectedFileNames, actualFiles, "files mismatch in $dirPath")

Choose a reason for hiding this comment

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

NIT: The .wasm check uses any { ... }, which is lenient, while the actualFiles check uses strict assertEquals(...), failing even if there's just one unexpected file (e.g. Untitled.txt).

Should we make both checks consistent in strictness/leniency, depending on whether extra non-.wasm files should be allowed? 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hey @harrytmthy ! You're raising valid questions, it's just that we are putting main effort into checking for actual name of the generated artefacts, so this check-for-wasm approach is a temporary trade-off.

@Schahen Schahen merged commit 34125bc into master Aug 8, 2025
13 checks passed
@Schahen Schahen deleted the sh/web_fallbak_reconfiguration_test branch August 8, 2025 16:27
Schahen added a commit that referenced this pull request Aug 22, 2025
…n heavily reconfigured project (#5380)

CompatibilityDistributionTest::testWebJsWasmReconfigured makes sure that
composeCompatibilityBrowserDistribution task can be reconfigured to be
used with arbitrary set of input tasks

## Testing
Pipeline

## Release Notes
N/A
henryqwe pushed a commit to henryqwe/compose-multiplatform that referenced this pull request Oct 1, 2025
…n heavily reconfigured project (JetBrains#5380)

CompatibilityDistributionTest::testWebJsWasmReconfigured makes sure that
composeCompatibilityBrowserDistribution task can be reconfigured to be
used with arbitrary set of input tasks

## Testing
Pipeline

## Release Notes
N/A
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.

3 participants