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

connectors-ci: make unhandled error lead to failed report #28789

Merged

Conversation

alafanechere
Copy link
Contributor

@alafanechere alafanechere commented Jul 27, 2023

What

Closes #27425

How

When an unhandled exception is bubbled up to the context __aexit__ we generate an empty report.
The empty report was considered successful as they did not have fail steps.
We change this rule to consider a report successful if it has no failed step result and at least one successful or skipped step result.

@alafanechere alafanechere force-pushed the augustin/connectors-ci/better-error-handling-reporting branch from f618bed to 26b9f06 Compare July 27, 2023 16:28
@octavia-squidington-iii
Copy link
Collaborator

source-openweather test report (commit 26b9f06755) - ❌

⏲️ Total pipeline duration: 2.65s

Step Result

🔗 View the logs here

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-openweather test

This reverts commit 26b9f06.
@octavia-squidington-iii octavia-squidington-iii removed the area/connectors Connector related issues label Jul 27, 2023
@alafanechere alafanechere enabled auto-merge (squash) July 27, 2023 16:57
@alafanechere alafanechere requested a review from a team August 1, 2023 09:10
Copy link
Contributor

@pedroslopez pedroslopez left a comment

Choose a reason for hiding this comment

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

Makes sense to me!

@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "pipelines"
version = "0.1.0"
version = "0.1.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you'll have to bump this one again :)

@alafanechere alafanechere merged commit 33a94ce into master Aug 2, 2023
12 checks passed
@alafanechere alafanechere deleted the augustin/connectors-ci/better-error-handling-reporting branch August 2, 2023 06:52
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.

Connector Test Failure reported as success on failure
3 participants