Investigate and fix flaky VSA spec in `filters_and_data_spec.rb`
Some of the VSA integration tests are randomly failing at specific times. To avoid development disruption, we've decided to quarantine these test cases and create a follow-up issue.
Related broken master issue: #356743 (closed)
The flakiness is quite difficult to reproduce, a few ideas:
- Set a different timezone when running the tests, for example:
TZ='Asia/Shanghai'; export TZ
- Set a different time when running the tests
- Rewrite the test case to use explicit dates: create records on a fixed date and use the date range filter in VSA
UPDATE:
So far I wasn't able to reproduce the bug, and the actual feature changed over time when spec was quarantined. So I've updated the spec and removed it from quarantine so we can get fresh data if it still fails.
IF THERE WILL BE NEW OCCURRENCES PLEASE POST A LINK TO FAILED JOB. Then return the context 'with value streams'
back to quarantine please.
Edited by Pavel Shutsin