You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unmanaged file get records a failed chain step #1963
bugSomething isn't workingcomponent/behaviorsinternal/behaviors and the hand-written domains they replaceside-findingFound during work on a different subject, and filed so that work stays its size
file get (and file status) on a path that osapi did not deploy returns the row state: unmanaged, which is correct. But the chain record of the job shows the step managedfile.get as failed: … not managed. In the UI step tree, a normal read looks like a failure.
How it was found
UI pass of #1943 in the lab: Plans, a file.get step on hosts with no managed file. The row said unmanaged, and the chain had a red failed step.
Where
internal/behaviors/file/linux.go Status calls behavior.Call(ctx, managedfile.Behavior, managedfile.Get, …) and maps managedfile.ErrNotManaged to Unmanaged. behavior.Call records each error as a failed step, also an error that the caller expects and handles. main does the same. #1943 only moved the directory check after the read of the record.
Fix to evaluate
A way for a caller to mark an error as an expected answer, so that the chain records the step as ok (for example "not managed" as its output). Or a managedfile read that returns found=false instead of an error.
bugSomething isn't workingcomponent/behaviorsinternal/behaviors and the hand-written domains they replaceside-findingFound during work on a different subject, and filed so that work stays its size
Activity