Skip to content

feat: InsufficientInstanceCapacity エラーを503レスポンスで返す機能の追加#76

Merged
Morichan merged 3 commits into
mainfrom
feature/insufficient-capacity
May 25, 2026
Merged

feat: InsufficientInstanceCapacity エラーを503レスポンスで返す機能の追加#76
Morichan merged 3 commits into
mainfrom
feature/insufficient-capacity

Conversation

@Morichan

Copy link
Copy Markdown
Owner

@codecov

codecov Bot commented May 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (bf86b68) to head (8340e13).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #76   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           14        14           
  Lines          742       826   +84     
  Branches        15        17    +2     
=========================================
+ Hits           742       826   +84     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Morichan
Morichan force-pushed the feature/insufficient-capacity branch from fa2151a to db0120d Compare May 25, 2026 06:05
@Morichan
Morichan force-pushed the feature/insufficient-capacity branch 2 times, most recently from 55363a2 to fea1399 Compare May 25, 2026 07:56
- EC2Instance.State に INSUFFICIENT_CAPACITY を追加
- EC2Instance.start() で InsufficientInstanceCapacity の ClientError を
  キャッチし、INSUFFICIENT_CAPACITY ステートをセットするよう変更
- response.py に InsufficientCapacityState (503) を追加
- _analyze_state_from_ec2_instance() の ClientError ハンドリングで
  InsufficientInstanceCapacity の場合は InsufficientCapacityState を返すよう変更
- 上記に対応するユニットテストを追加
@Morichan
Morichan force-pushed the feature/insufficient-capacity branch from fea1399 to 8340e13 Compare May 25, 2026 08:01
@Morichan
Morichan merged commit 036f2ef into main May 25, 2026
3 checks passed
@Morichan
Morichan deleted the feature/insufficient-capacity branch May 25, 2026 08:04
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.

起動時にInsufficient errorが発生した場合のレスポンスが500エラーでわかりづらい

1 participant