Saturday, 16 May 2026

Dependabot Zero

Measures become targets, and so they should or why are you measuring?

As Github rolled out CodeQL and Dependabot it was inevitable that Dependabot Zero would become a thing.

We have been chasing Dependabot Zero all year, and just as it became a squad measure we achieved zero. Of course the next day seven new vulnerabilities were discovered.

Having baselined we can now keep up. We have good test coverage and CI/CD, and we have enforced a single maven dependency management artifact, creating a modular monolith, so we can now respond to each new crop of vulnerabilities as they are discovered.

Sunday, 5 January 2025

Routine competance

My daughters created a Gingerbread House, as they have for a decade. They can now do it with such routine, practiced ease that it hardly seems like a challenge, but the competance is built upon layers of memory, and tempered with focus and care.

Saturday, 17 August 2024

Our doors are always open

I extracted the text:

Portentum plagens tua si caret asse commena
Pergerian numinis resonat celer intus amice
Si tamen esurit luges maxilla calabit
Ostia nam miseris fraler sunt semper aperta

Which google translates as:

If your plagiarism is lacking, please pay attention to it
The pergerian of the god echoes quickly within the friend
But if he is hungry, his jaws will warm
For the doors are always open to the poor brothers

This is what I think it means:

If you are sick please tend it yourself
As the will of god spreads quickly to your friends
But if you are hungry, you will be fed
For our doors are always open to the poor

Thursday, 22 February 2024

REMEMBRANCE.md - Tombstones for git projects

There is something wrong with the idea that git gives you confidence to delete.

As so often this is from the perspective of the individual programmer.

Sure, you can delete your code and you can retreive it. Well done you, but you are relying on your memory.

Unlike mere programmers Developers are fully interchangeable members of a multi-decade team.

Tombstones

In the world of online publishing there is a concept of a 'tombstone' which is located at the URL of a retracted paper or any other entity removed for a reason. There are similar usages in programming.

A Book of Remembrance as a collection of Tombstones

My grandfather's ashes were, I believe, scattered at sea, but as a child I was impressed that he still had an entry in the Book of Remembrance at the Crematorium, which gave us a place to visit, and as my unsentimental Grandmother might have said, took up a lot less room.

Now these remebrances are virtual.

Gone but Not Forgotten

Even after using git for a long time Developers still do not delete modules, files or even lines of code. They comment them out, or just leave them in place, holding an enormous amount of context in their heads.

Let's not criticise them, lets take their concern seriously. They want to be able to find things themselves and for future Developers to know what was useful, even if it is not currently required.

REMEMBRANCE.md

At the top of every repository there HAS to be a README.md (or you get nagged by github); similarly we should add a REMEMBRANCE.md which takes the following form:


| File                |    Date    | Description and Reason for Deletion                          |
|---------------------|:----------:|:-------------------------------------------------------------|
| maven-tomcat-plugin | 2013-11-11 | An embedded Tomcat, for testing. The team just walked away   |
| my-perl-script.pl   | 2019-03-23 | A script to remove stones from horses hooves. Moving on up.  |
| tpp-module          | 2024-02-22 | Finished polishing, flushing now.                            |

Lest We Forget

Example REMEMBRANCE.md
FileDateDescription and Reason for Deletion
maven-xxx-plugin 2013-11-11 An embedded Tomcat, for testing. The team just walked away
my-perl-script.pl 2019-03-23 A script to remove stones from horses hooves. Moving on up.
tpp-module 2024-02-22 Finished polishing, flushing now.

This simple practice will give Developers the confidence to delete and unleash the promise of clean projects that git offers.

PS Spelling

It is Remembrance, not Rememberance, I looked it up, though I prefer Rememberance.

PPS

If you have gone all in on the one repository per module microservice architecture you probably need a central place to put a REMEMBRANCE.md that covers the repositories you archive.

Friday, 16 February 2024

Melati Day - Twenty Five Year Anniversary

Happy Melati Day!

On February 16th 2000 WilliamC made the first commit to Melati.

https://github.com/Melati/Melati/commit/7a6fb6762cdbb835b4ff1aeb987bf1671cc598bd

The name ...

  Indonesia's national flowers: the melati (small white sweet smelling
flower) ...
:-)
Why it's a coffee variety (at my favourite shop here in The Hague) I
don't know---I'll ask her next time I'm in.

On 11th July that year we held Melati One.

PS Some five years later git was born!

Thursday, 25 January 2024

Five Element Maven Version Numbering System (N5)

Five element unique

The Five Element Maven Version Numbering System (N5) addresses the problem of wack-a-mole Maven dependency management: through the combination of excessive modularisation, microservices fervour, XML Declarative Project Object Models and non-unique (SemVer) versioning enterprise Maven Java projects become unmanageable after about five years.

The solution is a sequential identifier which is unique across the space, and does not require xml parsing to modify.

My first three proposals represent blundering steps towards the N5 Maven Version numbering system.

N5 Unique Versioned Artifact Identifier (Maven version)

\dCode for project
\d\d\dCode for repository
\d+Major
\d+Minor
\d+Patch

The previous version, N6, included the Year between the Repository Code and the SemVer Major Version. This was considered too much.

2.130.2.0.6 works well with the Maven tooling and can be updated over the whole space using sed.

Friday, 19 January 2024

Maven Version Versions and a Regex Block Refactoring of Sequential Identifier

In the first post in this series I had thought about the need for a globally unique incrementable artifect id, in the next post I not only designed but tested a proposal for such a globally unique artifact id and how to change it.

A triumph of thought and testing over trial and error.

So I tried using the new scheme with the Maven Release Plugin.

A depressing journey into the rabbit hole that is Apache, Maven and the Release Plugin, a crucial tool in our pipeline.

It turns out that whilst the Maven Artifact Version I had tested against allowed my new scheme the Release Plugin has its own subset of such versions which are gate-kept by a Regular Expression.

          "^((?:\\d+\\.)*\\d+)" // digit(s) and '.' repeated followed by digit (version digits 1.22.0, etc)
                    + "([-_])?" // optional - or _ (annotation separator)
                    + "([a-zA-Z]*)" // alpha characters (looking for annotation - alpha, beta, RC, etc.)
                    + "([-_])?" // optional - or _ (annotation revision separator)
                    + "(\\d*)" // digits (any digits after rc or beta is an annotation revision)
                    + "(?:([-_])?(.*?))?$"); // - or _ followed everything else (build specifier)

This stops any version which does not start with digits and full stops from being recognised as a version.

