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

theupdateframework / rust-tuf / 29217804779
93%

Build:
DEFAULT BRANCH: develop
Ran 13 Jul 2026 01:38AM UTC
Jobs 1
Files 19
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

08 Jul 2026 03:56PM UTC coverage: 92.726%. Remained the same
29217804779

push

github

erickt
When updating timestamp, make sure we aren't rolling back snapshot

This implements [TUF-1.0.5 §5.2.2.2], which states:

> The version number of the targets metadata file, and all
> delegated targets metadata files (if any), in the trusted snapshot metadata
> file, if any, MUST be less than or equal to its version number in the new
> snapshot metadata file. Furthermore, any targets metadata filename that was
> listed in the trusted snapshot metadata file, if any, MUST continue to be
> listed in the new snapshot metadata file.  If any of these conditions are
> not met, discard the new snapshot metadadata file, abort the update cycle,
> and report the failure.

Furthermore, it adds three tests to:

* make sure rollbacks are prevented
* that trusted target roles cannot be removed in a normal update.
* that we can remove a target role with a root roll.

Fixes #294.

[TUF-1.0.5 §5.2.2.2]: https://github.com/theupdateframework/specification/blob/39c80de07/tuf-spec.md?plain=1#L1163

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

70 existing lines in 1 file now uncovered.

9765 of 10531 relevant lines covered (92.73%)

285.68 hits per line

Coverage Regressions

Lines Coverage ∆ File
70
91.7
0.0% tuf/src/database.rs
Jobs
ID Job ID Ran Files Coverage
1 29217804779.1 13 Jul 2026 01:38AM UTC 19
92.73
GitHub Action Run
Source Files on build 29217804779
  • Tree
  • List 19
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 515be8e8 on github
  • Prev Build on develop (#29175512594)
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