Skip to content

FileWatch triggers file changed even if only file attributes changed #4706

@wesleyfr

Description

@wesleyfr

Hello,
I noticed FileWatch detects file change even if the file is accessed but untouched.
Thank you !

Expected Behavior

FileWatch should not detect a change if the file is unchanged.
According to the doc FileWatch should trigger only on create, modify, or delete : "SeenFiles is a list of paths which changed (create, modify, or delete)."

Current Behavior

FileWatch detects a change if the file is accessed.

> tilt get filewatches configs:singleton -o yaml
....
  - seenFiles:
    - C:\xxx\helm-values.tilt.yaml
    time: "2021-06-29T17:04:05.777668Z"
  lastEventTime: "2021-06-29T17:04:05.777668Z"
  monitorStartTime: "2021-06-29T14:08:54.952365Z"
> PS C:\xxx> Get-Item C:\xxx\helm-values.tilt.yaml | Select-Object LastAccessTimeUtc, LastWriteTimeUtc

LastAccessTimeUtc    LastWriteTimeUtc
-----------------    ----------------
6/29/2021 5:04:14 PM 5/14/2021 4:00:59 PM

(you can see that LastWriteTimeUtc does not match with the FileWatch lastEventTime, but LastAccessTimeUtc match)

Context

tilt doctor Output

$ tilt doctor
Tilt: v0.20.8, built 2021-06-18
System: windows-amd64
---
Docker
- Host: [default]
- Version: 1.41
- Builder: 2
---
Kubernetes
- Env: minikube
- Context: minikube
- Cluster Name: minikube
- Namespace: default
- Container Runtime: containerd
- Version: v1.20.7
- Cluster Local Registry: {Host:localhost:56195 hostFromCluster: SingleName:}

Metadata

Metadata

Assignees

No one assigned

    Labels

    WindowsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions