• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gefyrahq / gefyra / 23596250822
74%

Build:
DEFAULT BRANCH: main
Ran 26 Mar 2026 01:19PM UTC
Jobs 2
Files 106
Run time 1min
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

26 Mar 2026 01:14PM UTC coverage: 74.194% (-0.1%) from 74.343%
23596250822

push

github

web-flow
Go 1020 (#915)

* fix: break infinite loop when HPA scales during mount install

When HPA changes the replica count while a GefyraBridgeMount is in
INSTALLING or PREPARING, the mount gets stuck forever: ready() requires
matching pod counts between original and shadow workloads, but the
shadow still has the old count.

Add replica count mismatch detection to prepared() and route to restore
instead of retrying install when a mismatch is found. This sends the
mount back through RESTORING → PREPARING, which re-clones the workload
with the correct replica count.

- Add installing → restoring and preparing → restoring transitions
- Detect replica count divergence in prepared()
- Handler checks prepared() before install(), sends restore on mismatch
- Add unit tests covering HPA scale scenarios

* style(#GO-1020): apply ruff formatting to handler and tests

* fix(#GO-1020): limit prepared() circuit breaker to INSTALLING state only

In PREPARING, pod count differences are expected — shadow pods are still
starting up. The existing @install.cond guard handles this via
TemporaryError retries until pods are ready.

The circuit breaker (prepared() → restore) is only needed in INSTALLING,
where a pod count mismatch means HPA scaled the original workload and
the mount is genuinely stuck.

417 of 836 branches covered (49.88%)

Branch coverage included in aggregate %.

4643 of 5984 relevant lines covered (77.59%)

1.02 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
70.83
-2.08% gefyra/bridge/carrier2/utils.py
13
86.97
-0.09% gefyra/bridge_mount/carrier2mount/__init__.py
18
85.03
-2.72% gefyra/bridge_mount_state.py
28
55.32
-3.77% gefyra/handler/bridge_mounts.py
Subprojects
ID Flag name Job ID Ran Files Coverage
1 operator 23596250822.1 26 Mar 2026 01:42PM UTC 46
82.87
GitHub Action Run
2 client 23596250822.2 26 Mar 2026 01:42PM UTC 62
68.06
GitHub Action Run
Source Files on build 23596250822
  • Tree
  • List 106
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 08ffddb1 on github
  • Prev Build on main (#23563017844)
  • Next Build on main (#23596539676)
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