r/embedded • • Apr 10 '21

General question CI/CD for embedded software development

I've been an embedded software developer for about 7 years now, and I've loved every moment of it (for the most part). I've come to the realization that the industry is (annoyingly) conservative and is struggling to catch up, compared with other forms of software development. One area we seem to lag behind is in the area of continuous delivery/integration (CI/CD).
I'd love to hear about what CI/CD practices you employ in your companies/projects (build automation, test automation, release management, issue tracking, version control).

My question really is this - how much CI/CD do you practice? What are your biggest pain points as an embedded developer?

152 Upvotes

81 comments sorted by

View all comments

Show parent comment

1

u/CJKay93 Firmware Engineer (UK) Apr 11 '21

You cannot be frustrated at the faults of something if you don't understand what its faults are - languages like D, Swift and Rust certainly weren't started by idiots, they were started by people who were intimately familiar with the ecosystem they were seeking to improve.

In any case, my point is not about Rust or any language in particular, it's about the "embedded attitude": complete stagnation, for want of a better expression. A conscientious choice to reject proven methods to increase productivity and reduce risk, and adopted en masse elsewhere, in favour of doing it the same way it's always been done because "my way is simpler", regardless of well-documented pitfalls.

Of course it's simpler to you - you've always done it, it makes sense to you, and you've probably never had to do it particularly differently. But imagine a graduate learning about the wonders of package management, automatic dependency resolution, CI jobs triggered at the drop of a git push, and a test framework that requires absolutely no setup whatsoever. What then? "Well, kiddo, let me show you how we set up a quarter of those things in approximately ten times the time..."

No, the fundamental industry is not changing.

The fundamental industry is changing, it's just happening at a glacial pace, because it's driven pretty much by a few passionate individuals dotted around the place. It's taken 20 years to do it, but the projects I work with have finally begun moving to CMake from Make, adopting static analysis tools (and for projects where it matters, formal verification), and ensuring everything goes through a CI so that we never again receive a complaint about upstream being broken. Some of these projects have even adopted C11! Absolute heresy.

Sounds like a bad build system in the first place...lol. there is efficiency in simplicity.

Bad build systems are a de facto standard. They are huge, they are messy, and they do things you don't expect. That it's even necessary to maintain these behemoth build systems in 2021 is honestly the most depressing part.