Better HN
topnewbestaskshowjobs
Log inSign up

rkday

89 karma · joined Nov 5, 2015 (11y ago) · 17 submissions

Submissions

1.

Show HN: Interposer library for debugging C++ exceptions(github.com ↗)

2 points · by rkday · 6y ago · discuss

2.

Stack corruption and how to debug it(rkd.me.uk ↗)

1 points · by rkday · 6y ago · discuss

3.

Why does bind() to a SOCK_RAW return EADDRNOTAVAIL in FreeBSD but not Linux?(rkd.me.uk ↗)

2 points · by rkday · 7y ago · discuss

4.

Code navigation with fzf/vim/ctags/ripgrep(rkd.me.uk ↗)

1 points · by rkday · 7y ago · discuss

5.

Automating Arch Linux Setup on an RPi(rkd.me.uk ↗)

2 points · by rkday · 7y ago · discuss

6.

Pyforwarder, a Python message forwarding library(rkd.me.uk ↗)

3 points · by rkday · 7y ago · discuss

7.

Automated blog publishing with AWS CodeBuild(rkd.me.uk ↗)

1 points · by rkday · 7y ago · discuss

8.

Learning Rust(rkd.me.uk ↗)

4 points · by rkday · 9y ago · discuss

9.

C++ static analysis tools(rkd.me.uk ↗)

2 points · by rkday · 10y ago · discuss

comment 10y ago · link · parent

I can see that it wouldn't always be ideal, but on this (admittedly relatively niche) codebase - core telephone network infrastructure, which we only support on Ubuntu and which we build with GCC - the kind of clang/MSVC incompatibilities you talk about aren't a problem, and the reliability requirements are high enough that it's worth having CI check for 100% test coverage.

I think it's a question of field rather than philosophy - someone else in this thread said they do the same thing in avionics.

comment 10y ago · link · parent

Thanks for pointing out how old GCC 4.8 is! You're right that a comparison against a later version of GCC is fairer - I've tested with GCC 5.3 (the latest I can easily get) and updated the blog post. (5.3 doesn't spot the missing coverage either.)

comment 10y ago · link · parent

We actually hook it into our build process. Basically:

* we have 100% code coverage except for some well-defined exclusions (e.g. // LCOV_EXCL_LINE comments to exclude code that is logically unhittable)

* on each checkin, our continuous integration server (Jenkins) runs the tests and checks that coverage is still 100%

* if not, it fails the build

This means that _every new checkin_ either has unit tests that exercise all the code, or // LCOV_EXCL comments that make it obvious to a code reviewer what isn't covered (and they can then sensibly judge the risk). It's a good way to keep our code quality high, and avoid the possibility that we quietly skimp on unit tests when under deadline pressure. Also, if new members of the team don't realise how important good unit test coverage is, they'll find that out on their first checkin when the build breaks, rather than several weeks in.

13.

Clang vs. GCC – code coverage checking(rkd.me.uk ↗)

98 points · by rkday · 10y ago · 35 comments

14.

Good documentation, ReadTheDocs and Markdown(projectclearwater.org ↗)

7 points · by rkday · 10y ago · 1 comment

15.

Intermediate Vim: Sessions(rkd.me.uk ↗)

4 points · by rkday · 10y ago · 1 comment

16.

Using start-stop-daemon with the Python interpreter(projectclearwater.org ↗)

1 points · by rkday · 10y ago · 1 comment

17.

Adventures in debugging: etcd, HTTP pipelining, and file descriptor leaks(projectclearwater.org ↗)

56 points · by rkday · 11y ago · 9 comments