Skip to content

Driver tests based on sysfs/bus/*/devices aren't future proof #55

Description

@r-c-n

There are quite a few KernelCI regression reports from time to time that point to the same basic bootrr tests based on assert_device_present. These tests rely on sysfs nodes that aren't meant to be used as a stable ABI, so some changes like driver or device file renames and DT re-structuring can make these tests fail when, in fact, they shouldn't be considered as regressions.

Here's a recent example: https://groups.io/g/kernelci-results/message/39167 (this one is based on the KernelCI fork of bootrr)
Introduced by this patch: https://lore.kernel.org/all/20230120092053.182923-20-angelogioacchino.delregno@collabora.com/

Fixing these tests to comply with the current changes or to run different checks depending on the kernel version seems more like a temporary workaround than a proper fix.

Do you think there'll be a better way to test this type of things in the future? Any suggestions from your side?

Here's a related discussion with a bit more background on this: https://lore.kernel.org/lkml/5095423.31r3eYUQgx@diego/

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions