[WIP]: nixosTests.nixos-test-driver#154168
[WIP]: nixosTests.nixos-test-driver#154168Synthetica9 wants to merge 15 commits intoNixOS:masterfrom
Conversation
|
Current coverage status: |
7d27424 to
10e05fb
Compare
marijanp
left a comment
There was a problem hiding this comment.
Ok I reviewed parts of this PR now and it seems to me that you made a lot of changes which are not directly related to adding test-driver tests or collecting coverage data. (Correct me if I'm wrong)
A lot of these changes/ refactorings are desireable, and they might fix some bugs/ issues you uncovered with the new tests. These changes should definetly be in this PR.
But we should get rid of all other changes/refactorings and put them in a subsequent PR. So we can focus on the essence of introducing tests for the test-driver, making the review process a lot easier and I'm sure we will be able to get this merged pretty fast.
There was a problem hiding this comment.
It wasn't used anywhere internally nor in any test. Maybe a better solution would be to convert logger into a context manager and use that properly
There was a problem hiding this comment.
What is the reason for factoring these functions out?
There was a problem hiding this comment.
They were only used internally, didn't use anything in the Logger instance, and didn't have close enough relation to the Logger class (imo) to justify being @staticmethod
There was a problem hiding this comment.
Ok, i see why you removed the previous argument
There was a problem hiding this comment.
(it was broken on top of being legacy, see:
In [1]: (
...: 1
...: if False else
...: "aaa"
...: "bbb"
...: "ccc"
...: )
Out[1]: 'aaabbbccc'
Mostly in terms of smaller building blocks like `retry` or `wait_until_succeeds`. Also adds `timeout` to all functions that use `retry`.
avoid a few 'shell injection' style bugs while we're at it
- Unused - Don't need to be a class/static method
3d41f4e to
ac042d6
Compare
Motivation for this change
Add tests for the nixos test driver (very meta).
Coverage is collected in a really hacky way atm, if anyone has tips how to do this nicely I'd be all ears.
As discussed in #146905
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes