Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix verdi devel check-undesired-imports when tui extra is installed (#…
…6693) `verdi devel check-undesired-imports` makes sure that we don't have heavy imports during verdi startup to keep the CLI snappy (especially for tab completion). One of the expensive modules that it checks is `asyncio`. Unfortunately, when you install the tui extra, the trogon package that powers the tui functionality seems to use asyncio, and this makes the test fail. (indeed, one of the TUIs current downsides is that it makes all CLI interactions slower, even if you don't use the TUI subcommand). The PR makes the test more clever and don't check for `asyncio` import when `tui` extras is installed.
- Loading branch information
8039ad9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'pytest-benchmarks:ubuntu-22.04,psql_dos'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.tests/benchmark/test_json_contains.py::test_deep_json[4-4]
308.5108931248128
iter/sec (stddev: 0.00015841
)693.306739203038
iter/sec (stddev: 0.000085426
)2.25
This comment was automatically generated by workflow using github-action-benchmark.
CC: @giovannipizzi @agoscinski @GeigerJ2 @khsrali @unkcpz