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

raystack / frontier / 25841154041
42%
main: 44%

Build:
Build:
LAST BUILD BRANCH: feat/gitops-platform-users
DEFAULT BRANCH: main
Ran 14 May 2026 04:15AM UTC
Jobs 1
Files 276
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

14 May 2026 04:10AM UTC coverage: 42.268% (+0.02%) from 42.249%
25841154041

Pull #1608

github

whoAbhishekSah
fix(membership): atomic last-owner guard for SetGroupMemberRole

Applies the same TOCTOU fix from #1590 to the group path:

- validateMinGroupOwnerConstraint now returns the resolved group owner
  role ID alongside the error.
- SetGroupMemberRole passes that ID to replacePolicy so the owner-role
  delete uses DeleteWithMinRoleGuard (atomic in the DB) instead of a
  plain Delete after a stale read.
- replacePolicy returns the generic ErrLastOwnerRole on guard violation;
  SetGroupMemberRole converts it to ErrLastGroupOwnerRole so the handler
  error mapping and the user-facing message stay group-specific.

New unit test covers the race path: pre-check sees multiple owners, but
the DB guard reports the principal as the last owner at delete time.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #1608: refactor(group): migrate AddGroupUsers handler to membership

20 of 24 new or added lines in 3 files covered. (83.33%)

6 existing lines in 1 file now uncovered.

15879 of 37567 relevant lines covered (42.27%)

11.88 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
81.07
0.06% core/membership/service.go
1
23.01
0.29% core/invitation/service.go

Coverage Regressions

Lines Coverage ∆ File
6
81.07
0.06% core/membership/service.go
Jobs
ID Job ID Ran Files Coverage
1 25841154041.1 14 May 2026 04:15AM UTC 276
42.27
GitHub Action Run
Source Files on build 25841154041
  • Tree
  • List 276
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1608
  • PR Base - main (#25795537178)
  • Delete
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