Skip to content

Enhance the release process to automatically test Lambda layer operation #2921

@fallwith

Description

@fallwith

With #2919 having demonstrated that a change unrelated to serverless operation can inadvertently impact serverless operation, we ought to proactively prevent any future similar issue from happening by hardening the agent's release process.

Here are at least 2 complementary ideas that can be explored:

  • Additional testing prior to release: We could potentially modify the publish-layers.sh script described in the layers README to produce .zips but skip their publication. The zips could then be incorporated into a CDK (probably, though CFN or TF might work too) based workflow that would spin up a Ruby Lambda function with a .zip based layer applied. The function could then be invoked and NRQL used to confirm a successful invocation.
  • Additional testing post release: Immediately after an agent release has produced newly published Lambda layers, those layers could be applied to a Ruby Lambda function and tested by invoking the function and performing a NRQL query to confirm successful invocation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions