Skip to content

Conversation

@digitalbuddha
Copy link
Contributor

Adds an affected tasks plugin to the sample. Will propogate to plugin portal eventually

Copy link

@wclausen wclausen left a comment

Choose a reason for hiding this comment

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

Was challenging for me to follow how this fits together because the levels of abstraction used are pretty low (aka close to gradle) and my knowledge level in this particular area is only high (we want to allow folks to control which test tasks get called on modules when they call runAffectedUnitTests). Maybe we can bridge that gap to increase clarity. So, take my comments with that background.

Copy link
Contributor

@chris-mitchell chris-mitchell left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together! Let me know if you have any questions, happy to help.


dependencies {
implementation("com.dropbox.affectedmoduledetector:affectedmoduledetector:0.1.0-SNAPSHOT")
implementation("com.dropbox.affectedmoduledetector:affectedmoduledetector:0.1.0")
Copy link
Contributor

Choose a reason for hiding this comment

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

This was intentionally set to -SNAPSHOT so that developers could test their changes by pushing to their local maven repo.

I probably also need to update the release notes to ensure this value is bumped, otherwise the sample will use an out of date version of the library.

registerAffectedConnectedTestTask(rootProject)
}

filterAndroidTests(project)
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure if these two methods are necessary for other folks or if they are just unique issues in our environment. We may want to remove them to avoid confusion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it makes sense since it is keyed off them enabling the detector.

Copy link
Contributor

@chris-mitchell chris-mitchell left a comment

Choose a reason for hiding this comment

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

Thanks!

@digitalbuddha
Copy link
Contributor Author

ran checks locally

@digitalbuddha digitalbuddha merged commit 066d61a into main Nov 12, 2020
@chris-mitchell chris-mitchell deleted the miken/AffectedTasksPlugin branch January 11, 2022 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants