• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ThePalaceProject / web-patron / 25005389964
88%

Build:
DEFAULT BRANCH: main
Ran 27 Apr 2026 03:55PM UTC
Jobs 1
Files 14
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Apr 2026 03:54PM UTC coverage: 88.425% (+0.2%) from 88.201%
25005389964

push

github

web-flow
Trigger configuration load on startup (PP-4124) (#126)

**Note:** This PR is stacked on #125, which is, in turn, stacked on
#124, and should not be merged until those have landed.

## Description

Trigger configuration load success or failure immediately upon startup:
- Uses the Instrumentation API to load and validate the app
configuration at server startup, rather than on the first request.
- If config loading fails — missing `CONFIG_FILE`, unreachable URL,
invalid YAML — the error message is printed to stderr and the process
fails fast, exiting with an error before serving any requests.

## Motivation and Context

This change makes misconfiguration immediately visible when deploying or
starting the server locally. Previously, missing or invalid
configuration would not be detected until the first request hit a
handler that called `getAppConfig()`, resulting in a silent failure or a
confusing runtime error rather than a clear startup message.

[Jira PP-4124]

## How Has This Been Tested?

- Manual testing in local dev environment, starting the server in the
following configurations with valid, invalid, and missing
file/unreachable URL:
  - without config (`CONFIG_FILE= npm run start`)
  - with local config file (`CONFIG_FILE=<filename> ...`)
  - with remote config file (`CONFIG_FILE=<url> ...`)
- All checks pass locally.
- [CI
checks](https://github.com/ThePalaceProject/web-patron/actions/runs/24896724703)
pass.

## Checklist:

- [x] I have updated the documentation accordingly.
- [x] All new and existing tests passed.

177 of 201 branches covered (88.06%)

Branch coverage included in aggregate %.

6 of 6 new or added lines in 1 file covered. (100.0%)

289 of 326 relevant lines covered (88.65%)

18.39 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25005389964.1 27 Apr 2026 03:55PM UTC 14
88.43
GitHub Action Run
Source Files on build 25005389964
  • Tree
  • List 14
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • c4e7ee7c on github
  • Prev Build on main (#25003295306)
  • Next Build on main (#25005927941)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc