Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(aws): improve the error if an undefined service is declared in APIs #706

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

jyecusch
Copy link
Member

@jyecusch jyecusch commented Dec 9, 2024

This error can't occur with standard nitric providers, but catching it helps with custom providers that may edit the API spec before generating the AWS specific spec.

Currently this panics with a invalid memory address or nil pointer dereference error message, which makes it unclear what went wrong.

Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.88%. Comparing base (40fb680) to head (fadbbf9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #706      +/-   ##
==========================================
- Coverage   48.91%   48.88%   -0.03%     
==========================================
  Files          28       28              
  Lines        3549     3549              
==========================================
- Hits         1736     1735       -1     
  Misses       1695     1695              
- Partials      118      119       +1     
Flag Coverage Δ
aws 44.82% <ø> (-0.07%) ⬇️
azure 53.29% <ø> (ø)
core 60.76% <ø> (ø)
gcp 47.74% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

cloud/aws/deploytf/api.go Outdated Show resolved Hide resolved
@jyecusch jyecusch force-pushed the fix/undefined-service-errors branch from 1fff737 to 5f31dbd Compare December 9, 2024 23:42
@jyecusch jyecusch force-pushed the fix/undefined-service-errors branch from 5f31dbd to fadbbf9 Compare December 9, 2024 23:45
@jyecusch jyecusch merged commit 2dc61c0 into main Dec 10, 2024
4 checks passed
@jyecusch jyecusch deleted the fix/undefined-service-errors branch December 10, 2024 00:20
@nitric-bot
Copy link

🎉 This PR is included in version 1.16.7 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants