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
While implementing integration tests of flagd, I initially ran the tests against the flagd binary which seemingly arbitrarily passed/failed. Conversely, the tests always pass while using the built flagd image directly.
The "flakey" tests are the ones that make a change to the flag config file, sleeps 50 milliseconds & then asserts that the flag has been cleared from cache.
Increasing the sleep (all the way up to 2 seconds) did nothing to fix the flakiness. This leads me to believe the behaviour of my mac's file change notifications system is inconsistent with the behaviour of flagd's distroless image's system.
Expected Behavior
The tests to pass as consistently when using the flagd binary as when using flagd's image.
Steps to reproduce
Not easily reproducible right now (the flagd integration tests and its dependencies are yet to be merged). Will update when they have been
The text was updated successfully, but these errors were encountered:
…sed stability across OS) (#361)
<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->
## This PR
- Uses event.Has func for file change notification handling (instead of
direct comparison). This is the correct approach as [expressed directly
in fsnotify's
code](https://github.com/fsnotify/fsnotify/blob/main/fsnotify.go#L39).
### Related Issues
<!-- add here the GitHub issue that this PR resolves if applicable -->
Fixes#313
### Notes
<!-- any additional notes for this PR -->
### Follow-up Tasks
<!-- anything that is related to this PR but not done here should be
noted under this section -->
<!-- if there is a need for a new issue, please link it here -->
### How to test
<!-- if applicable, add testing instructions under this section -->
---------
Signed-off-by: Skye Gill <gill.skye95@gmail.com>
Signed-off-by: Todd Baert <toddbaert@gmail.com>
Co-authored-by: Todd Baert <toddbaert@gmail.com>
Observed behavior
While implementing integration tests of flagd, I initially ran the tests against the flagd binary which seemingly arbitrarily passed/failed. Conversely, the tests always pass while using the built flagd image directly.
The "flakey" tests are the ones that make a change to the flag config file, sleeps 50 milliseconds & then asserts that the flag has been cleared from cache.
Increasing the sleep (all the way up to 2 seconds) did nothing to fix the flakiness. This leads me to believe the behaviour of my mac's file change notifications system is inconsistent with the behaviour of flagd's distroless image's system.
Expected Behavior
The tests to pass as consistently when using the flagd binary as when using flagd's image.
Steps to reproduce
Not easily reproducible right now (the flagd integration tests and its dependencies are yet to be merged). Will update when they have been
The text was updated successfully, but these errors were encountered: