Miloš Prchlík
Miloš Prchlík
> Tried to fix traceback for weird debug level in [0c630b7](https://github.com/teemtee/tmt/commit/0c630b78505b13ad8e32c2f50dfe05fd8ed1b248) but ruff is not happy. @happz, any suggestion how to better fix the uncatched exception without moving the `import`...
> Tried to fix traceback for weird debug level in [0c630b7](https://github.com/teemtee/tmt/commit/0c630b78505b13ad8e32c2f50dfe05fd8ed1b248) but ruff is not happy. @happz, any suggestion how to better fix the uncatched exception without moving the `import`...
> > How can I trigger that traceback? > > ``` > TMT_DEBUG=weird tmt plan show > ``` > > With `main` or with the fix in [0c630b7](https://github.com/teemtee/tmt/commit/0c630b78505b13ad8e32c2f50dfe05fd8ed1b248) it just...
> Try out [b09d66b](https://github.com/teemtee/tmt/commit/b09d66bbc9913e17f4dc08e97b80cb18c46817a1) to make `_bootstrap_logger` safe for arbitrary import orders. It moves the `TMT_DEBUG` check to `click` and in bootstrap it has a fallback to `0` if it...
@psss can you try it out with reverted last commit & the following applied? ```diff diff --git a/tmt/plugins/__init__.py b/tmt/plugins/__init__.py index 7c987e17..5d8277e0 100644 --- a/tmt/plugins/__init__.py +++ b/tmt/plugins/__init__.py @@ -389,22 +389,20 @@...
> @happz I had looked at the `ModuleImporter` and it kinda bothers me, mainly because it doesn't play well with IDE navigation... It plays nicely with my VSCode instance! :)...
@psss the fix for module import: https://github.com/teemtee/tmt/pull/3240
> @janhavlin can you share please here some practices that could be maybe used? Like: > > https://python-secret-type.readthedocs.io/en/latest/ Nice, I was thinking about something like this, and it demonstrates the...
A custom class to hold an environment has been proposed in https://github.com/teemtee/tmt/pull/2612. Once reviewed, we can add a subclass to hold secrets or implement custom type for values that are...
A summary from the hacking session: * secrets for tests * these would be passed to test environments, shall be redacted in tmt logs * `tmt run` will gain options...