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

systemd / systemd / 15889795658
72%

Build:
DEFAULT BRANCH: main
Ran 26 Jun 2025 03:29AM UTC
Jobs 1
Files 1916
Run time 4min
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

25 Jun 2025 05:44PM UTC coverage: 72.107% (+0.03%) from 72.081%
15889795658

push

github

yuwata
journal-gatewayd: fix handling of num_skip pointing beyond the last entry

When `num_skip` is supplied to the `Range` header, journal-gatewayd
always returns the very last record even though it should have been
skipped. This is because the `sd_journal_next_skip` always returns
non-zero value on the first call, leading to one iteration of the
`request_reader_entries` returning the last record.

To avoid this unexpected behavior, check that the number of lines we
have skipped by is not lower than the requested skip value. If it is,
then it means there are lines which should not be returned now -
decrement the n_skip counter then and return from the function, closing
the stream if follow flag is not set.

Fixes #37954

6 of 8 new or added lines in 1 file covered. (75.0%)

168 existing lines in 33 files now uncovered.

300532 of 416788 relevant lines covered (72.11%)

712881.46 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
77.36
-0.06% src/journal-remote/journal-gatewayd.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
44.54
0.08% src/basic/terminal-util.c
1
55.36
-0.05% src/core/socket.c
1
77.37
-0.17% src/core/transaction.c
1
74.43
-0.11% src/import/importd.c
1
73.65
-0.6% src/import/import-fs.c
1
92.16
-0.05% src/libsystemd/sd-journal/journal-file.c
1
66.74
10.13% src/login/pam_systemd.c
1
73.86
-0.08% src/machine/machinectl.c
1
69.54
-0.24% src/machine/machined-varlink.c
1
72.23
-0.09% src/network/networkd-dhcp4.c
1
83.95
-0.16% src/network/networkd-route-nexthop.c
1
95.65
-4.35% src/oom/oomd-util.h
1
49.92
-0.16% src/shared/ptyfwd.c
1
94.64
-0.11% src/test/test-time-util.c
1
75.0
-0.48% src/udev/udev-spawn.c
2
57.76
-0.41% src/journal-remote/journal-upload.c
2
84.77
-0.12% src/network/networkd-link.c
3
76.4
-0.19% src/core/execute.c
3
91.49
-6.38% src/core/unit.h
3
73.24
-1.06% src/libsystemd-network/sd-ipv4acd.c
3
64.56
-0.41% src/libsystemd/sd-journal/journal-verify.c
3
68.94
-0.17% src/network/networkd-ndisc.c
3
79.92
-0.17% src/udev/udev-rules.c
4
66.67
-1.39% src/resolve/resolved-llmnr.c
5
72.38
-0.18% src/core/exec-invoke.c
7
75.85
-1.89% src/journal-remote/journal-upload-journal.c
7
79.94
-1.11% src/network/networkd-manager.c
8
70.13
-1.46% src/journal-remote/journal-remote-main.c
9
69.87
-1.06% src/resolve/resolved-dns-scope.c
12
83.91
-1.18% src/resolve/resolved-dns-dnssec.c
13
77.6
-1.61% src/core/job.c
24
63.81
-0.84% src/core/service.c
42
79.79
-0.98% src/core/manager.c
Jobs
ID Job ID Ran Files Coverage
1 15889795658.1 26 Jun 2025 03:29AM UTC 1916
72.11
GitHub Action Run
Source Files on build 15889795658
  • Tree
  • List 1916
  • Changed 65
  • Source Changed 7
  • Coverage Changed 63
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15889795658
  • a7bfb9f7 on github
  • Prev Build on main (#15864121842)
  • Next Build on main (#15915051363)
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