Skip to content
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

Extend abnormal state test to include cursor format check #39136

Conversation

roman-yermilov-gl
Copy link
Contributor

What

https://github.com/airbytehq/airbyte-internal-issues/issues/7940

How

Extended the test to include checks of the given future state format and the output state format

@roman-yermilov-gl roman-yermilov-gl self-assigned this Jun 5, 2024
Copy link

vercel bot commented Jun 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Jun 7, 2024 0:01am

@roman-yermilov-gl roman-yermilov-gl force-pushed the ryermilov/cat-abnormal-state-test-check-cursor-format branch from 8df2adc to 7155c3b Compare June 6, 2024 22:45
@roman-yermilov-gl roman-yermilov-gl marked this pull request as ready for review June 7, 2024 11:36
@roman-yermilov-gl roman-yermilov-gl changed the title extend abnormal state test to include format check Extend abnormal state test to include cursor format check Jun 7, 2024
@bazarnov
Copy link
Collaborator

bazarnov commented Jun 7, 2024

@roman-yermilov-gl Can we have a test using some of the critical sources, like:

  • Facebook-marketing
  • Shopify
  • Salesforce
  • Hubspot

We can test the incremental part only, to save time and rate-limits. We need to be sure we don't break anything. Poke me if you need any help on that. Thanks.

@roman-yermilov-gl
Copy link
Contributor Author

roman-yermilov-gl commented Jun 7, 2024

@roman-yermilov-gl Can we have a test using some of the critical sources, like:

  • Facebook-marketing
  • Shopify
  • Salesforce
  • Hubspot

We can test the incremental part only, to save time and rate-limits. We need to be sure we don't break anything. Poke me if you need any help on that. Thanks.

I have already run tests on all connectors, including the critical ones. This test is not failing.

Copy link
Contributor

@natikgadzhi natikgadzhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and it's CAT change in the end of the day, so I'm ok with merging. If there are additional comments and feedback, @roman-yermilov-gl please follow up with them when you're back. But, if we need this to progress forward, I'm ok.

@roman-yermilov-gl roman-yermilov-gl merged commit 6968f9a into master Jun 7, 2024
35 checks passed
@roman-yermilov-gl roman-yermilov-gl deleted the ryermilov/cat-abnormal-state-test-check-cursor-format branch June 7, 2024 18:25
@bazarnov
Copy link
Collaborator

bazarnov commented Jun 10, 2024

@roman-yermilov-gl There are multiple regressions with no straightforward way to identify the issue, based on the latest health-report.
This is the source-shopify example of the regression:

Here is the proposed solution, to modify this statement, instead of empty types check for all(<future_state_values>):

# collect missing future_state
missing_future_state_cursor_values_per_stream = {
    stream_name: future_state 
    for stream_name, future_state in future_state_cursor_values_per_stream.items()
    if not future_state
}
                    
assert not missing_future_state_cursor_values_per_stream, "Future state must be set up for all given streams. Streams without the `future_state`:\n\n"

This will narrow down the errors to the specific ones, instead of the general error message.

After this change such output is expected, if there are errors for this test:

E       AssertionError: Future state must be set up for all given streams. Streams without the `future_state`:
E         
E         
E       assert not {'blogs': []}

Does this make sense to be patched, real quick?

cc @lazebnyi @oustynova @natikgadzhi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants