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

gauntface / go-html-asset-manager / 22231641949
68%

Build:
DEFAULT BRANCH: main
Ran 20 Feb 2026 04:15PM UTC
Jobs 1
Files 31
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

20 Feb 2026 04:14PM UTC coverage: 67.391% (+2.0%) from 65.421%
22231641949

push

github

web-flow
Optimize S3 requests with caching and concurrency limiting (#708)

* Optimize S3 requests by implementing caching and concurrency limiting

- Introduced a global cache and singleflight in `assets/genimgs` to ensure only one S3 lookup per image.
- Implemented a semaphore to limit concurrent S3 requests to 2 across both lookups and uploads.
- Removed redundant local caching in `opengraphimg`.
- Resolved a potential data race by returning copies of cached slices.
- Ensured no binary artifacts are included in the commit.

Co-authored-by: gauntface <139760+gauntface@users.noreply.github.com>

* Optimize S3 requests with caching, concurrency limiting, and comprehensive tests

- Implemented S3 request limiting (max 2) using semaphores in both `genimgs` cmd and `assets/genimgs` package.
- Added global per-run cache and `singleflight` deduplication for S3 image lookups.
- Refactored `LookupSizes` to use an interface for better testability.
- Added unit tests in `assets/genimgs_test.go` to verify caching and concurrency logic.
- Updated existing tests in `imgtopicture` and `opengraphimg` for compatibility.
- Fixed a data race by returning copies of cached slices.
- Removed redundant local caching.
- Cleaned up unused imports and accidental binary artifacts.

Co-authored-by: gauntface <139760+gauntface@users.noreply.github.com>

* Minor updates

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>

23 of 40 new or added lines in 2 files covered. (57.5%)

1 existing line in 1 file now uncovered.

1705 of 2530 relevant lines covered (67.39%)

11.29 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
67.27
67.27% assets/genimgs/genimgs.go
11
0.0
0.0% cmds/genimgs/genimgs.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% cmds/genimgs/genimgs.go
Jobs
ID Job ID Ran Files Coverage
1 22231641949.1 20 Feb 2026 04:15PM UTC 31
67.39
GitHub Action Run
Source Files on build 22231641949
  • Tree
  • List 31
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22231641949
  • 3f12c7b5 on github
  • Prev Build on main (#22160974502)
  • Next Build on main (#22232899105)
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