Skip to content

Merge aws-cdk.yml's prepare and cdk jobs#176

Merged
tmthrgd-aligent merged 1 commit into
mainfrom
fix/DO-1765_merge_cdk_pipeline_jobs
Jul 17, 2026
Merged

Merge aws-cdk.yml's prepare and cdk jobs#176
tmthrgd-aligent merged 1 commit into
mainfrom
fix/DO-1765_merge_cdk_pipeline_jobs

Conversation

@tmthrgd-aligent

Copy link
Copy Markdown
Contributor

Previously aws-cdk.yml was split into two separate jobs, one containing the 'preparation' steps and one performing the actual work. Between these two jobs it shared the node_modules directory as an artifact.

This packing, uploading, downloading and unpacking step adds needless overhead and may take upwards of 30s to complete. It also consumes artifact storage space, which has caused persistent pipeline failures on one of our client hosted projects.

This separation serves no meaningful purpose so we merge them into one single job.

It also gives us the slight advantage of having safe-chain installed throughout the entire workflow rather than just the prepare job. This is a useful defence in depth measure, though it is unlikely to offer any real security benefit.

@tmthrgd-aligent
tmthrgd-aligent force-pushed the fix/DO-1765_merge_cdk_pipeline_jobs branch 2 times, most recently from 9c04df1 to 3dd2b96 Compare July 15, 2026 06:51
Previously aws-cdk.yml was split into two separate jobs, one containing
the 'preparation' steps and one performing the actual work. Between
these two jobs it shared the node_modules directory as an artifact.

This packing, uploading, downloading and unpacking step adds needless
overhead and may take upwards of 30s to complete. It also consumes
artifact storage space, which has caused persistent pipeline failures on
one of our client hosted projects.

This separation serves no meaningful purpose so we merge them into one
single job.

It also gives us the slight advantage of having safe-chain installed
throughout the entire workflow rather than just the prepare job. This is
a useful defence in depth measure, though it is unlikely to offer any
real security benefit.
@tmthrgd-aligent
tmthrgd-aligent force-pushed the fix/DO-1765_merge_cdk_pipeline_jobs branch from 3dd2b96 to 05d05a6 Compare July 15, 2026 06:52

@AdamJHall AdamJHall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@tmthrgd-aligent

Copy link
Copy Markdown
Contributor Author

Changes have been successfully tested against a number of repositories: https://github.com/aligent/manta-cdk/pull/4, https://github.com/aligent/remote-cmd-bastion-hosting/pull/10, https://github.com/aligent/spendless-shoegroup-cdk/pull/10, https://github.com/PolyaireDev/polyaire-digital-integration/pull/26, https://github.com/aligent/otr-hosting/pull/3 and https://github.com/aligent/internal-infra/pull/2.

This is a hard one to test as deployments aren't something we can just do for the sake of a test, that being said, https://github.com/PolyaireDev/polyaire-digital-integration/pull/26 does test a deployment to a dev environment.

All PRs have passing checks, have had their logs inspected for correctness and where logs of previous runs still exist, they have been compared for consistency.

@tmthrgd-aligent
tmthrgd-aligent marked this pull request as ready for review July 17, 2026 03:06
@tmthrgd-aligent
tmthrgd-aligent requested a review from a team as a code owner July 17, 2026 03:06
@tmthrgd-aligent
tmthrgd-aligent merged commit e84f051 into main Jul 17, 2026
3 checks passed
@tmthrgd-aligent
tmthrgd-aligent deleted the fix/DO-1765_merge_cdk_pipeline_jobs branch July 17, 2026 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants