Commit adc7c8c
committed
test(integration): make container tests pass + add baseline snapshots
Three fixes needed to get the container-image integration tests
deploying and invoking against real AWS-stock RIC:
- Container Dockerfiles previously installed only the
datadog-lambda-js tarball, which doesn't pull dd-trace because
it's a devDep of the package. Add dd-trace as a direct dependency
in each container test's package.json, pinned to 5.105.0 to
match the version yarn.lock resolves for the layer build.
- Run `npm install --omit=dev` before installing the tarball so
package.json deps are picked up.
- Export BUILDX_NO_DEFAULT_ATTESTATIONS=1 in run_integration_tests.sh.
Modern Docker buildx attaches provenance attestations by default,
which produce OCI index manifests that AWS Lambda rejects with
"image manifest ... media type ... not supported." Disabling the
default attestations makes buildx emit Docker v2 manifests Lambda
accepts.
Plus baseline snapshots for `container-{cjs,esm}_node{18,20,22,24}`
across 9 input events (72 return-value + 8 log files). Each
container handler returns `{"message":"hello, dog!"}` end-to-end
through `dist/handler.handler`, proving CJS and ESM user code load
correctly on AWS-stock RIC for every supported Node major.1 parent 45e0613 commit adc7c8c
85 files changed
Lines changed: 7813 additions & 4 deletions
File tree
- integration_tests
- container
- cjs
- esm
- snapshots
- logs
- return_values
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
0 commit comments