Attention is currently required from: osmith.
fixeria has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/pysim/+/40952?usp=email )
Change subject: requirements: set cmd2>=2.6.2,<3.0
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
File requirements.txt:
https://gerrit.osmocom.org/c/pysim/+/40952/comment/acee596e_69475f5a?usp=em… :
PS1, Line 4: cmd2>=2.6.2,<3.0
> I'm not sure I understand what you mean. This sets the range of versions of cmd2 from 2.6. […]
Ah, indeed this does not limit those who may have `>=3.0` provided by their distribution. Fine then.
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/40952?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I4ba65ed486247c5670313b75f43a242d264df14b
Gerrit-Change-Number: 40952
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 28 Aug 2025 12:04:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: osmith <osmith(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/40964?usp=email )
Change subject: OBS: lib/debian: format with ruff
......................................................................
OBS: lib/debian: format with ruff
Change-Id: I9aeade2c81f9d7bcfe0c04a0b9c75012217af90f
---
M .ruff.toml
M scripts/obs/lib/debian.py
2 files changed, 36 insertions(+), 31 deletions(-)
Approvals:
pespin: Looks good to me, but someone else must approve
osmith: Looks good to me, approved
Jenkins Builder: Verified
fixeria: Looks good to me, but someone else must approve
diff --git a/.ruff.toml b/.ruff.toml
index d8e72e2..a75a783 100644
--- a/.ruff.toml
+++ b/.ruff.toml
@@ -11,7 +11,6 @@
"scripts/obs/lib/binpkg_deb.py",
"scripts/obs/lib/binpkg_rpm.py",
"scripts/obs/lib/config.py",
- "scripts/obs/lib/debian.py",
"scripts/obs/lib/docker.py",
"scripts/obs/lib/git.py",
"scripts/obs/lib/metapkg.py",
diff --git a/scripts/obs/lib/debian.py b/scripts/obs/lib/debian.py
index 8e0fd5e..9193d66 100644
--- a/scripts/obs/lib/debian.py
+++ b/scripts/obs/lib/debian.py
@@ -15,9 +15,10 @@
except ImportError:
pass
+
def control_add_depend(project, pkgname, version):
- """ :param pkgname: of the meta-package to depend on (e.g. osmocom-nightly)
- :param version: of the meta-pkgname to depend on or None """
+ """:param pkgname: of the meta-package to depend on (e.g. osmocom-nightly)
+ :param version: of the meta-pkgname to depend on or None"""
repo_path = lib.git.get_repo_path(project)
if version:
@@ -30,7 +31,7 @@
def changelog_add_entry(project, version):
- """ :param version: for the new changelog entry """
+ """:param version: for the new changelog entry"""
feed = lib.args.feed
repo_path = lib.git.get_repo_path(project)
changelog_path = f"{repo_path}/debian/changelog"
@@ -52,8 +53,7 @@
with open(changelog_path, "w") as f:
f.write(f"{pkgname} ({version}) unstable; urgency=medium\n")
f.write("\n")
- f.write(" * Automatically generated changelog entry for building the"
- f" Osmocom {feed} feed\n")
+ f.write(f" * Automatically generated changelog entry for building the Osmocom {feed} feed\n")
f.write("\n")
f.write(f" -- Osmocom OBS scripts <info(a)osmocom.org> {date_str}\n")
f.write("\n")
@@ -61,7 +61,7 @@
def fix_source_format(project):
- """ Always use format "3.0 (native)" (e.g. limesuite has "3.0 (quilt)")."""
+ """Always use format "3.0 (native)" (e.g. limesuite has "3.0 (quilt)")."""
repo_path = lib.git.get_repo_path(project)
format_path = f"{repo_path}/debian/source/format"
if not os.path.exists(format_path):
@@ -104,18 +104,19 @@
def changelog_add_entry_if_needed(project, version):
- """ Adjust the changelog if the version in the changelog is different from
- the given version. """
+ """Adjust the changelog if the version in the changelog is different from
+ the given version."""
version_changelog = get_last_version_from_changelog(project)
# Don't use a lower number (OS#6173)
try:
- if packaging.version.parse(version_changelog.split("-")[0]) > \
- packaging.version.parse(version.split("-")[0]):
- print(f"{project}: WARNING: version from changelog"
- f" ({version_changelog}) is higher than version based on git tag"
- f" ({version}), using version from changelog (git tag not pushed"
- " yet?)")
+ if packaging.version.parse(version_changelog.split("-")[0]) > packaging.version.parse(version.split("-")[0]):
+ print(
+ f"{project}: WARNING: version from changelog"
+ f" ({version_changelog}) is higher than version based on git tag"
+ f" ({version}), using version from changelog (git tag not pushed"
+ " yet?)"
+ )
return
except packaging.version.InvalidVersion:
# packaging.version.parse can parse the version numbers used in Osmocom
@@ -129,15 +130,14 @@
if version_changelog == version:
return
- print(f"{project}: adding debian/changelog entry ({version_changelog} =>"
- f" {version})")
+ print(f"{project}: adding debian/changelog entry ({version_changelog} => {version})")
changelog_add_entry(project, version)
def configure_append(project, parameters):
- """ Add one or more configure parameters like --enable-sanitize to the
- dh_auto_configure line, also add the override_dh_auto_configure block
- if missing. """
+ """Add one or more configure parameters like --enable-sanitize to the
+ dh_auto_configure line, also add the override_dh_auto_configure block
+ if missing."""
print(f"{project}: adding configure parameters: {parameters}")
rules = f"{lib.git.get_repo_path(project)}/debian/rules"
override_found = False
@@ -154,20 +154,21 @@
if " -- " in line.replace("\t", " "):
lines[i] = line.replace(" --", f" -- {parameters}", 1)
else:
- lines[i] = line.replace("dh_auto_configure",
- f"dh_auto_configure -- {parameters}", 1)
+ lines[i] = line.replace("dh_auto_configure", f"dh_auto_configure -- {parameters}", 1)
break
if not override_found:
- lines += ["\n",
- "override_dh_auto_configure:\n",
- f"\tdh_auto_configure -- {parameters}\n"]
+ lines += [
+ "\n",
+ "override_dh_auto_configure:\n",
+ f"\tdh_auto_configure -- {parameters}\n",
+ ]
with open(rules, "w") as f:
f.writelines(lines)
def disable_manuals(project):
- """ Disabling manuals speeds up the build time significantly, we don't
- need them for e.g. the asan repository. """
+ """Disabling manuals speeds up the build time significantly, we don't
+ need them for e.g. the asan repository."""
print(f"{project}: disabling manuals")
debian = f"{lib.git.get_repo_path(project)}/debian"
# Remove dependencies
@@ -183,11 +184,16 @@
def build_source_package(project):
fix_source_format(project)
print(f"{project}: building debian source package")
- lib.run_cmd(["dpkg-buildpackage", "-S", "-uc", "-us", "-d"],
- cwd=lib.git.get_repo_path(project))
+ lib.run_cmd(
+ ["dpkg-buildpackage", "-S", "-uc", "-us", "-d"],
+ cwd=lib.git.get_repo_path(project),
+ )
def move_files_to_output(project):
path_output = lib.get_output_path(project)
- lib.run_cmd(f"mv *.tar* *.dsc {shlex.quote(path_output)}", shell=True,
- cwd=lib.config.path_cache)
+ lib.run_cmd(
+ f"mv *.tar* *.dsc {shlex.quote(path_output)}",
+ shell=True,
+ cwd=lib.config.path_cache,
+ )
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/40964?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I9aeade2c81f9d7bcfe0c04a0b9c75012217af90f
Gerrit-Change-Number: 40964
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40967?usp=email )
Change subject: testenv: fix TESTENV_INSTALL_DIR for --binary-repo
......................................................................
testenv: fix TESTENV_INSTALL_DIR for --binary-repo
When --binary-repo is set, "/" must be used as install directory,
without any suffix for the distribution.
Fix for:
realpath: /-debian-trixie/usr/lib/osmo-s1gw: No such file or directory
Fixes: 2152d512 ("testenv: use separate cache dirs per distro")
Change-Id: I1e1ca65fd6a7d77c751dd7138015ff474f8ae576
---
M _testenv/testenv/cmd.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Jenkins Builder: Verified
fixeria: Looks good to me, but someone else must approve
pespin: Looks good to me, approved
diff --git a/_testenv/testenv/cmd.py b/_testenv/testenv/cmd.py
index 6f50677..2cc590a 100644
--- a/_testenv/testenv/cmd.py
+++ b/_testenv/testenv/cmd.py
@@ -33,7 +33,7 @@
install_dir = "/"
else:
install_dir = os.path.join(testenv.args.cache, "podman/install")
- install_dir += distro_cache_suffix()
+ install_dir += distro_cache_suffix()
else:
install_dir = os.path.join(testenv.args.cache, "host/install")
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40967?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I1e1ca65fd6a7d77c751dd7138015ff474f8ae576
Gerrit-Change-Number: 40967
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Attention is currently required from: osmith.
pespin has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ci/+/40964?usp=email )
Change subject: OBS: lib/debian: format with ruff
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/40964?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I9aeade2c81f9d7bcfe0c04a0b9c75012217af90f
Gerrit-Change-Number: 40964
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 28 Aug 2025 11:48:09 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: fixeria.
osmith has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ci/+/40965?usp=email )
Change subject: OBS: --version-append: never override version
......................................................................
Patch Set 1:
(1 comment)
Commit Message:
https://gerrit.osmocom.org/c/osmo-ci/+/40965/comment/08e14bc7_643da00b?usp=… :
PS1, Line 25: While IMHO it is a bad idea to just amend the commit of the last release
> Wait, did somebody amend a commit in their local repository and force-pushed? Or what happened?
yes, but on their own branch, not master.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/40965?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I589ceb08b9e1ff2ccdd54e94216b25e1e40f22fe
Gerrit-Change-Number: 40965
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 28 Aug 2025 11:39:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Attention is currently required from: osmith.
pespin has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/pysim/+/40953?usp=email )
Change subject: docs: fix authors line exceeding the page
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/40953?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Iacbba6c2f74bf2b9f96057e71bde017a11f703a8
Gerrit-Change-Number: 40953
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 28 Aug 2025 11:38:56 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes