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

CAT: handle discovery error on previous catalog retrieval #23992

Conversation

alafanechere
Copy link
Contributor

@alafanechere alafanechere commented Mar 13, 2023

What

We can't retrieve the previous connector version discovered catalog when the connector's current configuration is not compatible with the previous connector version. This is expected if backward incompatible changes where introduced on a branch and should make the backward compatible tests fail.

But even if the backward compatibility tests are bypassed the tests are still failing because we're using a fixture to check if the backward compatibility tests can be skipped. And in this fixture, we check the content of the previous catalog.

How

Handle discovery error in the previous_discovered_catalog_fixture: a None catalog is returned if the discovery failed.
This will make the skip_backward_compatibility_tests_fixture execution not fail.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 13, 2023

Affected Connector Report

NOTE ⚠️ Changes in this PR affect the following connectors. Make sure to do the following as needed:

  • Run integration tests
  • Bump connector or module version
  • Add changelog
  • Publish the new version

✅ Sources (1)

Connector Version Changelog Publish
source-railz 0.1.1
  • See "Actionable Items" below for how to resolve warnings and errors.

✅ Destinations (0)

Connector Version Changelog Publish
  • See "Actionable Items" below for how to resolve warnings and errors.

✅ Other Modules (0)

Actionable Items

(click to expand)

Category Status Actionable Item
Version
mismatch
The version of the connector is different from its normal variant. Please bump the version of the connector.

doc not found
The connector does not seem to have a documentation file. This can be normal (e.g. basic connector like source-jdbc is not published or documented). Please double-check to make sure that it is not a bug.
Changelog
doc not found
The connector does not seem to have a documentation file. This can be normal (e.g. basic connector like source-jdbc is not published or documented). Please double-check to make sure that it is not a bug.

changelog missing
There is no chnagelog for the current version of the connector. If you are the author of the current version, please add a changelog.
Publish
not in seed
The connector is not in the seed file (e.g. source_definitions.yaml), so its publication status cannot be checked. This can be normal (e.g. some connectors are cloud-specific, and only listed in the cloud seed file). Please double-check to make sure that it is not a bug.

diff seed version
The connector exists in the seed file, but the latest version is not listed there. This usually means that the latest version is not published. Please use the /publish command to publish the latest version.

@davydov-d
Copy link
Collaborator

Looks good to me, thanks!

Comment on lines +314 to +315
logging.warning(
"\n DISCOVER on the previous connector version failed. This could be because the current connector config is not compatible with the previous connector version."
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we log what we think the previous version is? That might help debugging.

@alafanechere
Copy link
Contributor Author

alafanechere commented Mar 14, 2023

/publish connector=bases/connector-acceptance-test auto-bump-version=false

🕑 Publishing the following connectors:
bases/connector-acceptance-test
https://github.com/airbytehq/airbyte/actions/runs/4413492756


Connector Did it publish? Were definitions generated?
bases/connector-acceptance-test

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@alafanechere alafanechere enabled auto-merge (squash) March 14, 2023 08:24
@alafanechere alafanechere merged commit 89f531f into master Mar 14, 2023
@alafanechere alafanechere deleted the augustin/cat/fix-discover-backward-compatibility-when-config-changed branch March 14, 2023 08:43
adriennevermorel pushed a commit to adriennevermorel/airbyte that referenced this pull request Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants