Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing KotlinJvmTaskExecutorTest to the test suite #1089

Merged
merged 5 commits into from
Dec 12, 2023

Conversation

raghulvelusamy
Copy link
Contributor

Add missing KotlinJvmTaskExecutorTest to the test suite

@@ -472,7 +472,7 @@ private val Directories.incrementalData
* Create a new [JvmCompilationTask] with sources found in the generatedSources directory. This should be run after
* annotation processors have been run.
*/
internal fun JvmCompilationTask.expandWithGeneratedSources(): JvmCompilationTask =
Copy link
Collaborator

Choose a reason for hiding this comment

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

Internal will be visible to tests if you pass this target to the test target as an associate dependency.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

going to make it public to avoid using 4f0b728

Copy link
Collaborator

Choose a reason for hiding this comment

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

Forgot about the kt_bootstrap layer that these sources are wrapped in.

@@ -44,11 +44,11 @@ class KotlinJvmTaskExecutorTest {

assertTrue(expandedCompileTask.hasInputs())
assertNotNull(expandedCompileTask.inputs.javaSourcesList.find { path ->
path.endsWith("a_test_1/generated_sources/AnotherGenClass.java")
path.endsWith("generated_sources/AnotherGenClass.java")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This always generates not 1 but a random number a-test-115507972808607999568. Removing the prefix here.

@Bencodes Bencodes merged commit 6c8723f into bazelbuild:master Dec 12, 2023
2 checks passed
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