Skipping Navbar In Feature Specs For Faster CI Runtimes
Experimenting with skipping navbar rendering in feature specs to reduce CI runtime by 2-4%. Created a hook to disable navbar by default, but allow opting back into rendering as needed.
Today I decided to experiment with skipping navbar rendering in our feature spec suite to reduce CI runtime. Our navbar is a 400-line template with dozens of permission checks, and even with the permissions all stubbed to true, it takes a moment just to produce the HTML. The navbar itself is rarely used - some specs assert that navbar has desired elements and navigation works, but generally we visit straight to the desired page. For our 20-minute CI run I expect a 2-4% reduction in runtime, that's 20-40s, every bit helps. The setup is easy: Create an alternate navbar partial and put an if ENV...