Page MenuHomePhabricator

[Java] Add more test scenarios for validating config
Closed, DeclinedPublic8 Estimated Story Points

Description

With basic WireMock infrastructure in place, add more tests for error conditions during stream config fetching to improve reliability of code.

  • Get config returns HTTP/500, with a valid config (the code should treat that as an error and not load it)
  • Get config returns an invalid config
  • Get config times out (StreamConfigFetcher should fail after no more than a reasonable amount of time - 5 second?)
  • Get config is an invalid URL, not connecting at all
  • The above 4 (or a subset), but loading a valid config first, and having an error on the second config reload (the MetricsClient should keep using the valid config and ignore the new one)
  • EventGate returns HTTP/500 (events should be re-enqueued and sent when EventGate recovers)

Event Timeline

Change 902843 had a related patch set uploaded (by EJoseph; author: EJoseph):

[mediawiki/libs/metrics-platform@master] [WIP] Get config returns HTTP/500, with a valid config

https://gerrit.wikimedia.org/r/902843

cjming set the point value for this task to 8.Jan 16 2024, 6:39 PM