Skip to content

fix(rest): raise on a rate limit when reading immutable release settings - #962

Merged
heurtematte merged 1 commit into
mainfrom
fix/immutable-releases-rate-limit
Nov 19, 2026
Merged

heurtematte merged 1 commit into
mainfrom
fix/immutable-releases-rate-limit

Conversation

@heurtematte

Copy link
Copy Markdown
Contributor

Description

When otterdog read the immutable release settings of a repository or an organization, it took a rate-limited 403 from GitHub for an unavailable feature. It left the settings unset with a warning, and plan and apply then skipped them without saying so. Such a response now fails the read, as a 429 already did and as _get_optional_json does.

Related issue

Relates to #959 (follow-up listed in its notes).

Type of change

  • 🐛 Bug fix (non-breaking change fixing an issue)
  • ✨ New feature (non-breaking change adding functionality)
  • 💥 Breaking change (fix or feature that changes existing behavior, config schema, or default template)
  • 📝 Documentation only
  • 🔧 Refactoring / internal change (no functional change)

Tests

  • Unit tests added / updated under tests/

Manual testing

  • GitHub API calls only stubbed / mocked in unit tests (no live testing)
  • Tested on a real GitHub organization (live GitHub API)

Checklist

  • Documentation updated: no page of docs/ changed. docs/reference/operations/index.md already says that a request still rate-limited after the retries fails, which now also holds for these reads.
  • Default template / examples updated if the config schema changed: not applicable, the schema and the defaults are unchanged.

@heurtematte
heurtematte requested a review from netomi November 19, 2026 12:38
netomi
netomi previously approved these changes Nov 19, 2026
A rate-limited 403 from the immutable releases endpoint of a repository
or an organization was taken as an unavailable feature: the settings
were left unset with a warning, and plan and apply silently skipped
them. Such a response now fails the read, as a 429 already did and as
_get_optional_json does. A 403 that the requester raises as an
InsufficientPermissionsException is checked on its response body too.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: sebastien.heurtematte <sebastien.heurtematte@eclipse-foundation.org>
@sonarqubecloud

Copy link
Copy Markdown

@heurtematte
heurtematte merged commit c853f83 into main Nov 19, 2026
12 checks passed
@heurtematte
heurtematte deleted the fix/immutable-releases-rate-limit branch November 19, 2026 15:58
@heurtematte
heurtematte temporarily deployed to pull-request-preview November 19, 2026 15:58 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
pull-request-preview — 50ddd88c Deployed Nov 19, 2026 by heurtematte via remove the preview #53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants