From: no-reply@sashiko.virtuozzo.com
To: Mirian Shilakadze <mirian.shilakadze@virtuozzo.com>,
khorenko@virtuozzo.com, vasileios.almpanis@virtuozzo.com
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 2/3] selftests/ve: move ve_devcg_bpf into ve/ and reuse ve_selftest.h
Date: Thu, 19 Nov 2026 07:54:07 +0000 [thread overview]
Message-ID: <010701a1f2cc7426-23b0343c-5570-433d-8018-d75f85875248-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261119074808.478064-3-mirian.shilakadze@virtuozzo.com>
Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [Low] selftests/ve: commit message says 'No test logic change' but
fixture behavior changed
- [Low] selftests/ve: TOOLS_INCLUDES now applies to every ve test, not
just one
- [Low] selftests/ve: Makefile comment claims in-tree headers are
preferred but KHDR comes first
- [Low] selftests/ve: commit message cites a kselftest-list.txt change
not present in the patch
--
commit c6588b79206d134a16807ef9ccef5905155c17f6
Author: Mirian Shilakadze <mirian.shilakadze@virtuozzo.com>
selftests/ve: move ve_devcg_bpf into ve/ and reuse ve_selftest.h
This moves the ve_devcg_bpf test into tools/testing/selftests/ve/. It drops the test's private copies of helpers that ve_selftest.h already provides, and moves the TOOLS_INCLUDES flag into the ve Makefile.
> In kselftest-list.txt the test moves from the ve_devcg_bpf collection to
> ve. No test logic change.
[Severity: Low]
Is the kselftest-list.txt sentence accurate? The diff touches no such file, and none is tracked in the tree. selftests/Makefile generates it at install time from TARGETS and the per-target test lists. The move follows from the TARGETS removal and the ve Makefile addition, but the wording reads as if a file was edited.
[Severity: Low]
Is "No test logic change" accurate? The fixture's behavior differs in a few ways:
- FIXTURE_SETUP now uses open_cg2_fd(), which opens the host's existing cgroup2 mount at /sys/fs/cgroup and checks its magic. The old mount_cg2_fd() made a private mount through fsopen()/fsmount(). A host with no cgroup2 mount there now fails the ASSERT_GE in the fixture, where it used to pass.
- FIXTURE_TEARDOWN now calls destroy_ve(), which retries on EBUSY for about a second and prints diagnostics. The old code made a single unlinkat().
- make_ve() removes the new cgroup if the controllers_hidden write fails. The old code did not.
These look reasonable, but the changelog could describe them instead of claiming no change.
> diff --git a/tools/testing/selftests/ve/Makefile b/tools/testing/selftests/ve/Makefile
> index fa4f858227e5e..3f47e34cbb18f 100644
> --- a/tools/testing/selftests/ve/Makefile
> +++ b/tools/testing/selftests/ve/Makefile
> @@ -1,6 +1,9 @@
> # SPDX-License-Identifier: GPL-2.0
> # Makefile for ve selftests.
> CFLAGS += -g -Wall -O2 $(KHDR_INCLUDES)
> +# orig_prog_len/orig_prog_insns may be newer than the system UAPI headers, so
> +# build against the in-tree copy under tools/include/uapi.
> +CFLAGS += $(TOOLS_INCLUDES)
[Severity: Low]
Does this comment match the include order? KHDR_INCLUDES comes first in CFLAGS, and -isystem directories are searched in the order given. A header present in both trees is therefore taken from the installed headers, and the tools/include/uapi copy is only a fallback. The old ve_devcg_bpf Makefile used TOOLS_INCLUDES alone, so this ordering is a silent change. Should the comment be reworded, or the two flags swapped?
[Severity: Low]
Should TOOLS_INCLUDES be applied to every ve test? Only ve_devcg_bpf_test needs it, but the flag now goes into the shared CFLAGS. ve_perms_test, ve_tmpfs_mpol_test and the others are now built with the tools uapi directory on their include path too. A per-target CFLAGS assignment for ve_devcg_bpf_test would keep the change scoped to the test that needs it.
Carry the trailer below into the next revision and Sashiko will not review this patch again.
Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119074808.478064-1-mirian.shilakadze@virtuozzo.com?part=2
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-19 7:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 7:48 [Devel] [PATCH hci-8.2 0/3] selftests/ve: move ve_devcg_bpf and ve_printk into ve/ Mirian Shilakadze
2026-11-19 7:48 ` [Devel] [PATCH hci-8.2 1/3] selftests/ve: open the host cgroup2 mount instead of creating one Mirian Shilakadze
2026-11-19 7:53 ` no-reply
2026-11-19 7:48 ` [Devel] [PATCH hci-8.2 2/3] selftests/ve: move ve_devcg_bpf into ve/ and reuse ve_selftest.h Mirian Shilakadze
2026-11-19 7:54 ` no-reply [this message]
2026-11-19 7:48 ` [Devel] [PATCH hci-8.2 3/3] selftests/ve: move ve_printk " Mirian Shilakadze
2026-11-19 7:56 ` no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=010701a1f2cc7426-23b0343c-5570-433d-8018-d75f85875248-000000@eu-central-1.amazonses.com \
--to=no-reply@sashiko.virtuozzo.com \
--cc=devel@openvz.org \
--cc=khorenko@virtuozzo.com \
--cc=mirian.shilakadze@virtuozzo.com \
--cc=vasileios.almpanis@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.