Skip to content

CCM-14480: Add version management script#224

Open
lapenna-bjss wants to merge 19 commits intomainfrom
feature/CCM-14480_Update_module_sources
Open

CCM-14480: Add version management script#224
lapenna-bjss wants to merge 19 commits intomainfrom
feature/CCM-14480_Update_module_sources

Conversation

@lapenna-bjss
Copy link
Collaborator

@lapenna-bjss lapenna-bjss commented Feb 27, 2026

Description

This PR adds a tool to update all Terraform module sources, updates DLQ configuration and related tests.

Context

  • Added scripts/terraform/bump-shared-modules.ts and workspace setup to bump shared Terraform module versions
  • Added sqs_max_receive_count as a Terraform variable (default = 3)
  • Removed KMS module provider overrides
  • Lowered timeout values for DLQ component tests
  • Changed DLQ CloudWatch and DLQ checks in component tests to run in parallel

Component test suite now runs approximately 2 minutes 30 seconds faster.
Before:
image
After:
image

Dry run output:
image

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming
  • If I have used the 'skip-trivy-package' label I have done so responsibly and in the knowledge that this is being fixed as part of a separate ticket/PR.

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@lapenna-bjss lapenna-bjss added the skip-trivy-package Skip the Trivy Package Scan label Feb 27, 2026
@lapenna-bjss lapenna-bjss marked this pull request as ready for review March 3, 2026 08:54
@lapenna-bjss lapenna-bjss requested review from a team as code owners March 3, 2026 08:54
});

test.afterAll(async () => {
await purgeQueue(FILE_SCANNER_DLQ_NAME);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed? We are running it in beforeAll to make sure that any existing messages don't interfere with expectMessageContainingString (it only fetches 10).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it to keep things tidy, but it’s not really needed and could actually hide problems. I’ll remove it.

Ian-Hodges
Ian-Hodges previously approved these changes Mar 4, 2026
aws = aws
aws.us-east-1 = aws.us-east-1
}
source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/3.0.1/terraform-kms.zip"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.0.4 is the latest tag on the notify-shared-modules repository

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers, I'll bump it to 3.0.4

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one's got a hardcoded max_receive_count value. Any reason it shouldn't use the variable?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

print-sender, print-analyser and print-status-handler are all intentionally hardcoded to 1, as retries wouldn't add much value if they fail. See above.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another one with a fixed max_receive_count.

aidenvaines-cgi
aidenvaines-cgi previously approved these changes Mar 4, 2026
@aidenvaines-cgi aidenvaines-cgi dismissed their stale review March 4, 2026 15:12

theres some variable names that are unhappy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-trivy-package Skip the Trivy Package Scan

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants