functional2: Suppress helpers in tracebacks #859
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#859
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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