git flow release

Bastardising git flow for release automation

For a number of reasons (some historical, some legacy, some just daft), the optional Interlok components live in various git providers. This isn’t a post that argues that git flow is great; it’s well understood so we use it to remove the friction of understanding a bespoke tagging/branching system. When we do a product release there’s a Jenkins pipeline that builds all the artefacts based on the release branch from git flow release. That means that when we decide that it’s time to prepare for a release, we have to do a git release start on every project and publish that branch; all of which is nice and scriptable.

Continue reading git flow release

Vagrant + Hyper-V sync folders

Issues mounting local folders in vagrant

One of the things that Vagrant (in Hyper-V mode) does if you sync folders with your linux machine is to attempt to mount them via SMB. This can lead to a few problems; you can work through them, but it’s always easier to cut and paste from someone else’s pain right?

Continue reading Vagrant + Hyper-V sync folders

e.printStackTrace() as JSON

Sometimes you don’t want to hide the stacktrace

Let’s suppose that you have an Interlok instance servicing HTTP requests and the data being transferred around is JSON messages. In the event that an exception happens what would normally happen is an exception is printed in the log file and a HTTP 500 error returned back to the client. What if we want to send more information such as the stack trace back to the caller as a JSON message.

Continue reading e.printStackTrace() as JSON

Using Exceptions for Flow Control

GOTOs are back, or perhaps they never went away.

If you search for the phrase “exceptions as flow control” then most of the top hits are about how bad it is and how you shouldn’t. I don’t disagree with that point, exceptions should be unexpected, so you shouldn’t really be treating them as an expectation. Put it another way, exceptions are, in essence, GOTO statements; everyone knows that GOTOs are bad.

Continue reading Using Exceptions for Flow Control

Virtualbox isn't the only tool in the box

Running HPCC systems Virtualbox image under Hyper-V

Now that I don’t have VirtualBox installed, I have to migrate my HPCC Systems environment into Hyper-V; this was a brief flurry of amusement, but in the end I have a HPCC system running under Hyper-V with minimal fuss. Along the way I have discovered something new about the virtual box environment that HPCC Systems makes available for download.

Continue reading Virtualbox isn't the only tool in the box


©. All rights reserved.

Powered by Hydejack v6.6.1