Open Nereboss opened 1 month ago
For now, we decided to disable caching for all tasks in https://github.com/MaibornWolff/codecharta/pull/3633. This could however be revisited in the future as having the cache did save time during development when building the project.
Some issues we found that need to be fixed to disable cache for only select tasks:
dependsOn(tasks.clean)
only executed clean for the root project, not all submodules like it is when the task is executed from the commandlinedependsOn(tasks.test)
, here no tests from the submodules were executed.tasks.withType()
method also did not result to anything.doNotTrackState()
method that might be useful to disable cache for a single task but could not test this due to the previous issues.
Feature request
With the upgrade to gradle 8 we enable caching, meaning all builds and executed tests are cached and only executed again when necessary. This creates the problem of working with flaky tests, as they are not executed again after they passed once.
Description
As a developer, I want to be able to execute tests without cache so that i can more easily work to fix flaky tests.
Acceptance criteria
Assumptions & Exclusions
Development notes (optional Task Breakdown)
Open questions