• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Info updated!

lfit / releng-gerrit_to_platform
93%

Build:
DEFAULT BRANCH: main
Repo Added 07 Mar 2023 09:51PM UTC
Token ZJoTDr8Mj6eECbROcMN6YSvmUHVsRstjO regen
Build 223 Last
Files 8
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • main

13 May 2026 01:38PM UTC coverage: 92.883% (+0.08%) from 92.806%
26951501588

push

github

ModeSevenIndustrialSolutions
Fix(helpers): Support Gerrit 3.x compact change-id

Gerrit 3.x and later pass the hook --change argument in a new
compact form: '<URL-encoded project>~<change_number>' (e.g.
'ccsdk%2Fapps~1') rather than the legacy triplet
'project~branch~Iabc123...'.  The previous get_change_id regex
only matched the legacy triplet and crashed with:

    IndexError: list index out of range

on every patchset-created, comment-added and change-merged event
served by a Gerrit 3.x instance, dropping every event before the
workflow dispatch could run.

A diagnostic capture from a CI deployment of Gerrit 3.13.1
showed every hook firing the same traceback at helpers.py:311
with --change='ccsdk%2Fapps~1', confirming the regex mismatch.

Behaviour for the legacy triplet is preserved: when the input
matches '<project>~<branch>~I<hex>', the function still returns
the I... Change-Id from the commit message footer.  When the
input matches the new compact shape '<project>~<digits>', the
function returns it verbatim.  The compact form is still a
unique, stable identifier per change and works as a
GERRIT_CHANGE_ID workflow input (e.g. for concurrency keys),
which is what almost every downstream Gerrit-style workflow
uses it for.

Unrecognised input now raises ValueError with a clear message
instead of IndexError, so future hook tracebacks point at the
mismatch directly rather than at re.findall(...)[0].

Tests cover both shapes plus the rejection path.

Co-authored-by: Claude <claude@anthropic.com>
Change-Id: Ibea897330
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>

8 of 8 new or added lines in 1 file covered. (100.0%)

522 of 562 relevant lines covered (92.88%)

0.93 hits per line

Relevant lines Covered
Build:
Build:
562 RELEVANT LINES 522 COVERED LINES
0.93 HITS PER LINE
Source Files on main
  • Tree
  • List 8
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
26951501588 main Fix(helpers): Support Gerrit 3.x compact change-id Gerrit 3.x and later pass the hook --change argument in a new compact form: '<URL-encoded project>~<change_number>' (e.g. 'ccsdk%2Fapps~1') rather than the legacy triplet 'project~branch~Iabc123.... push 04 Jun 2026 12:25PM UTC ModeSevenIndustrialSolutions github
92.88
26951485645 main Fix(helpers): Support Gerrit 3.x compact change-id Gerrit 3.x and later pass the hook --change argument in a new compact form: '<URL-encoded project>~<change_number>' (e.g. 'ccsdk%2Fapps~1') rather than the legacy triplet 'project~branch~Iabc123.... push 04 Jun 2026 12:25PM UTC ModeSevenIndustrialSolutions github
92.88
26951477112 main Fix(helpers): Support Gerrit 3.x compact change-id Gerrit 3.x and later pass the hook --change argument in a new compact form: '<URL-encoded project>~<change_number>' (e.g. 'ccsdk%2Fapps~1') rather than the legacy triplet 'project~branch~Iabc123.... push 04 Jun 2026 12:24PM UTC ModeSevenIndustrialSolutions github
92.88
26228031981 main Fix(config): Allow duplicate keys in replication.config Pass strict=False to configparser.ConfigParser() in get_config() so that Gerrit's git-style multi-valued options parse cleanly. Gerrit's pull-replication plugin writes one fetch refspec per... push 21 May 2026 01:11PM UTC ModeSevenIndustrialSolutions github
92.81
26228015963 main Fix(config): Allow duplicate keys in replication.config Pass strict=False to configparser.ConfigParser() in get_config() so that Gerrit's git-style multi-valued options parse cleanly. Gerrit's pull-replication plugin writes one fetch refspec per... push 21 May 2026 01:11PM UTC ModeSevenIndustrialSolutions github
92.81
25859983988 main Fix(config): Allow duplicate keys in replication.config Pass strict=False to configparser.ConfigParser() in get_config() so that Gerrit's git-style multi-valued options parse cleanly. Gerrit's pull-replication plugin writes one fetch refspec per... push 14 May 2026 12:29PM UTC ModeSevenIndustrialSolutions github
92.81
25859917105 main Fix(config): Allow duplicate keys in replication.config Pass strict=False to configparser.ConfigParser() in get_config() so that Gerrit's git-style multi-valued options parse cleanly. Gerrit's pull-replication plugin writes one fetch refspec per... push 14 May 2026 12:27PM UTC ModeSevenIndustrialSolutions github
92.81
25859909150 main Fix(config): Allow duplicate keys in replication.config Pass strict=False to configparser.ConfigParser() in get_config() so that Gerrit's git-style multi-valued options parse cleanly. Gerrit's pull-replication plugin writes one fetch refspec per... push 14 May 2026 12:27PM UTC ModeSevenIndustrialSolutions github
92.81
25859897602 main Fix(config): Allow duplicate keys in replication.config Pass strict=False to configparser.ConfigParser() in get_config() so that Gerrit's git-style multi-valued options parse cleanly. Gerrit's pull-replication plugin writes one fetch refspec per... push 14 May 2026 12:27PM UTC ModeSevenIndustrialSolutions github
92.81
25802813140 main Feat(logging): Add centralised logging framework Adds gerrit_to_platform._logging, an opt-in logging framework configured via G2P_LOG_* environment variables or a new [logging] section in gerrit_to_platform.ini. The framework owns every handler,... push 13 May 2026 01:41PM UTC ModeSevenIndustrialSolutions github
92.88
See All Builds (213)

Badge your Repo: releng-gerrit_to_platform

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc