• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Warning: This build has drifted.
The coverage report for this pull request build may be inaccurate because its base commit is no longer the HEAD of its target branch.
This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

    • Learn more: For more information on this, see Tracking coverage changes for pull request builds.
    • Fix now: For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
    • Prevent going forward: To avoid this issue with future PRs, see these Recommended CI Configurations.
New Repo Setting:
INCLUDE COVERAGE % WITH WARNINGS ABOUT DRIFTED BUILDS?

Enabling this setting will include a (potentially inaccurate) coverage % with warning messages in status updates for drifted builds.

Adjust setting

pgconfig / api / 21739401176
59%
master: 79%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/setup-go-6
DEFAULT BRANCH: master
Ran 06 Feb 2026 05:06AM UTC
Jobs 1
Files 36
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

06 Feb 2026 05:03AM UTC coverage: 58.769% (+2.6%) from 56.207%
21739401176

Pull #39

github

sebastianwebber
fix: normalize environment_name to uppercase in api

Fix case sensitivity bug where API returns zero memory values when
environment_name parameter uses mixed case (e.g., "Mixed" instead of
"MIXED"). Profile lookups in memory configuration maps require
uppercase keys, but API was doing direct type cast without validation.

This caused all memory parameters (shared_buffers, effective_cache_size,
work_mem, maintenance_work_mem) to return 0 when map lookups failed.

Add profile.Parse() function to centralize parsing logic and ensure
case-insensitive matching through existing Set() normalization.

Fixes #37

Signed-off-by: Sebastian Webber <sebastian@swebber.me>
Pull Request #39: fix: normalize environment_name to uppercase in api

7 of 11 new or added lines in 2 files covered. (63.64%)

697 of 1186 relevant lines covered (58.77%)

20.32 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
32.81
24.75% cmd/api/handlers/v1/config.go
2
90.91
-9.09% pkg/input/profile/profile.go
Jobs
ID Job ID Ran Files Coverage
1 21739401176.1 06 Feb 2026 05:06AM UTC 36
58.77
GitHub Action Run
Source Files on build 21739401176
  • Tree
  • List 36
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #39
  • PR Base - main (#21739129482)
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