ministryofjustice / justice-gov-uk

Justice UK website
https://www.justice.gov.uk/
MIT License
2 stars 0 forks source link

Remove composer.lock during CI build for auto install of security patches. #94

Open EarthlingDavey opened 6 months ago

EarthlingDavey commented 6 months ago

What do we need to do before removing composer.lock?

There is a risk that an update will introduce a bug or incompatibility.

Some packages will be more likely to introduce bugs than others. This will be based on the package's / author's

One example is how the plugins: amazon-s3-and-cloudfront & wp-document-revisions can have an effect on each other. There is a current bug where amazon-s3-and-cloudfront logs a warning because of wp-document-revisions.

This minor incompatibility highlights that a similar thing could also arise in the future.

How do we mitigate incompatibilities from causing an issue?

A good e2e test to start with would be uploading a document and ensuring that a revsion is created, and that the document is available for download.

wilson1000 commented 6 months ago

The ideal situation, in my mind, is:

We also have Sentry, Pingdom, Cloud Platform Kibana and Prometheus to flag issues.

Let's discuss 😄