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

Problem: IGNORE_TRACEBACK_FROM_DIAGNOSTICS broken #713

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

olethanh
Copy link
Collaborator

Symptom:
The CustomError from the diagnostics VM was printed even if if IGNORE_TRACEBACK_FROM_DIAGNOSTICS was set to True (the default)

Analysis:
This was caused by the refactoring of the fastapi_example/main.py file done in fe9235a
Which changed the output used to detect the error to catch

Solution:
Fix detection string

Copy link

codecov bot commented Oct 28, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 62.58%. Comparing base (b113406) to head (fa0080e).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/aleph/vm/orchestrator/run.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #713   +/-   ##
=======================================
  Coverage   62.58%   62.58%           
=======================================
  Files          69       69           
  Lines        6140     6140           
  Branches      496      496           
=======================================
  Hits         3843     3843           
  Misses       2147     2147           
  Partials      150      150           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@Psycojoker Psycojoker left a comment

Choose a reason for hiding this comment

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

I'm confused about why the builds fails since this seems totally unrelated to this PR (rust error for some reason) but otherwise LGTM

Symptom:
The CustomError from the diagnostics VM was printed even if if IGNORE_TRACEBACK_FROM_DIAGNOSTICS was set to True (the default)

Analysis:
This was caused by the refactoring of the fastapi_example/main.py file
done in fe9235a
Which changed the output used to detect the error to catch

Solution:
Fix detection string
@olethanh olethanh force-pushed the ol-IGNORE_TRACEBACK_FROM_DIAGNOSTICS-broken branch from 183925c to fa0080e Compare November 6, 2024 10:15
@olethanh olethanh merged commit 662c0c0 into main Nov 6, 2024
21 of 22 checks passed
Antonyjin pushed a commit that referenced this pull request Nov 19, 2024
Symptom:
The CustomError from the diagnostics VM was printed even if if IGNORE_TRACEBACK_FROM_DIAGNOSTICS was set to True (the default)

Analysis:
This was caused by the refactoring of the fastapi_example/main.py file
done in fe9235a
Which changed the output used to detect the error to catch

Solution:
Fix detection string
Antonyjin pushed a commit that referenced this pull request Nov 19, 2024
Symptom:
The CustomError from the diagnostics VM was printed even if if IGNORE_TRACEBACK_FROM_DIAGNOSTICS was set to True (the default)

Analysis:
This was caused by the refactoring of the fastapi_example/main.py file
done in fe9235a
Which changed the output used to detect the error to catch

Solution:
Fix detection string
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.

2 participants