Attention is currently required from: osmith.
fixeria has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-dev/+/42902?usp=email )
Change subject: src/grd: use origin url to get get host + project
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/42902?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: Ib2b201e5238ba7036c6121e8875ee85c73da8751
Gerrit-Change-Number: 42902
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 29 Jun 2026 09:55:15 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: osmith.
fixeria has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-dev/+/42901?usp=email )
Change subject: src/grd: use sys.exit
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/42901?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: I95db013e36242d5126ce07b8a392e6dc0a0ecfdd
Gerrit-Change-Number: 42901
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 29 Jun 2026 09:54:19 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: osmith.
daniel has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-dev/+/42901?usp=email )
Change subject: src/grd: use sys.exit
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/42901?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: I95db013e36242d5126ce07b8a392e6dc0a0ecfdd
Gerrit-Change-Number: 42901
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 29 Jun 2026 09:54:00 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: dexter, fixeria, osmith.
Hello Jenkins Builder, dexter, fixeria,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/onomondo-eim/+/42868?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Code-Review+2 by fixeria, Verified+1 by Jenkins Builder
The change is no longer submittable: Code-Review and Verified are unsatisfied now.
Change subject: contrib/jenkins: run 'rebar3 fmt --check'
......................................................................
contrib/jenkins: run 'rebar3 fmt --check'
The pull request "v0.0.2" had a patch that formatted everything with
erlfmt. Let's run it in CI to keep the style consistent.
Related: https://github.com/onomondo/onomondo-eim/pull/10/commits/8bafdb3839d868d6bc…
Change-Id: I271c90dace6e7b6f052b38054815e6dfcbfa60f5
---
M contrib/jenkins.sh
1 file changed, 10 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/onomondo-eim refs/changes/68/42868/2
--
To view, visit https://gerrit.osmocom.org/c/onomondo-eim/+/42868?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: onomondo-eim
Gerrit-Branch: master
Gerrit-Change-Id: I271c90dace6e7b6f052b38054815e6dfcbfa60f5
Gerrit-Change-Number: 42868
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-dev/+/42902?usp=email )
Change subject: src/grd: use origin url to get get host + project
......................................................................
src/grd: use origin url to get get host + project
For most projects we can get the gerrit host and project from the git
remote URL already. Do this when a git repository has no ".gitreview"
file so it works even if the file is not present.
Change-Id: Ib2b201e5238ba7036c6121e8875ee85c73da8751
---
M src/grd
1 file changed, 28 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-dev refs/changes/02/42902/1
diff --git a/src/grd b/src/grd
index d86225d..3c0cf3f 100755
--- a/src/grd
+++ b/src/grd
@@ -28,14 +28,38 @@
def get_config_path():
ret = f"{get_topdir()}/.gitreview"
- if not os.path.exists(ret):
- print(f"ERROR: config not found: {ret}")
- sys.exit(1)
- return ret
+ return ret if os.path.exists(ret) else None
+
+
+def exit_gerrit_host_project_unknown():
+ print("ERROR: failed to get gerrit host and project")
+ print("Consider adding a .gitreview file:")
+ print(" [gerrit]")
+ print(" host=gerrit.osmocom.org")
+ print(" project=…")
+ sys.exit(1)
+
+
+def get_config_from_origin_url():
+ url = subprocess.run(
+ ["git", "config", "--get", "remote.origin.url"],
+ check=True,
+ capture_output=True,
+ encoding="UTF-8",
+ ).stdout.rstrip()
+
+ if not url.startswith("https://gerrit.osmocom.org/"):
+ exit_gerrit_host_project_unknown()
+
+ host = url.split("/")[2]
+ project = "/".join(url.split("/")[3:])
+ return host, project
def get_config():
config_path = get_config_path()
+ if not config_path:
+ return get_config_from_origin_url()
config = configparser.ConfigParser()
config.read(config_path)
return config["gerrit"]["host"], config["gerrit"]["project"]
--
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/42902?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: Ib2b201e5238ba7036c6121e8875ee85c73da8751
Gerrit-Change-Number: 42902
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>