-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SAT] - Test that STATE emitted during run matches provided sample states #21863
Comments
cc @brianjlai, who has ideas on this topic |
@bechurch this will be story #2, and introduce you to SAT - how we test all connectors, regardless of the language they are programmed in. |
Just to document the full context of the ask since it's a little spread out over many messages and we can try to frame this in how it related to this SAT fix. What happened to the connectorWe had a connector to the Sentry API that was in Alpha and only supported full refresh syncs. As part of the promotion to Beta, incremental sync support was being added which was released in #20709 . An oncall issue was surfaced in https://github.com/airbytehq/oncall/issues/1317 for a customer saying that despite specifying an incremental sync, they were still seeing all of their records being refreshed on each sync leading to overages. This connector successfully passed SAT tests during the release. During the investigation, it was discovered that the incremental sync implementation was not working quite right and functionally still replicating all records of streams. It was observed that Sentry syncs were not properly emitting STATE and with the latest synced value, but was instead emitting an empty value Why was Source Acceptance Tests unable to detect this?Looking specifically at the What led to the gap was that when we generate the list of RECORD values to compare against the STATE value in And this is where we should be doing a better job that STATE is being emitted with an actual value instead of As for why This is quite a novela so let me know if this was too much detail or want more clarify on a specific aspect |
From https://github.com/airbytehq/oncall/issues/1317 which was solved by #21864
We don't test that syncs /actually emit/ a state message. We should do that.
We should also confirm that the format (e.g. the keys in the state JSON) match the state messages which are provided as inputs to SAT.
To discuss:
The text was updated successfully, but these errors were encountered: