You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: correct typos in default rate limit YAML keys
The embedded default YAML files used `pgp_retieval_limit` (missing 'r')
instead of `pgp_retrieval_limit`, causing the values to never deserialize
into the Go struct. PGP retrieval limits silently fell back to hardcoded
defaults for all agent-count tiers.
Also fixes `policy_interval` -> `policy_limit` in lte10000_limits.yml
and renames `lte2500_limite.yml` -> `lte2500_limits.yml`.
Adds a regression test that verifies all embedded YAML files populate
every limit field, catching future key/struct-tag mismatches.
* test: use reflection to validate YAML keys match struct tags
Replace manually enumerated field assertions with a reflection-based
approach that reads raw YAML keys and verifies each has a matching
`config` struct tag on serverLimitDefaults. This catches typos
automatically without needing to update the test when fields are added.
* Cleanup test code
* Update internal/pkg/config/env_defaults_test.go
---------
(cherry picked from commit 47b6210)
Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
0 commit comments