3.41.0 Regression in sources behavior cause all files to be read even with method: timestamp #2029
Labels
area: fingerprinting
Changes related to checksums and caching.
area: variables
Changes related to variables.
Description
This purple block in this graph is the data in
sources
being readThe yellow/green block in the graph is the actual task being run
I noticed this behavior when upgrading to 3.41.0. Reverting to 3.40.1 resolves this issue completely.
Even with
method: timestamp
in the task definition it still reads all files.If I had to guess it was regressed by #1872
It appears to set up both checkers regardless of method
task/variables.go
Lines 131 to 147 in f5121de
which ultimately calls
task/internal/fingerprint/sources_checksum.go
Lines 90 to 115 in f5121de
I believe this behavior to be a bug as when declaring a
method: timestamp
that seems to me that the user expelictly does not want an expensive checksum doneTo fix this I suppose the first referenced code block needs to check the
method
of the task and use this to set up the correct checker.Version
3.41.0
Operating system
Alpine Linux (task is runing in a docker container)
Experiments Enabled
No response
Example Taskfile
The text was updated successfully, but these errors were encountered: