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

Unleash / unleash-edge / 35983781302
83%

Build:
DEFAULT BRANCH: main
Ran 24 Sep 2026 09:55AM UTC
Jobs 1
Files 80
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

24 Sep 2026 09:51AM UTC coverage: 82.043% (+0.5%) from 81.495%
35983781302

push

github

web-flow
fix: only keep requested environments from HMAC/tokens (#1881)

* fix: only keep requested environments from HMAC/tokens

context: Currently if edge requests dev and prod tokens, and you've
configured persistence, and you change your startup to only request prod
token, you'll still have a dev token being refreshed, because the
persistence will add it's dev token to the list of tokens.

With this PR we now use the configured tokens  (CLI or HMAC) as the
desired environment configuration, however, we'll keep the token status
of the other persisted tokens in order to save a lookup to Unleash.

Worth discussing, should we even keep the validation status?

* import hashset unconditionally

* also remove features cached for other envs

* Add check for non-empty desired environments

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* only retain desired environments for all caches if set on CLI

* also use token cache for enterprise heartbeat task

* Filter token cache based on desired environments

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Use tokens from refresher, not token_cache for enterprise license heartbeat

* Make sure enterprise license validation uses updated tokens

* added test to verify that all caches are pruned

* remember to use token_cache for finding a valid backend token

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

143 of 165 new or added lines in 8 files covered. (86.67%)

137 existing lines in 7 files now uncovered.

13474 of 16423 relevant lines covered (82.04%)

4473.49 hits per line

Uncovered Changes

Lines Coverage ∆ File
20
30.3
-9.7% crates/enterprise/unleash-edge-enterprise/src/lib.rs
1
64.14
4.05% crates/oss/unleash-edge-types/src/tokens.rs
1
85.32
1.11% crates/oss/unleash-edge/src/edge_builder.rs

Coverage Regressions

Lines Coverage ∆ File
43
85.32
1.11% crates/oss/unleash-edge/src/edge_builder.rs
40
78.65
7.29% crates/oss/unleash-edge-types/src/metrics/instance_data.rs
29
50.33
7.35% crates/oss/unleash-edge-http-client/src/instance_data.rs
14
94.78
0.63% crates/enterprise/unleash-edge-enterprise-integration-tests/src/lib.rs
9
45.55
-0.24% crates/oss/unleash-edge/src/lib.rs
1
81.82
0.02% crates/oss/unleash-edge-feature-refresh/src/delta_refresh.rs
1
94.66
0.37% crates/oss/unleash-edge-feature-refresh/src/lib.rs
Jobs
ID Job ID Ran Files Coverage
1 35983781302.1 24 Sep 2026 09:55AM UTC 80
82.04
GitHub Action Run
Source Files on build 35983781302
  • Tree
  • List 80
  • Changed 16
  • Source Changed 14
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35983781302
  • c04884f5 on github
  • Prev Build on main (#33874930387)
  • Next Build on main (#37328020865)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc