All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
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 3/3] selftests/ve: move ve_printk into ve/ and reuse ve_selftest.h
Date: Thu, 19 Nov 2026 07:56:58 +0000	[thread overview]
Message-ID: <010701a1f2cf0f9e-b263fbce-ecd0-4b92-a310-41ad314a6e63-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261119074808.478064-4-mirian.shilakadze@virtuozzo.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] selftests/ve: commit message cites spec and list changes not in
  the patch
- [Low] selftests/ve: cgroup2 lookup now fixed to /sys/fs/cgroup despite
  'no logic change'
--

commit db60704593e6cbaf854de13ca0609bff94acb9d5
Author: Mirian Shilakadze <mirian.shilakadze@virtuozzo.com>

selftests/ve: move ve_printk into ve/ and reuse ve_selftest.h

This moves the ve_printk selftest and its two helper programs into tools/testing/selftests/ve/. The test now uses the openat-based helpers from ve_selftest.h instead of its own /proc/mounts lookup, system("echo ...") calls, ctid search and enter_cgroup.

> The kernel spec builds ve_printk as a target of its own and has to drop
> it in the same release. In kselftest-list.txt the test moves from the
> ve_printk collection to ve.

[Severity: Low]
Is this sentence accurate for this tree? The TARGETS list in redhat/kernel.spec.template names neither ve nor ve_printk. The patch touches no spec file and no kselftest-list.txt. If these changes live out of tree, could the message say where? Otherwise the sentence could be corrected.

> diff --git a/tools/testing/selftests/ve_printk/ve_printk_test.c b/tools/testing/selftests/ve/ve_printk_test.c
> similarity index 77%
> rename from tools/testing/selftests/ve_printk/ve_printk_test.c
> rename to tools/testing/selftests/ve/ve_printk_test.c

[ ... ]

>  FIXTURE(ve_printk)
>  {
> -	char cgv2_path[PATH_MAX];
> +	int cgv2_fd;
>  	int ctid;
>  };
>  
>  FIXTURE_SETUP(ve_printk)
>  {
> -	char path[PATH_MAX * 2];
> -
> -	ASSERT_EQ(get_mount_path("cgroup2", NULL, self->cgv2_path, sizeof(self->cgv2_path)), 0);
> +	char ctid_str[16];
> +	char path[64];
>  
> -	snprintf(path, sizeof(path), "echo \"+cpuset +cpu +cpuacct +io +memory +hugetlb +pids +rdma +misc +ve\""
> -				     " > %s/cgroup.subtree_control 2>/dev/null", self->cgv2_path);
> -	ASSERT_EQ(system(path), 0);
> +	self->cgv2_fd = open_cg2_fd();
> +	ASSERT_GE(self->cgv2_fd, 0);

[Severity: Low]
Is this really "No test logic change"? The removed get_mount_path("cgroup2", ...) accepted a cgroup2 mount anywhere in /proc/mounts. open_cg2_fd() opens only /sys/fs/cgroup and fails with ENODEV unless it is a cgroup2 mount. On a host with cgroup2 mounted elsewhere, the fixture now fails at ASSERT_GE() where it used to run, and there is no skip reason. The shared helper makes this consistent with the other ve tests, but the commit message should mention the change.

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=3

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

      reply	other threads:[~2026-11-19  7:58 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
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 [this message]

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=010701a1f2cf0f9e-b263fbce-ecd0-4b92-a310-41ad314a6e63-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.