Repository navigation
tests: better validation of APNS config - #219
Open
FrenchGithubUser wants to merge 1 commit into
Open
FrenchGithubUser wants to merge 1 commit into
FrenchGithubUser wants to merge 1 commit into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #219 +/- ##
==========================================
- Coverage 89.13% 88.64% -0.50%
==========================================
Files 9 9
Lines 598 625 +27
==========================================
+ Hits 533 554 +21
- Misses 65 71 +6
Continue to review full report in Codecov by Harness.
|
Member
Author
|
@famedly-agent review |
ghost
reviewed
Oct 28, 2026
ghost
left a comment
There was a problem hiding this comment.
Review · 2 comments
Nothing blocking: 2 smaller findings.
⚠️ Not reviewed:tests/config-bad-apns.yaml(deleted)
⚪ 2 minor
- ⚪ Empty-string APNS settings count as configured, breaking FCM-only startup ·
src/settings.rs#L191 - ⚪ Partial APNS test's contains check cannot detect message misclassification ·
tests/settings.rs#L104
1 ruled out · why?
Every finding with its reasoning, what I checked and the full trace:
→ review log
famedly-agent f450a71ac630 · 15 min · full trace
FrenchGithubUser
force-pushed
the
tt/apns-config-validation-tests
branch
from
October 28, 2026 13:42
adfc265 to
813cb96
Compare
FrenchGithubUser
marked this pull request as ready for review
October 28, 2026 13:49
FrenchGithubUser
force-pushed
the
tt/apns-config-validation-tests
branch
from
October 29, 2026 12:06
813cb96 to
ecbe240
Compare
FrenchGithubUser
force-pushed
the
tt/apns-config-validation-tests
branch
from
October 29, 2026 14:13
ecbe240 to
0f2843a
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the three direct-APNS settings (apns_key_file_path, apns_team_id, apns_key_id) optional only as a group: a partial configuration is now refused at startup with an error what's missing, instead of silently downgrading hedwig to FCM-only. Empty values count as unset.
Also changed how the bad APNS config tests were working since they were reading a file that made the test fail (expectedly) because the config file drifted from the schema, and not because we actually tested bad configuration.
SYN-166