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

elastic / cloudbeat / 29004805829
76%
main: 76%

Build:
Build:
LAST BUILD BRANCH: renovate/main-modernc.org-libc-2.x
DEFAULT BRANCH: main
Ran 09 Jul 2026 08:44AM UTC
Jobs 1
Files 245
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

09 Jul 2026 08:25AM UTC coverage: 76.106%. Remained the same
29004805829

Pull #7276

github

cloudsecmachine
fix: make bump-minor.sh idempotent on retrigger

When Nina retriggered the centralized version-bump pipeline yesterday
after our 9.5.0 bump had already succeeded, cloudbeat-version-bump #36
re-ran bump-minor.sh with the same env vars (NEW_VERSION=9.5.0). At that
point main was at 9.6.0 (from #7268), and the sed inside
update_version_beat happily rewrote version.go from 9.6.0 back to
9.5.0. The existing no_new_commits guard couldn't tell the difference
between "advance forward" and "regress backward" — it only asks "did
anything change vs main?" — so the regression commits passed the check
and the script pushed the resulting PR #7275 (now closed).

Two-layer fix:

1. bump-minor.sh: top-level guard. If main is already at
   next_minor_version(NEW_VERSION) (e.g. main=9.6.0 while
   NEW_VERSION=9.5.0), the entire bump has already completed. Exit 0
   before touching any files.

2. common.sh: new is_downgrade() helper (using sort -V so
   9.10.0 > 9.9.0 works correctly). update_version_beat and
   update_arm_templates now call it before writing: if the current
   value is >= the target, they refuse the write and log a clear
   message. Belt-and-suspenders — even if a caller forgets the
   top-level guard, no downgrade can escape the shared helper.

bump-patch.sh and post-minor-merge.sh are unchanged; patch bumps only
ever advance forward, and post-minor-merge is already idempotent via
its branch-exists check plus no_new_commits.

Co-authored-by: Cursor <cursoragent@cursor.com>
Pull Request #7276: fix: make bump-minor.sh idempotent on retrigger

10205 of 13409 relevant lines covered (76.11%)

15.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29004805829.1 09 Jul 2026 08:44AM UTC 245
76.11
GitHub Action Run
Source Files on build 29004805829
  • Tree
  • List 245
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #7276
  • PR Base - main (#28969606006)
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