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

safe-global / safe-client-gateway / 8876328185
89%

Build:
DEFAULT BRANCH: main
Ran 29 Apr 2024 09:29AM UTC
Jobs 2
Files 612
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

29 Apr 2024 09:27AM UTC coverage: 91.803% (-1.1%) from 92.907%
8876328185

push

github

web-flow
Use Docker Registry cache backend (#1474)

We were using the inline Docker cache for the Docker images produced by `docker-publish-staging` and `docker-publish-release`. The inline Docker cache bundles the cache metadata alongside the image (increasing its size) but it does not scale well with multi-stage builds (which we use).

Additionally, `inline` only supports `mode=min` – https://docs.docker.com/build/cache/backends/#cache-mode. This means that only the final layers which are exported (the last stage of the multi stage build) and therefore cached, resulting if fewer cache hits.

By using a `registry` cache backend (https://docs.docker.com/build/cache/backends/registry/), we can bundle the layers to be cached into a separate image, reducing the size of the staging/production images. A `registry` backend also supports `mode=max` which allows all the intermediary layers to be cached. This should improve the amount of cache hits that we get while building the staging and production images (thus reducing the time spent building each layer).

## Changes

- Change from `inline` to `registry` cache backend.
- Use `mode=max` to cache all intermediary layers.
- Use the external `buildcache` image as a cache reference for all the image layers (staging and production).
- Extract the `env` to the workflow root (to make it easier to share the configuration between jobs).

1912 of 2350 branches covered (81.36%)

Branch coverage included in aggregate %.

6891 of 7239 relevant lines covered (95.19%)

307.3 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
78.41
-2.27% src/routes/transactions/mappers/common/transaction-info.mapper.ts
3
60.0
-30.0% src/routes/transactions/entities/__tests__/human-description.builder.ts
Jobs
ID Job ID Ran Files Coverage
1 run-test:cov - 8876328185.1 29 Apr 2024 09:30AM UTC 1211
92.48
GitHub Action Run
2 run-test:e2e:cov - 8876328185.2 29 Apr 2024 09:29AM UTC 1012
53.33
GitHub Action Run
Source Files on build 8876328185
  • Tree
  • List 612
  • Changed 57
  • Source Changed 0
  • Coverage Changed 155
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #8876328185
  • 81f35682 on github
  • Prev Build on main (#8850717076)
  • Next Build on main (#8876334021)
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

© 2025 Coveralls, Inc