From edb59b6d8e0b1d3595887d29863140b429e51b85 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Tue, 10 Dec 2024 22:21:59 +0000 Subject: [PATCH] buildbot: 4.1.0 -> 4.2.0 https://github.com/buildbot/buildbot/releases/tag/v4.2.0 --- .../allow_git_urls_to_be_renderable_again.patch | 15 +++++++++++++++ .../continuous-integration/buildbot/master.nix | 7 +++++-- .../continuous-integration/buildbot/plugins.nix | 12 ++++++------ 3 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 pkgs/development/tools/continuous-integration/buildbot/allow_git_urls_to_be_renderable_again.patch diff --git a/pkgs/development/tools/continuous-integration/buildbot/allow_git_urls_to_be_renderable_again.patch b/pkgs/development/tools/continuous-integration/buildbot/allow_git_urls_to_be_renderable_again.patch new file mode 100644 index 000000000000..1fadce445163 --- /dev/null +++ b/pkgs/development/tools/continuous-integration/buildbot/allow_git_urls_to_be_renderable_again.patch @@ -0,0 +1,15 @@ +diff --git a/master/buildbot/util/git.py b/master/buildbot/util/git.py +index 0ed9ac3037f..49ef359537c 100644 +--- a/master/buildbot/util/git.py ++++ b/master/buildbot/util/git.py +@@ -67,8 +67,8 @@ def getSshCommand(keyPath, knownHostsPath): + + + def scp_style_to_url_syntax(address, port=22, scheme='ssh'): +- if any(['://' in address, ':\\' in address, ':' not in address]): +- # the address already has a URL syntax or is a local path ++ if not isinstance(address, str) or any(['://' in address, ':\\' in address, ':' not in address]): ++ # the address already has a URL syntax or is a local path or is a renderable + return address + host, path = address.split(':') + return f'{scheme}://{host}:{port}/{path}' diff --git a/pkgs/development/tools/continuous-integration/buildbot/master.nix b/pkgs/development/tools/continuous-integration/buildbot/master.nix index e5bfb0f9c4cc..1d624c3fc17e 100644 --- a/pkgs/development/tools/continuous-integration/buildbot/master.nix +++ b/pkgs/development/tools/continuous-integration/buildbot/master.nix @@ -76,7 +76,7 @@ let in buildPythonApplication rec { pname = "buildbot"; - version = "4.1.0"; + version = "4.2.0"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -85,7 +85,7 @@ buildPythonApplication rec { owner = "buildbot"; repo = "buildbot"; rev = "v${version}"; - hash = "sha256-RPg4eXqpm/F1SSoB4MVo61DgZv/iE2R4VtCkUU69iA8="; + hash = "sha256-eraNF2J5x04qQESkned/2Io9gb2ZL9XzUfWHwSGErNY="; }; build-system = [ @@ -143,6 +143,9 @@ buildPythonApplication rec { # This patch disables the test that tries to read /etc/os-release which # is not accessible in sandboxed builds. ./skip_test_linux_distro.patch + + # https://github.com/buildbot/buildbot/issues/8274 + ./allow_git_urls_to_be_renderable_again.patch ]; postPatch = '' diff --git a/pkgs/development/tools/continuous-integration/buildbot/plugins.nix b/pkgs/development/tools/continuous-integration/buildbot/plugins.nix index 1faf0e56eafe..c13060fac8df 100644 --- a/pkgs/development/tools/continuous-integration/buildbot/plugins.nix +++ b/pkgs/development/tools/continuous-integration/buildbot/plugins.nix @@ -18,7 +18,7 @@ src = fetchurl { url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz"; - hash = "sha256-+ZiOkTZLdwqsZfApW6aQxoNkbcFCaB4BHEjMTZIl+Rg="; + hash = "sha256-pd6ZzrFHKB/acffuM7TxUtXRsZTMIyoUWVqIiilJH/s="; }; # Remove unnecessary circular dependency on buildbot @@ -48,7 +48,7 @@ src = fetchurl { url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz"; - hash = "sha256-IgG/afjU//zrcHuTXMBLlz1gCmB31fWaECIm+UqaMgA="; + hash = "sha256-XfELWX6d4Lat5ByNcsdw9qJd7FjUGL8GRqJkWHKjoTI="; }; buildInputs = [ buildbot-pkg ]; @@ -70,7 +70,7 @@ src = fetchurl { url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz"; - hash = "sha256-E0yFY3PtTZ8XtJGDMh0aRljhTNsWHqHQzcBORTgrCIA="; + hash = "sha256-1osf0WefIjogFk3BqRsX/pjVIzvd18W/NG8LyuFMI/U="; }; buildInputs = [ buildbot-pkg ]; @@ -92,7 +92,7 @@ src = fetchurl { url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz"; - hash = "sha256-KR4M7RSULCM1aS7vYjWuMXIHGpO+xFjfhC8+YncAmlE="; + hash = "sha256-3BqQTTj6WPbmHr6bzR4PcVnl8WcTKokY1YHLuwHYqLw="; }; buildInputs = [ buildbot-pkg ]; @@ -114,7 +114,7 @@ src = fetchurl { url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz"; - hash = "sha256-L7DayDddqrwOyBwgy4w1waCL+49GMtdrCdZNpcLrFXk="; + hash = "sha256-tZBsyaBhewXs0PWxJMtPJ3yv8Z3dS1wESmJI0beMG28="; }; buildInputs = [ buildbot-pkg ]; @@ -136,7 +136,7 @@ src = fetchurl { url = "https://github.com/buildbot/buildbot/releases/download/v${version}/${pname}-${version}.tar.gz"; - hash = "sha256-CnRTSnwhSj6cjrATUuVerGrqt7XxJZYgC5XjUC4+Xrs="; + hash = "sha256-oQ+exQ4eiF+y9JiYPXbJf9azJVgFZgbBby4MRcBLZgQ="; }; buildInputs = [ buildbot-pkg ];