From 733e291f57739bfc906fb7eaa2fb67f9c76e9608 Mon Sep 17 00:00:00 2001 From: Zhang Hua Date: Tue, 29 Sep 2026 12:47:41 +0800 Subject: [PATCH 1/2] fix: bump snap-helpers to fix SnapCtl pipe deadlock Update snap-helpers from 46803aa9 to 76f8166 to pull in the upstream fix for the SnapCtl.run() pipe deadlock (albertodonato/snap-helpers#26). The configure hook reads snap config via snaphelpers, which can deadlock when snapctl output exceeds the OS pipe buffer. Partial-bug: #2162621 Signed-off-by: Zhang Hua (cherry picked from commit 38924e194235fb6953f1ff18f922c7dd4c10d3ff) --- pyproject.toml | 2 +- uv.lock | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 60a5886..0c5165a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ dependencies = [ "prettytable>=3.17.0", "pydantic>=2,<3", "pyroute2==0.7.11", - "snap-helpers @ git+https://github.com/albertodonato/snap-helpers@46803aa9d52cc0bb24f76df878dd1010fc08e6a0", + "snap-helpers @ git+https://github.com/albertodonato/snap-helpers@76f8166b640163c0f20887829e31b2cafbfdec11", ] [project.optional-dependencies] diff --git a/uv.lock b/uv.lock index b8cac98..1c0b484 100644 --- a/uv.lock +++ b/uv.lock @@ -124,7 +124,7 @@ requires-dist = [ { name = "pytest", marker = "extra == 'dev'" }, { name = "pytest-mock", marker = "extra == 'dev'" }, { name = "ruff", marker = "extra == 'dev'" }, - { name = "snap-helpers", git = "https://github.com/albertodonato/snap-helpers?rev=46803aa9d52cc0bb24f76df878dd1010fc08e6a0" }, + { name = "snap-helpers", git = "https://github.com/albertodonato/snap-helpers?rev=76f8166b640163c0f20887829e31b2cafbfdec11" }, ] provides-extras = ["dev"] @@ -306,7 +306,7 @@ wheels = [ [[package]] name = "snap-helpers" version = "0.4.2" -source = { git = "https://github.com/albertodonato/snap-helpers?rev=46803aa9d52cc0bb24f76df878dd1010fc08e6a0#46803aa9d52cc0bb24f76df878dd1010fc08e6a0" } +source = { git = "https://github.com/albertodonato/snap-helpers?rev=76f8166b640163c0f20887829e31b2cafbfdec11#76f8166b640163c0f20887829e31b2cafbfdec11" } dependencies = [ { name = "pyyaml" }, ] From eec164268a2fe1ef54e5cb3c14bcd7622a61eaa3 Mon Sep 17 00:00:00 2001 From: Zhang Hua Date: Thu, 5 Nov 2026 14:35:55 +0800 Subject: [PATCH 2/2] ci: pin ruff in tox pep8 environment to prevent CI bitrot The pep8 testenv in tox.ini currently specifies unpinned 'ruff' under its deps, which causes tox to install the latest available version from PyPI during CI runs (currently ruff 0.17.x). Recent ruff releases introduced newer and stricter linter rules by default (such as LOG015 flag for root logger calls and C402 for generator rewrites), which fail against the stable/2024.1 codebase despite no python code changes in backports. In contrast, uv.lock pins ruff to 0.14.6, under which the entire codebase passes all lint checks cleanly. Pin ruff to <=0.14.6 in [testenv:pep8] to align the tox linting environment with the project lockfile and protect stable branch CI from upstream tool bitrot. Signed-off-by: Zhang Hua --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index d411b3e..d9c1a3f 100644 --- a/tox.ini +++ b/tox.ini @@ -35,7 +35,7 @@ commands = [testenv:pep8] deps = - ruff + ruff<=0.14.6 commands = ruff format --diff {[vars]all_path} ruff check {[vars]all_path}