Status Update
Comments
au...@google.com <au...@google.com> #2
Based on xav@ offline suggestion this is due to us setting baseline file that is non-existent
sh...@google.com <sh...@google.com>
vi...@google.com <vi...@google.com>
tn...@google.com <tn...@google.com>
sp...@google.com <sp...@google.com> #3
This is happening for you only when android.experimental.lint.missingBaselineIsEmptyBaseline
is set to true, right?
xa...@google.com <xa...@google.com> #4
Scott, I think we should revisit the baseline support. Having the baseline be both input and output is a problem.
An option would be to never generate the baseline in its final location from the lint task itself. We can generate it in intermediates
and then have a generateLintBaseLine
task that copies it from there to the declared location. This would solve this weird setup we have currently. WDYT?
sp...@google.com <sp...@google.com> #5
Re #4, I agree that the baseline being an input and output of the lint report task is a problem.
My plan was to stop writing the baseline file from the lint report task altogether and instead require users to run the updateLintBaseline
task to create or update their baseline file. WDYT?
xa...@google.com <xa...@google.com> #6
Baseline creation requires running the report though, right? It's best of the update
task does not actually run its own report, but just use the normal report one, I think.
sp...@google.com <sp...@google.com> #7
Baseline creation requires running the report though, right?
Yes.
It's best of the update task does not actually run its own report, but just use the normal report one, I think.
The way I implemented it, the update
task runs the report, but I see now that it would be more efficient to copy it as you suggest.
sp...@google.com <sp...@google.com> #8
Fixed with Change-Id: I80c311499913bcb37f0956a1e66b7090bad7355e.
To track work on moving away from the baseline file being an input and an output of the lint report task, see
au...@google.com <au...@google.com> #9
Which version should we see this fix in? 7.4.0-alpha09?
sp...@google.com <sp...@google.com> #10
Yes
Description
DESCRIBE THE ISSUE IN DETAIL:
Android Lint Report tasks are never up-to-date
STEPS TO REPRODUCE:
./gradlew :lint-checks:lintReport
./gradlew :lint-checks:lintReport
second timeExpected
Second run is up to date
Actual
Second run is not up to date, it runs again