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
The problem is that the tests replace the contents of the flag configuration file with the amended configuration (to test that cache has been invalidated). In doing this, flagd receives the change event, pulls the contents of the file, sees that the file is empty (it hasn't been written to yet), interprets this as an empty state and invalidates all of the cache. Then the configuration gets written to the file and flagd interprets the event correctly.
Potential solutions:
Write config to new file and create symlink from existing file
Activity
skyerus commentedon Feb 22, 2023
The problem is that the tests replace the contents of the flag configuration file with the amended configuration (to test that cache has been invalidated). In doing this, flagd receives the change event, pulls the contents of the file, sees that the file is empty (it hasn't been written to yet), interprets this as an empty state and invalidates all of the cache. Then the configuration gets written to the file and flagd interprets the event correctly.
Potential solutions:
Run the tests against the flagd binary directly (it seems that the slowness of the write/retrieval comes from the mounting of the file to the docker volume)Tried this, the failure occurs in the CI regardless: https://github.com/open-feature/flagd/actions/runs/4244119058/jobs/7377781110chore: integration test stability (#432)
fix(deps): update module go.uber.org/mock to v0.4.0 (open-feature#425)