Current Incremented Outcome
VTW360-2023-1.0.3-SNAPSHOT Unable to parse the version string F
VTW360.2023.1.0.4-SNAPSHOT Unable to parse the version string F
VTW360-2023.1.0.4-SNAPSHOT Unable to parse the version string F
VTW-360-2023.1.0.14-SNAPSHOT Unable to parse the version string F
VTW-360.2023.1.0.16-SNAPSHOT Unable to parse the version string F
2023-VTW360-1.0.3-SNAPSHOT 2023-VTW361-1.0.4-SNAPSHOT Eh?
2023|VTW-360|1.0.14 Illegal characters in jar name F
2023#VTW-360#1.0.14-SNAPSHOT 2024#VTW-360#1.0.14-SNAPSHOT Eh?
2023.VTW-360.1.0.14-SNAPSHOT 2024.VTW-360.1.0.14-SNAPSHOT Eh?
360.2023-1.0.15-SNAPSHOT 360.2023-2.0.15-SNAPSHOT Eh?
2023.360.1.0.14-SNAPSHOT 2023.360.1.0.15-SNAPSHOT Meh
1.0.19-VTW360-2023.SNAPSHOT hangs Eh?
1.0.19-VTW360-2023-SNAPSHOT 1.0.19-VTW361-2023-SNAPSHOT Eh?
1.0.19-2023-VTW360-SNAPSHOT 1.0.19-2024-VTW360-SNAPSHOT Eh?
1.0.19-YY24-VTW360-SNAPSHOT 1.0.19-YY25-VTW360-SNAPSHOT F
1-0-19-2025-VTW360-SNAPSHOT 1-1-19-2025-VTW360-SNAPSHOT Eh?
360.2023.1.0.16-SNAPSHOT 360.2023.1.0.17-SNAPSHOT MKay

Proposal 3

So we are forced to allocate meaning to digits and place, never a good idea, but it is that or try and change the behaviour of the Release Plugin, a task I do not think I have the time or the energy for.

\dcode for project
\d\d\dcode for repository
\d\d\d\dyear
\d+Major
\d+Minor
\d+Patch

I added the new proposal to the tests, and wrote some more tests based upon the above regex.

We land with 2.130.2024.2.0.6.

However much you think about the problem previous engineers will have constrained your choices.

Sunday, 14 January 2024

Maven version schema change

code version schema change - hotpot.ai

I proposed a new versioning scheme to yield a unique version string for each artifact in our highly modularised Maven java application.

