-
Notifications
You must be signed in to change notification settings - Fork 170
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
Make sure Konsist tests always run #1590
Make sure Konsist tests always run #1590
Conversation
f410311
to
cb7e6d3
Compare
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, please see my comment. Once the PR has been cleaned up, it can be merged!
// Make sure Konsist tests are always run | ||
tasks.withType<Test>().configureEach { | ||
outputs.upToDateWhen { false } | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Konsist test are not always run because the konsist
module does not depend on any other modules, except projects.libraries.architecture
and projects.libraries.designsystem
(see the lines above) because we need access to some external types.
Maybe add this in the comment above to explain why this patch is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in fb0bf38.
Added some changes to make sure Konsist tests are only run (and fail) in one flow, I'll remove the offending code later. EDIT: it works! Removing the commit that causes Konsist failures. |
fb0bf38
to
5b404c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a quick update of the comment, else LGTM
Co-authored-by: Benoit Marty <benoit@matrix.org>
Kudos, SonarCloud Quality Gate passed! |
Type of change
Content
This PR adds a workaround so Konsist tests are always run.
Motivation and context
Konsist tests weren't being run in either the CI or locally using gradle because all the tests were considered up to date. By setting the output as never up to date we make sure they're always run.
Tests