-
Notifications
You must be signed in to change notification settings - Fork 674
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
[BUG] Task errors are not directly surfaced in unit tests in 1.12.0 #5433
Comments
The issue you're experiencing seems to be related to changes in how Flyte handles task execution and error propagation between versions 1.11.0 and 1.12.0. This behavior might be due to internal changes in Flytekit's exception handling mechanism. To better understand and address this issue, could you please provide some additional information?
This information will help us understand the problem more clearly and find a solution. Sources:
This is an AI-generated response and your feedback is appreciated! Please leave a 👍 if this is helpful and 👎 if it is not. Mention @RunLLM to ask follow-up questions. See runllm.com for more! |
I'm not able to repro actually, this test is passing for me.
I did change the function call to add
|
flyteorg/flytekit#2358 is the culprit. If you want to unblock immediately, in your tests, set the environment variable That said, we plan to revisit that change, since expecting users to set that specific env var to get that behavior is not reasonable. |
Describe the bug
Since upgrading flyte from
1.11.0
->1.12.0
, unit tests to verify that tasks raise expected errors are no longer passing. Instead of surfacing the error, the tests fail with a SystemExit.We've been able to bypass this issue by accessing the
task_function
value directly in the tests, but this is non-intuitive and required a lot of manual updates to our test suite:Slack thread: https://flyte-org.slack.com/archives/CP2HDHKE1/p1716391591793619
Expected behavior
I would expect to be able to test that tasks raise errors directly, without needing to access the internal task function:
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: