Page MenuHomeFreeBSD

netlink: connect netlink tests to the build
ClosedPublic

Authored by melifaro on Dec 15 2022, 12:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 27 2024, 12:34 PM
Unknown Object (File)
Apr 27 2024, 12:34 PM
Unknown Object (File)
Apr 27 2024, 10:59 AM
Unknown Object (File)
Apr 27 2024, 10:40 AM
Unknown Object (File)
Mar 23 2024, 1:56 PM
Unknown Object (File)
Mar 22 2024, 3:29 PM
Unknown Object (File)
Mar 22 2024, 11:42 AM
Unknown Object (File)
Mar 8 2024, 9:09 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ngie added a subscriber: ngie.

The change looks ok, based on the diff I see.

A word of warning though: using ctypes is inherently “dangerous” in the sense that it’s easy to crash the interpreter since ctypes is using cpython in (as the .NET CLR referred to it), “unmanaged mode”. It might make a ton of sense to add CFFI wrappers to clean up the C/cpython interface and to make it less crash prone with invalid input.

Hot take: the PEP8 tools used by phabricator should be updated to ignore inline type hints. It might also be a good idea to update the config to work with black’s defaults (<=88 columns).

tests/atf_python/utils.py
2

It would be nice if this used a more portable idiom.

29

Using latin-1 or ascii instead of utf-8 might be a good idea, given that the modfind API only works with iso8991 character sets.

This revision is now accepted and ready to land.Dec 15 2022, 1:00 PM
This revision now requires review to proceed.Dec 15 2022, 1:58 PM
In D37708#857530, @ngie wrote:

Thank you for the review!

Hot take: the PEP8 tools used by phabricator should be updated to ignore inline type hints. It might also be a good idea to update the config to work with black’s defaults (<=88 columns).

Would be really nice, though I'm not sure where do we store the configs.

This revision was not accepted when it landed; it landed in state Needs Review.Dec 16 2022, 12:04 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.