functional2: Suppress helpers in tracebacks #859

Open
opened 2025-06-13 14:04:46 +00:00 by helle · 1 comment
Member

Tracebacks are a mess currently because they show helper functions and should not be

We should suppress helpers in tracebacks by using __tracebackhide__ correctly and giving it a helper so only actual user facing exceptions have their traceback suppressed, still exposing them if actually unexpected things happen within the test framework itself.

gotchas

due to code shuffling for it, fully doing this depends on completing #847, but I will add it to some other code first and fixing #847 with cl/3333 can either include it itself or have it added right after

# Tracebacks are a mess currently because they show helper functions and should not be We should suppress helpers in tracebacks by using `__tracebackhide__` correctly and giving it a helper so only actual user facing exceptions have their traceback suppressed, still exposing them if actually unexpected things happen within the test framework itself. ## gotchas due to code shuffling for it, fully doing this depends on completing #847, but I will add it to some other code first and fixing #847 with [cl/3333](https://gerrit.lix.systems/c/lix/+/3333) can either include it itself or have it added right after
helle self-assigned this 2025-06-13 14:04:46 +00:00
helle added this to the functional2 project 2025-06-13 14:04:46 +00:00
Author
Member

currently working off of the basis that we don't want any of our internal framework code showing up in tracebacks, though this may sometimes still happen if we are just allowing exceptions to bubble up

this may come back bite us in devx, but we can deal with that as it comes up and correct back the other way

@commentatorforall already opened a CL for this tests/functional2: hide uninformative tracebacks which I'll borrow and work off of, we were about to make our own with slightly more specific handling

currently working off of the basis that we don't want any of our internal framework code showing up in tracebacks, though this may sometimes still happen if we are just allowing exceptions to bubble up this may come back bite us in devx, but we can deal with that as it comes up and correct back the other way @commentatorforall already opened a CL for this [tests/functional2: hide uninformative tracebacks](https://gerrit.lix.systems/c/lix/+/3353) which I'll borrow and work off of, we were about to make our own with slightly more specific handling
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#859
No description provided.