Currently we are running a classic SemVer semantic verioning system. The only shortcoming I can see with SemVer is that it is not globally unique. In the Maven world the version is combined with the artifactId and the groupId to create a globally unique token, but because this is within an XML based Project Object Model (POM) file it is fairly difficult to get that token out without buying into the whole toolchain. As Maven allows ranges (don't use ranges) and inheritance it is practically impossible for mortals to parse a pom correctly.

What problem are we trying to solve?

We want to be able to edit all poms across our collection with a single command to ensure that each version is completely deployed and we have no version clash. We have developed a tool to make the Maven Dependency Tree readable which has allowed us to see how often the team make a change but do not fully roll it out.

The problem we are trying to solve is how to update all usages of an artifact every time it is updated, ensuring we never run with a mixture of versions (almost like a Monolith).

In the wider open source community it is not the responsibility of the library writer to ensure that every usage is updated to the latest version but within an enterprise it is.

Initial proposal

My first proposal, prepending the semantic version number with a unique code for the library, looked good:

SMD110-3.0.8

This system would work if we had started with this or if we were to backfill all previous versions, however we are proposing a change only to new versions and we have to ensure that the new versioing system will play nicely with the existing versions.

By play nicely I mean that SMD110-3.0.8 should be understood to be more recent than 3.0.7.

I had planned to test this by trial and error but then I thought to actually write a test.

Testing the proposal

I found the Maven verson comparison code and wrote some tests.

The tests revealed my assumption to be incorrect (whether this is a bug or not I am not sure), but the tests enabled me to propose a schema change which did play nicely:

    @Test
    public void workableNextYearNewOldComparisonTest() {
        ComparableVersion it = new ComparableVersion("2025-SMD130-2.0.7");
        ComparableVersion previous = new ComparableVersion("2024-SMD130-2.0.6");
        assertTrue(it.compareTo(previous) > 0);
        assertTrue(previous.compareTo(previous) == 0);
        assertTrue(previous.compareTo(it) < 0);
    }

Revised proposal

Prepending the initial proposal with the year is an improvement, the year of publication is useful and it works with the tooling:

<year>-<artefact code>-<semantic version>

2024-SMD110-3.0.8

Test your assumptions, it is easier than trial and error!

Thursday, 30 November 2023

Unique versions as pitons out of Maven Dependency Hell

The whole Maven ecosystem, and more, follows the Semantic Versioning proposal from @mojombo who made a success of being right about most things.

Even Oracle use it (no more ojdbc.jar for them).

The problem Semantic Versioning addressed was the opposing forces of

version lock
the inability to upgrade a package without having to release new versions of every dependent package
version promiscuity
assuming compatibility with more future versions than is reasonable
leading to Dependency Hell.

If that is the problem you have then Semantic Versioning will help. Semantic Versioning helps you live within the Maven ecosystem, if you are contributing to that ecosystem then use Semantic Versioning.

That is not the problem that you have if you dug your very own Dependency Hell due to having a modularisation addiction.
If the problem you have given yourself is creating over a hundred inter-dependent modules because of your desire to obey the injunction Do not Repeat Yourself (DRY) within a modular microservice world the problem you have is achieving consistency.

The Semantic Version string MAJOR.MINOR.PATCH is not unique.

What is actually unique is ARTIFACT.MAJOR.MINOR.PATCH.
Or even uniquer (sic) GROUP.ARTIFACT.MAJOR.MINOR.PATCH.

This is given in the Maven Project Object Model (POM) eg

  <groupId>org.melati</groupId>
  <artifactId>melati-parent</artifactId>
  <version>0.8.0-SNAPSHOT</version>
Using Maven and Java and yadayada you can parse this and get the actual unique identifier you want, but life is too short.

We want to use line based unix tools, grep and sed.

Typical Semantic Version strings

3.0.7
6.0.8
2.0.5
2.0.1
5.0.4
2.0.2
1.0.2
1.0.2
2.0.7
1.1.16
3.0.1
1.0.2
1.0.2
5.0.1
5.0.1
5.0.2
5.0.1

These are not all unique and those that are are accidentally unique.

Another way of achieving the same objective would be to duplicate the artifactId in the version. <version>melati-13.0.15-SNAPSHOT</version>

Or to merely ban whitespace: <artifactId>melati</artifactId>
<version>13.0.15-SNAPSHOT</version>
becomes <artifactId>melati</artifactId><version>13.0.15-SNAPSHOT</version>

This is fragile: someone will reformat the POM using their IDE and it will fall apart.

To achieve uniqueness we will prepend with an Artifact Code, this code will retain the alphabetic ordering of the artifactId and be gappy so that we can insert new artifacts without breaking that ordering. To make it easy to separate from the Semantic Version the code will be followed by a hyphen not a full stop.

SMD110-3.0.8
SMD120-6.0.9
SMD130-2.0.6
SMD140-2.0.2
SMD150-5.0.5
SMD160-2.0.3
SMD170-1.0.3
SMD180-1.0.3
SMD190-2.0.8
SMD200-1.1.17
SMD210-3.0.2
SMD220-1.0.3
SMD230-1.0.3
SMD240-5.0.2
SMD250-5.0.1
SMD260-5.0.3
SMD270-5.0.2

Now that we have a unique string we have pitons to climb out of the hell we dug for ourselves.

	find * -name pom.xml | \
	grep -v target | \
	xargs sed -b --in-place  's/old-unique-version/new-unique-version/g'

Thursday, 28 September 2023

Linux Laptop 2023 as a present

My eldest has been using Linux on a 2012 macbook pro with 16GB and an SSD where the optical drive used to be, something she did herself whilst at school, so for her twenty first birthday I wanted to give her a new Linux laptop which she could be proud of and which also had my stamp on it.

I like Linux, OpenSource and plucky engineering, she likes sustainability and being able to run python simulations.

The problem with the macBook is that it feels like the wifi card is beginning to fail, the screen is cracked and it is heavy by today's expectations.

Canvassing the opinion of the remnants of the Oxford Linux Users Group and googling gave me the following candidates.

Candidates

XPS 13 Plus Laptop

https://www.dell.com/en-uk/shop/cty/pdp/spd/xps-13-9320-laptop/

A phenominal choice of screens, but a maximum of 32mb memory. A three year old Dell laptop would be "pocket money prices", as will this be in three years. Work will give you a Dell. Not a twenty first birthday present.

System76 Pangolin

https://system76.com/laptops/pangolin

Not sure about the logo. Does not seem to believe the UK exists. 64GB not available. Shipping costs are high.

Framework Laptop 13

https://frame.work/gb/en/products/laptop-diy-13-gen-amd

Runner up. Nice idea but I am not convinced anyone wants this in a laptop.

Starlabs Starbook

https://starlabs.systems/products/starbook

Blue Cables; 64gb ram; pre-installed Ubuntu; British startup.

Winner


Saturday, 16 September 2023

Making maven dependency tree readable

We have a super-POM which ties our POM forest into a tree. It takes 24 minutes just to compile. The dependency tree output is overwhelming, but the below leaves you with a fairly managable todo list of problems.

Assuming org.my-project for your package name


mvn dependency:tree -Dverbose > tree.txt
cat tree.txt | \
grep -v Downloading | \
grep org.my-project | \
grep -v 'omitted for duplicate' | \
grep -v -E 'compile[^ ]' | \
grep -v -E 'test[^ ]' | \
grep -v -E 'runtime[^ ]' | \
grep -v -E 'provided[^ ]' | \
grep -v -E '\-SNAPSHOT[^ ]' | \
grep -v -E ':jar:([0-9]\.[0-9]\.[0-9]):provided \(version managed from \1\)' | \
grep -v -E ':jar:([0-9]\.[0-9]\.[0-9]):compile \(version managed from \1\)' | \
grep -v -E ':jar:([0-9][0-9]\.[0-9]\.[0-9]):compile \(version managed from \1\)' | \
grep -v -E ':jar:([0-9]\.[0-9]\.[0-9][0-9]):compile \(version managed from \1\)' | \
grep -v -E ':jar:([0-9][0-9]\.[0-9]\.[0-9][0-9]):compile \(version managed from \1\)' | \
grep -v -E ':jar:([0-9][0-9]\.[0-9]\.[0-9][0-9][0-9]):compile \(version managed from \1\)' \
> conflicts.txt

Output:
[WARNING] 'parent.relativePath' of POM org.my-project.api-registry:api-registry-parent:3.0.4-SNAPSHOT (api-registry\pom.xml) points at org.my-project:architecture-parent instead of org.my-project.base:base, please verify your project structure @ line 5, column 13
[WARNING] 'parent.relativePath' of POM org.my-project:local-dynamodb-parent:4.2.10-SNAPSHOT (local-dynamodb\pom.xml) points at org.my-project:architecture-parent instead of org.my-project.base:base-java8, please verify your project structure @ line 4, column 11
[WARNING] 'parent.relativePath' of POM org.my-project:local-mongodb-parent:5.0.1-SNAPSHOT (local-mongodb\pom.xml) points at org.my-project:architecture-parent instead of org.my-project.base:base-java11, please verify your project structure @ line 5, column 13
[WARNING] 'parent.relativePath' of POM org.my-project.apps:apps:13.0.8-SNAPSHOT (apps\pom.xml) points at org.my-project:architecture-parent instead of org.my-project.core.check:core-base, please verify your project structure @ line 5, column 13
[WARNING] 'parent.relativePath' of POM org.my-project.events.common:events-common-parent:11.12.22-SNAPSHOT (events-common\pom.xml) points at org.my-project:architecture-parent instead of org.my-project.core.check:core-base, please verify your project structure @ line 5, column 13
[WARNING] 'parent.relativePath' of POM org.my-project.apps:events-processor:12.1.23-SNAPSHOT (events-processor\pom.xml) points at org.my-project:architecture-parent instead of org.my-project.core.check:core-base, please verify your project structure @ line 4, column 11
[WARNING] 'parent.relativePath' of POM org.my-project.kews:kews:1.0.0-SNAPSHOT (kews\pom.xml) points at org.my-project:architecture-parent instead of org.springframework.boot:spring-boot-starter-parent, please verify your project structure @ line 6, column 10
[INFO] ---------< org.my-project.api-registry:api-registry-parent >----------
[INFO] -------------< org.my-project.api-registry:api-registry >-------------
[INFO] ---------< org.my-project.api-registry:api-registry-jersey >----------
[INFO] ---------< org.my-project.api-registry:api-registry-spring >----------
[INFO] ------< org.my-project.audit.logging:audit-logging-parent >-------
[INFO] ----------< org.my-project.audit.logging:audit-logger-dao >-----------
[INFO] --------< org.my-project.audit.logging:audit-logger-stepdefs >--------
[INFO] -----< org.my-project.audit.logging:audit-logger-servlet-filter >-----
[INFO] -----< org.my-project.authentication:authentication-parent >------
[INFO] -------< org.my-project.authentication:authentication-service >-------
[INFO] -----< org.my-project.authentication:ucs-authentication-service >-----
[INFO] -------------------< org.my-project.base:base >-------------------
[INFO] -------------------< org.my-project:common-parent >-------------------
[INFO] ------------------< org.my-project:java-extension >-------------------
[INFO] ----------------< org.my-project:common-junit-parent >----------------
[INFO] --------------< org.my-project:common-dynamic-logging >---------------
[INFO] ------------------< org.my-project:pooled-rest-client >-------------------
[INFO] ------------------< org.my-project:api-client-library >-------------------
[INFO] ------< org.my-project.configuration:configuration-parent >-------
[INFO] -------< org.my-project.configuration:configuration-framework >-------
[INFO] ---< org.my-project.configuration:configuration-provider-mongodb >----
[INFO] --------< org.my-project.configuration:configuration-editor >---------
[INFO] --< org.my-project.format.support:content-profile-format-support-parent >--
[INFO] --< org.my-project.format.support:content-profile-format-support >--
[INFO] -----< org.my-project.format.support:format-support-parent >------
[INFO] ---------< org.my-project.format.support:format-support >---------
[INFO] ------< org.my-project.http.stepdefs:http-stepdefs-parent >-------
[INFO] ----------< org.my-project.http.stepdefs:http-stepdefs >----------
[INFO] -------< org.my-project.issuetracing:issuetracing-parent >--------
[INFO] -----------< org.my-project.issuetracing:issuetracing >-----------
[INFO] ---------< org.my-project.jmxsupport:jmxsupport-parent >----------
[INFO] -------------< org.my-project.jmxsupport:jmxnaming >--------------
[INFO] ---< org.my-project.format.support:json-format-support-parent >---
[INFO] ------< org.my-project.format.support:json-format-support >-------
[INFO] --< org.my-project.format.support:jsonld-format-support-parent >--
[INFO] -----< org.my-project.format.support:jsonld-format-support >------
[INFO] ---------------< org.my-project:local-dynamodb-parent >---------------
[INFO] ------------------< org.my-project:local-dynamodb >-------------------
[INFO] ------------< org.my-project:local-elasticsearch-parent >-------------
[INFO] ----------------< org.my-project:local-elasticsearch >----------------
[INFO] ---------------< org.my-project:local-mongodb-parent >----------------
[INFO] -------------------< org.my-project:local-mongodb >-------------------
[INFO] -----------------< org.my-project:local-sftp-parent >-----------------
[INFO] --------------------< org.my-project:local-sftp >---------------------
[INFO] -----------------< org.my-project:local-sqs-parent >------------------
[INFO] ---------------------< org.my-project:local-sqs >---------------------
[INFO] ----------------< org.my-project:localservers-parent >----------------
[INFO] --< org.my-project.microservicesexceptions:microservicesexceptions-parent >--
[INFO] --< org.my-project.microservicesexceptions:microservicesexceptions-interface >--
[INFO] --< org.my-project.microservicesexceptions:microservicesexceptions-exception-builder >--
[INFO] ----------< org.my-project.migration:migration-parent >-----------
[INFO] ---------< org.my-project.migration:migration-framework >---------
[INFO] ---------< org.my-project.migration:migration-dynamodb >----------
[INFO] ----------< org.my-project.migration:migration-mongodb >----------
[INFO] ------------< org.my-project.migration:migration-csv >------------
[INFO] -------< org.my-project.mongodb-client:mongodb-client-parent >--------
[INFO] -----------< org.my-project.mongodb-client:mongodb-client >-----------
[INFO] --< org.my-project.placeholder.stepdef.support:placeholder-stepdef-support-parent >--
[INFO] --< org.my-project.placeholder.stepdef.support:placeholder-stepdef-support >--
[INFO] --------< org.my-project.smd:queuelistener-container-parent >---------
[INFO] ------------< org.my-project.smd:queuelistener-container >------------
[INFO] |  +- org.my-project:java-extension:jar:5.0.3:test (version managed from 5.0.3)
[INFO] --< org.my-project.format.support:separated-value-format-support-parent >--
[INFO] --< org.my-project.format.support:separated-value-format-support >--
[INFO] --------< org.my-project.timemachine:timemachine-parent >---------
[INFO] ------------< org.my-project.timemachine:timemachine >------------
[INFO] ---------< org.my-project.timemachine:timemachine-steps >---------
[INFO] -------------------< org.my-project.apps:apps >-------------------
[INFO] -------------< org.my-project.apps:workflow-common >--------------
[INFO] -----------------< org.my-project.apps:workflow >-----------------
[INFO] ---------------< org.my-project.apps:workflow-web >---------------
[INFO] -------< org.my-project.apps:events-router-state-checker >--------
[INFO] |  +- (org.my-project.core:framework-util:jar:16.1.19:compile - omitted for conflict with 17.0.3)
[INFO] -----------< org.my-project.apps:events-router-rules >------------
[INFO] |  +- (org.my-project.events.common:events-router-common:jar:11.12.21:compile - omitted for conflict with 11.12.20)
[INFO] |  +- (org.my-project.core:framework-util:jar:16.1.19:compile - omitted for conflict with 17.0.3)
[INFO] -------------< org.my-project.apps:router-processor >-------------
[INFO] |  +- (org.my-project.core:framework-util:jar:16.1.19:compile - omitted for conflict with 17.0.3)
[INFO] --------------< org.my-project.apps:service-queue >---------------
[INFO] ----------< org.my-project.assertion:assertion-parent >-----------
[INFO] ----------< org.my-project.assertion:assertion-service >----------
[INFO] ------------< org.my-project.assertion:assertion-api >------------
[INFO] -------------< org.my-project.audit:audit-logger-parent >-------------
[INFO] ---------< org.my-project.audit:audit-logger-servlet-filter >---------
[INFO] -------< org.my-project.backfill:backfill-scripts-parent >--------
[INFO] -------< org.my-project.backfill:patents-backfill-scripts >-------
[INFO] |  |  |  +- (org.my-project.core:framework-util:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO] |  |  |  +- (org.my-project.core:properties:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO] |  |  |  +- (org.my-project.core:framework-util:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.core:aws-common:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.core:properties:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.core:dataset-service:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.ucs:ucs-client:jar:1.2.1:compile - omitted for conflict with 1.1.6)
[INFO] |  |  +- (org.my-project.core:framework-util:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project:api-client-library:jar:3.1.0:compile - omitted for conflict with 5.0.3)
[INFO] ---< org.my-project.backfill:patents-backfill-scripts-mongodb >---
[INFO]    |  |  +- (org.my-project.core:framework-util:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO]    |  |  +- (org.my-project.core:properties:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO]    |  |  +- (org.my-project.core:framework-util:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO]    |  +- (org.my-project.core:aws-common:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO]    |  +- (org.my-project.core:properties:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO]    |  +- (org.my-project.core:dataset-service:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO]    |  +- (org.my-project.ucs:ucs-client:jar:1.2.1:compile - omitted for conflict with 1.1.6)
[INFO]    |  +- (org.my-project.core:framework-util:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO]    |  +- (org.my-project:api-client-library:jar:3.1.0:compile - omitted for conflict with 5.0.3)
[INFO] -----------------< org.my-project:backup-parent >-----------------
[INFO] ----------------< org.my-project:backup-service >-----------------
[INFO] |  |  |  +- (org.my-project.jmxsupport:jmxnaming:jar:2.0.10:compile - omitted for conflict with 2.0.8)
[INFO] ----------< org.my-project.cel.service:cel-service-parent >-----------
[INFO] --------------< org.my-project.cel.service:cel-service >--------------
[INFO] -------------< org.my-project.copyright:cgs-parent >--------------
[INFO] -------------< org.my-project.copyright:cgs-service >-------------
[INFO] ---------------< org.my-project.copyright:cgs-api >---------------
[INFO] ---------------< org.my-project.copyright:cgs-web >---------------
[INFO] |  +- (org.my-project.core:framework-util:jar:17.0.2:test - omitted for conflict with 17.0.3)
[INFO] |  +- (org.my-project.core:framework-util:jar:17.0.1:test - omitted for conflict with 17.0.3)
[INFO] |  +- (org.my-project.core:rest-client:jar:17.0.1:test - omitted for conflict with 17.0.3)
[INFO] |  +- (org.my-project.core:aws-common:jar:17.0.1:test - omitted for conflict with 17.0.3)
[INFO] ----------------< org.my-project.core:core-root >-----------------
[INFO] -------------< org.my-project.core.check:core-check >-------------
[INFO] --------------< org.my-project.core:framework-util >--------------
[INFO] -------------< org.my-project.core.check:core-base >--------------
[INFO] ----------------< org.my-project.core:web-parent >----------------
[INFO] ------------< org.my-project.core:common-web-parent >-------------
[INFO] ----------------< org.my-project.core:common-web >----------------
[INFO] ------< org.my-project.configuration:configuration-parent >-------
[INFO] ---------< org.my-project.configuration:property-config >---------
[INFO] -----------< org.my-project.configuration:data-utils >------------
[INFO] --------------< org.my-project.core:service-parent >--------------
[INFO] -------------< org.my-project.core:rest-api-parent >--------------
[INFO] -------------< org.my-project.core:workflow-parent >--------------
[INFO] ----------------< org.my-project.core:properties >----------------
[INFO] ----------------< org.my-project.core:aws-common >----------------
[INFO] -----------------< org.my-project.core:auth-dao >-----------------
[INFO] ----------------< org.my-project.core:ldap-auth >-----------------
[INFO] ---------------< org.my-project.core:rest-client >----------------
[INFO] ---------------< org.my-project.core:digest-auth >----------------
[INFO] -----------< org.my-project.core:elasticsearch-common >-----------
[INFO] -------------< org.my-project.core:common-rest-api >--------------
[INFO] -------------< org.my-project.core:dataset-service >--------------
[INFO] --------------< org.my-project.core:identity-model >--------------
[INFO] --------< org.my-project.core:duplicate-identity-checker >--------
[INFO] -------------< org.my-project.core:events-generator >-------------
[INFO] -----------------< org.my-project.core:ftp-util >-----------------
[INFO] ------------< org.my-project.core:elastic-search-client >-------------
[INFO] ---------< org.my-project.core.import:core-import-time >----------
[INFO] --------< org.my-project.core.import:core-import-spring >---------
[INFO] --------< org.my-project.core.import:core-import-jersey >---------
[INFO] --------< org.my-project.core.import:core-import-apache >---------
[INFO] --------< org.my-project.core.import:core-import-google >---------
[INFO] --------< org.my-project.core.import:core-import-jackson >--------
[INFO] --------< org.my-project.core.import:core-import-logging >--------
[INFO] ----------< org.my-project.core.import:core-import-aws >----------
[INFO] --------< org.my-project.core.import:core-import-opencsv >--------
[INFO] --------< org.my-project.core.import:core-import-ehcache >--------
[INFO] ---------< org.my-project.core.import:core-import-cglib >---------
[INFO] -----< org.my-project.core.import:core-import-elasticsearch >-----
[INFO] -------< org.my-project.core.import:core-import-hibernate >-------
[INFO] ---------< org.my-project.core.import:core-import-jaxen >---------
[INFO] ---------< org.my-project.core.import:core-import-jsch >----------
[INFO] ---------< org.my-project.core.import:core-import-jstl >----------
[INFO] --------< org.my-project.core.import:core-import-aspectj >--------
[INFO] ------< org.my-project.core.import:core-import-freemarker >-------
[INFO] ----------< org.my-project.core.import:core-import-xml >----------
[INFO] --------< org.my-project.core.import:core-import-servlet >--------
[INFO] ---------< org.my-project.core.import:core-import-javax >---------
[INFO] --------< org.my-project.core.import:core-import-jayway >---------
[INFO] --------< org.my-project.core.import:core-import-github >---------
[INFO] --------< org.my-project.core.import:core-import-jolbox >---------
[INFO] ---------< org.my-project.core.import:core-import-cukes >---------
[INFO] -------< org.my-project.core.import:core-import-logstash >--------
[INFO] --------< org.my-project.core.import:core-import-minidev >--------
[INFO] --------< org.my-project.core.import:core-import-oracle >---------
[INFO] -------< org.my-project.core.import:core-import-codehaus >--------
[INFO] --------< org.my-project.core.import:core-import-eclipse >--------
[INFO] ---------< org.my-project.core.import:core-import-jboss >---------
[INFO] ---------< org.my-project.core.import:core-import-json >----------
[INFO] ---------< org.my-project.core.import:core-import-yaml >----------
[INFO] ------< org.my-project.core.import:core-import-skyscreamer >------
[INFO] ------< org.my-project.core.import:core-import-flapdoodle >-------
[INFO] -------< org.my-project.core.import:core-import-searchbox >-------
[INFO] --------< org.my-project.core.import:core-import-mongodb >--------
[INFO] ----------< org.my-project.core.import:core-import-smd >----------
[INFO] ------------< org.my-project.core.import:core-import >------------
[INFO] -------< org.my-project.core.check:core-check-deduplicate >-------
[INFO] ---------------< org.my-project.core:core-parent >----------------
[INFO] -------------< org.my-project.delivery:delivery-app >-------------
[INFO] -----------< org.my-project.delivery:delivery-service >-----------
[INFO] |  |  +- (org.my-project.core:framework-util:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.core:framework-util:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.core:framework-util:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO] |  +- (org.my-project.core:framework-util:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO] -------------< org.my-project.delivery:delivery-api >-------------
[INFO] |  |  |  +- (org.my-project.core:framework-util:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO] |  |  |  +- (org.my-project.core:framework-util:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO] |  |  |  +- (org.my-project.core:framework-util:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.core:framework-util:jar:17.0.2:compile - omitted for conflict with 17.0.3)
[INFO] -----------< org.my-project.delivery:delivery-client >------------
[INFO] ----< org.my-project.event.framework:event-framework-parent >-----
[INFO] ----< org.my-project.event.framework:event-framework-common >-----
[INFO] ------< org.my-project.event.framework:event-framework-lib >------
[INFO] ---------< org.my-project.event.framework:event-service >---------
[INFO] ------< org.my-project.event.framework:event-framework-api >------
[INFO] |  |  +- (org.my-project.microservicesexceptions:microservicesexceptions-exception-builder:jar:3.0.1:compile - omitted for conflict with 3.0.0)
[INFO] |  +- (org.my-project.placeholder.stepdef.support:placeholder-stepdef-support:jar:2.0.0:test - omitted for conflict with 2.0.2)
[INFO] |  |  +- (org.my-project.placeholder.stepdef.support:placeholder-stepdef-support:jar:2.0.0:test - omitted for conflict with 2.0.2)
[INFO] |  |  +- (org.my-project.placeholder.stepdef.support:placeholder-stepdef-support:jar:2.0.0:test - omitted for conflict with 2.0.2)
[INFO]    +- (org.my-project:java-extension:jar:5.0.2:compile - omitted for conflict with 5.0.0)
[INFO] --< org.my-project.event.framework.rules:event-framework-rules-parent >--
[INFO] -------< org.my-project.event.framework.rules:ev-patent-rule >--------
[INFO] -------< org.my-project.event.framework.rules:cef-reaxys-rule >-------
[INFO] -----< org.my-project.event.framework.rules:scopus-patent-rule >------
[INFO] ----------< org.my-project.events.common:events-common-parent >-----------
[INFO] ----------< org.my-project.events.common:events-router-common >-----------
[INFO] -------------< org.my-project.apps:events-processor >-------------
[INFO] |  |  +- (org.my-project.jmxsupport:jmxnaming:jar:1.0.1:compile - omitted for conflict with 2.0.2)
[INFO] ----------< org.my-project.events.router:events-router-parent >-----------
[INFO] --------------< org.my-project.events.router:events-router >--------------
[INFO] |  +- (org.my-project.core:framework-util:jar:16.1.19:compile - omitted for conflict with 17.0.3)
[INFO] |  +- (org.my-project.core:framework-util:jar:17.0.2:test - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.core:properties:jar:17.0.2:runtime - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.core:framework-util:jar:17.0.2:runtime - omitted for conflict with 17.0.3)
[INFO] |  +- (org.my-project.core:aws-common:jar:17.0.2:test - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.core:rest-client:jar:16.1.7:runtime - omitted for conflict with 17.0.2)
[INFO] |  |  +- (org.my-project.core:aws-common:jar:16.1.7:runtime - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.core:framework-util:jar:16.1.7:runtime - omitted for conflict with 17.0.3)
[INFO] |  +- (org.my-project.core:rest-client:jar:17.0.3:runtime - omitted for conflict with 17.0.2)
[INFO] -----------------< org.my-project.events.router:cel-api >-----------------
[INFO] |  +- (org.my-project.core:framework-util:jar:16.1.19:compile - omitted for conflict with 17.0.3)
[INFO] |  |  +- org.my-project.api-registry:api-registry:jar:3.0.2:compile (version managed from 3.0.3)
[INFO] |  |  +- (org.my-project.core:properties:jar:17.0.2:test - omitted for conflict with 17.0.3)
[INFO] |  +- (org.my-project.core:aws-common:jar:17.0.2:test - omitted for conflict with 17.0.3)
[INFO] ------------------< org.my-project.gis:gis-parent >-------------------
[INFO] ------------------< org.my-project.gis:gis-service >------------------
[INFO] |  |  +- (org.my-project.jmxsupport:jmxnaming:jar:2.0.10:compile - omitted for conflict with 2.0.8)
[INFO] --------------------< org.my-project.gis:gis-api >--------------------
[INFO] |  |  +- (org.my-project.jmxsupport:jmxnaming:jar:2.0.10:compile - omitted for conflict with 2.0.8)
[INFO] |  |  |  +- (org.my-project.microservicesexceptions:microservicesexceptions-exception-builder:jar:3.0.1:compile - omitted for conflict with 3.0.0)
[INFO] |  |  |  +- (org.my-project.timemachine:timemachine:jar:4.0.6:compile - omitted for conflict with 4.0.5)
[INFO] |  |  +- (org.my-project.timemachine:timemachine:jar:4.0.6:compile - omitted for conflict with 4.0.5)
[INFO] --------------< org.my-project.inner:inner-parent >---------------
[INFO] --------------< org.my-project.inner:inner-common >---------------
[INFO] ---------------< org.my-project.inner:inner-model >---------------
[INFO] ---------------< org.my-project.inner:inner-ewii >----------------
[INFO] -------------< org.my-project.inner:ucs-common-service >--------------
[INFO] |  +- org.my-project:api-client-library:jar:5.0.3:compile (version managed from 3.1.0)
[INFO] --------------< org.my-project.inner:inner-adaptor >--------------
[INFO] |  |  +- org.my-project:api-client-library:jar:5.0.3:compile (version managed from 3.1.0)
[INFO] ------------< org.my-project.inner:inner-etl-service >------------
[INFO] |  |  +- org.my-project:api-client-library:jar:5.0.3:compile (version managed from 3.1.0)
[INFO] --------------< org.my-project.inner:inner-etl-api >--------------
[INFO] |  |  |  +- org.my-project:api-client-library:jar:5.0.3:compile (version managed from 3.1.0)
[INFO] --------< org.my-project.inner:inner-integration-service >--------
[INFO] ----------< org.my-project.inner:inner-integration-api >----------
[INFO] ---------------------< org.my-project.kews:kews >---------------------
[INFO] ----------------< org.my-project.lov:lov-parent >-----------------
[INFO] ----------------< org.my-project.lov:lov-service >----------------
[INFO] ------------------< org.my-project.lov:lov-api >------------------
[INFO] -----------< org.my-project.metadata:metadata-parent >------------
[INFO] -----------< org.my-project.metadata:metadata-common >------------
[INFO] -------------< org.my-project.metadata:metadata-dao >-------------
[INFO] ----------< org.my-project.metadata:validation-service >----------
[INFO] ---------< org.my-project.metadata:addonsearch-service >----------
[INFO] -----------< org.my-project.metadata:contributor-dao >------------
[INFO] -----------< org.my-project.metadata:metadata-service >-----------
[INFO] ---------< org.my-project.metadata:metadata-api-adapter >---------
[INFO] -------------< org.my-project.metadata:metadata-api >-------------
[INFO] -----------< org.my-project.metadata:contributor-api >------------
[INFO] ---------< org.my-project.event.framework.rules:sample-rule >---------
[INFO] -------------< org.my-project.oa:open-access-parent >-------------
[INFO] ------------< org.my-project.oa:open-access-service >-------------
[INFO] |  +- (org.my-project.core:framework-util:jar:17.0.1:compile - omitted for conflict with 17.0.3)
[INFO] ------------< org.my-project.oa:open-access-workflow >------------
[INFO] |  |  +- (org.my-project.core:framework-util:jar:17.0.1:compile - omitted for conflict with 17.0.3)
[INFO] --------------< org.my-project.oa:open-access-api >---------------
[INFO] |  |  +- (org.my-project.core:framework-util:jar:17.0.1:compile - omitted for conflict with 17.0.3)
[INFO] --------------< org.my-project.oa:open-access-web >---------------
[INFO] |  |  +- (org.my-project.core:framework-util:jar:17.0.1:compile - omitted for conflict with 17.0.3)
[INFO] |  +- (org.my-project.core:framework-util:jar:17.0.1:compile - omitted for conflict with 17.0.3)
[INFO] ----------< org.my-project.oa:open-access-workflow-web >----------
[INFO] |  |  |  +- (org.my-project.core:framework-util:jar:17.0.1:compile - omitted for conflict with 17.0.3)
[INFO] -----------< org.my-project.property:property-parent >------------
[INFO] -------------< org.my-project.property:property-dao >-------------
[INFO] -----------< org.my-project.property:property-service >-----------
[INFO] -------------< org.my-project.property:property-api >-------------
[INFO] -------------------< org.my-project.rp:rp-app >-------------------
[INFO] ----------------< org.my-project.apps:rp-service >----------------
[INFO] |  |  +- (org.my-project.core:framework-util:jar:16.1.23:compile - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.core:framework-util:jar:16.1.23:compile - omitted for conflict with 17.0.3)
[INFO] |  +- (org.my-project.core:properties:jar:16.1.23:compile - omitted for conflict with 17.0.3)
[INFO] |  +- (org.my-project.core:framework-util:jar:16.1.23:compile - omitted for conflict with 17.0.3)
[INFO] ------------------< org.my-project.apps:rp-api >------------------
[INFO] |  |  |  +- (org.my-project.core:framework-util:jar:16.1.23:compile - omitted for conflict with 17.0.3)
[INFO] |  |  |  +- (org.my-project.core:framework-util:jar:16.1.23:compile - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.core:properties:jar:16.1.23:compile - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.core:framework-util:jar:16.1.23:compile - omitted for conflict with 17.0.3)
[INFO] |  +- (org.my-project.core:properties:jar:17.0.1:compile - omitted for conflict with 17.0.3)
[INFO] |  |  |  +- (org.my-project.mongodb-client:mongodb-client:jar:2.0.1:compile - omitted for conflict with 1.1.12)
[INFO] ------------------< org.my-project.apps:rp-web >------------------
[INFO] |  |  |  +- (org.my-project.core:framework-util:jar:16.1.23:compile - omitted for conflict with 17.0.3)
[INFO] |  |  |  +- (org.my-project.core:framework-util:jar:16.1.23:compile - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.core:properties:jar:16.1.23:compile - omitted for conflict with 17.0.3)
[INFO] |  |  +- (org.my-project.core:framework-util:jar:16.1.23:compile - omitted for conflict with 17.0.3)
[INFO] |  +- (org.my-project.core:properties:jar:17.0.1:compile - omitted for conflict with 17.0.3)
[INFO] |  |  |  +- (org.my-project.mongodb-client:mongodb-client:jar:2.0.1:compile - omitted for conflict with 1.1.12)
[INFO] --------------------< org.my-project.sdk:sdk >--------------------
[INFO] -----------------< org.my-project.sdk:java-sdk >------------------
[INFO] --------------< org.my-project.sms:shared-messaging-parent >--------------
[INFO] --------------< org.my-project.sms:shared-messaging-common >--------------
[INFO] ---------------< org.my-project.sms:shared-messaging-api >----------------
[INFO] |  |  +- (org.my-project.microservicesexceptions:microservicesexceptions-exception-builder:jar:3.0.1:compile - omitted for conflict with 3.0.0)
[INFO] |  +- (org.my-project.placeholder.stepdef.support:placeholder-stepdef-support:jar:2.0.0:test - omitted for conflict with 2.0.2)
[INFO] |  +- (org.my-project:java-extension:jar:5.0.0:test - omitted for conflict with 5.0.2)
[INFO] |  |  +- (org.my-project.placeholder.stepdef.support:placeholder-stepdef-support:jar:2.0.0:test - omitted for conflict with 2.0.2)
[INFO] |  |  +- (org.my-project.placeholder.stepdef.support:placeholder-stepdef-support:jar:2.0.0:test - omitted for conflict with 2.0.2)
[INFO] -------------< org.my-project.sms:shared-messaging-service >--------------
[INFO] ----------< org.my-project.skip.mgmt:skip-mgmt-parent >-----------
[INFO] ----------< org.my-project.skip.mgmt:skip-mgmt-service >----------
[INFO] ------------< org.my-project.skip.mgmt:skip-mgmt-web >------------
[INFO] -------< org.my-project.reporting:system-reporting-parent >-------
[INFO] ----------< org.my-project.reporting:system-reporting >-----------
[INFO] --------------< org.my-project.web:web-aggregation >--------------
[INFO] -----------------< org.my-project.web:inner-web >-----------------
[INFO] ---------------< org.my-project.web:metadata-web >----------------
[INFO] ---------------< org.my-project.web:property-web >----------------
[INFO] ---------------< org.my-project.web:dashboard-web >---------------

Tuesday, 12 September 2023

Load bearing structures

Fast, light lily trotter.
Dall-e Hippo.
Hippo trotter.
For me this is connected with writing software.

Saturday, 5 August 2023

Variety build up in a long lived project

My current project has 319 Maven POMs. These have been worked upon by at least five 'generations' of coders, that is under five different software engineering leads. Maven enables different actions depending upon different profiles. This seems like a good idea: you want a new behavior, the work you are doing is new to you and maybe to the project. Name your profile and get the thing you want done. Lets see how that work out over ten years.
find * -name pom.xml | grep -v git |grep -v target \
    |xargs grep -h -a1 "<profile>" \
    |grep "<id>" |tr -d '[ \t]'| \
    sed  's/<[\/]*id>//g'| \
    sort |uniq -c

      2 code-quality
      5 component-test
     64 full
      1 Full
      5 im-elasticsearch
      1 it-test
      1 it-tests
      1 local-it-tests
     28 nightly
      1 owasp
      8 unit

2 code-quality
seems like you want to separate out your Sonar run, maybe combine it with another profile, say security checking, and want the luxury to only run one at a time.
Use full
5 component-test
wat? Is this an integration test or a unit test?
Use full
64 full
short and to the point
Winner!
1 Full
Typo
Use full
5 im-elasticsearch
Might have been a candidate, if inheritted and there was a need for mix-ins, but neither holds. Requires component-test
Use full
1 it-test
Should be plural.
Use full
1 it-tests
IT stands for Integration Test so it-tests is Integration Test Tests.
Use full
1 local-it-tests
Integration tests which are not run on the Continuous Integration server? Wrong.
Use full
28 nightly
These presumably still need to be run on any change. Control periodicity in the Continuous Integration server configuration.
Use full
1 owasp
What are these? Why are they special snowflakes? OWASP tests need to be run on any change.
Use full
8 unit
Unit tests are the default profile.
Delete

Using multiple profiles is a bad idea.

Unit tests should be run in any scenario, and should be run as part of development.

A reasonable distinction between tests is those which require external fixtures off the developers machine and those which do not, or those that take a long time to run, disabling the developer's machine. Some tests attempt to drain resources from the machine they are running on, not great on the developer's machine. There is no inherent advantage to calling out these motivations in the profile name.

What we want is to be able to reason about the whole class, to be able to say true things about all our builds. This is a much greater advantage than an attempt to communiate with other developers through naming.

Use full

Now we know that we have three types of build:

no tests
-Dmaven.test.skip=true
(preferred over -skipTests)
unit tests
Default profile, nothing for you to do.
all tests
-Pfull

We can happily say that the only thing to do when writing code to build our code is to use the profile full.

Variety is sand in the gears of our development machine, however much it may mean to you it wears away at your precious attention.

Monday, 17 July 2023

Press Release Driven Development

I realised, as I stumbled forwards with a presentation on my current project, that the presentation can be seen as a Press Release and remembered that I have explicitly followed the Amazon Working Backwards practice twice before.

Write the PR at the start of the project

This informs the team what the point of the activity is, which is not always self-evident.

Internal Press Release: Important System Upgrade Completed

Anticipated release date see: Upgrade Epic Ticket

Today we can announce that we have upgraded the whole of Important System.

In the process we have achieved the following:

  • Extended and upgraded our ability to act upon and monitor all repositories
  • Archived XX repositories
  • Reduced the number of ignored tests from XX to XX
  • Removed all Sonar Bugs and Vulnerabilities
  • Updated all libraries
  • Installed Dependabot to ensure we do not fall behind again

This enables us to take on the strategic work of removing Bad Thing from our estate.

The numeric gaps in the Press Release make it explicit what needs to be measured before and after the project.

Trying to use AI to create an image for work

The idea I want to convey, in a slide deck at work, is that the codebase we are working on has not had enough attention for five years. It has been run by a small number of people who managed to keep the system working, 'kept the lights on' but the team were not the original authors, and was not big enough, and not empowered enough, to make updates, let alone the structural changes required.

I hit upon the idea of The Marie Celeste and her skeleton crew. The original authors had left, the system was still running, but those running it were too few.

HotPot.ai

HotPot.ai is really good. It has a nice freemium on-ramp, generates images fast, and nearly had me spend money with them. I certainly used up my free goes.

I had to choose styles and engines.


Where is the crew?


Where is the crew?


Where is the crew?


Where is the crew? Appears to be a futuristic gun on prow.


Maybe some crew, the one I went with.


Where is the crew?


Too marvel


Too stylised


Too sexualised


I changed the prompt to Crew the ghost ship Marie Celeste or similar, Dalle encorporates the prompt into the filename.


I changed the prompt back to The ghost ship Marie Celeste or similar, I have lost track of the prompts by this stage.


Back to the crew.


Too much emphasis on the word skeleton


I guess it is picking up on 'girls name' + skeleton


'girls name' + skeleton in a different style


Too much skeleton


Back to just the ship


Just the ship in a different style


Skeleton and ship, but I have run out of free goes and the will to live.

creator.nightcafe.studio


creator.nightcafe.studio is a similar, polished service. I liked this creation, though it is more Flying Dutchman than Marie Celest and has no crew, enough to tweet it.


I added the word 'Indian'


Lost the ship


Added 'on the sea'


Too much sea.


Lost the plot now


Back to ghost ship


'Indian skeleton crew on a ghost ship' in a different style


'Indian ghost ship' in a different style


'Ghost ship on the sea'


'Indian ghost ship on the sea' in a different style


'Indian ghost ship on the sea'

Out of credits

Dall-e


The big user benefit of Dall-e is that the prompt is in the file name, so not relying upon my poor memory. Dall-e does not seem to offer a download all option, which the others do.


The Marie Celeste and her Skeleton crew in a fantasy style


The Marie Celeste and her Skeleton crew in a fantasy style


The Marie Celeste and her Skeleton crew in a fantasy style


The Marie Celeste and her Skeleton crew in a fantasy style

Conclusion

I never got the image I wanted, maybe the two ideas are too explicit, but I have an image which I can use. This process was not quick, but it is better than choosing a stock image from the Powerpoint selection.