Skip to content

chore: make integration tests local - #804

Open
joeyzhao2018 wants to merge 4 commits into
mainfrom
joey/make-integration-tests-local
Open

chore: make integration tests local#804
joeyzhao2018 wants to merge 4 commits into
mainfrom
joey/make-integration-tests-local

Conversation

@joeyzhao2018

Copy link
Copy Markdown
Contributor

What does this PR do?

Motivation

Testing Guidelines

Additional Notes

Types of Changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog
  • This PR passes the integration tests (ask a Datadog member to run the tests)

Remove the cold_start value normalization from the local harness
pipeline. The cold->warm transition (invoke #1 cold_start:true,
invokes #2..N false) is deliberate coverage and is deterministic
locally, since proactive initialization cannot happen unless
SIMULATE_PROACTIVE_INIT=true. Snapshots regenerated with real
cold_start values.

proactive_initialization markers and the '(init: N ms)' END suffix
remain stripped: they reflect platform scheduling, not code behavior.
The real-AWS run_integration_tests.sh is intentionally untouched;
proactive-init cold_start flakes there are handled by rerun.
@joeyzhao2018
joeyzhao2018 marked this pull request as ready for review July 29, 2026 16:48
@joeyzhao2018
joeyzhao2018 requested review from a team as code owners July 29, 2026 16:48

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0df937ad33

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +91 to +93
# Download the RIE binary once into ./bin (gitignored).
rie_binary="$local_dir/bin/aws-lambda-rie"
if [ ! -f "$rie_binary" ]; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Cache the RIE binary separately per platform

When a developer follows the README and switches PLATFORM after a first run, this always reuses bin/aws-lambda-rie if it already exists, regardless of whether it was downloaded as the arm64 or x86_64 asset. The mounted binary is executed inside the --platform "$PLATFORM" container, so the second platform run can start with the wrong-architecture RIE binary and fail before the port becomes ready; include the platform in the cached filename or re-download when the requested platform changes.

Useful? React with 👍 / 👎.

@datadog-prod-us1-6

datadog-prod-us1-6 Bot commented Jul 29, 2026

Copy link
Copy Markdown

Pipelines  Tests

⚠️ Warnings

🚦 12 Pipeline jobs failed

DataDog/datadog-lambda-js | lint (node18)   View in Datadog   GitLab

DataDog/datadog-lambda-js | lint (node20)   View in Datadog   GitLab

DataDog/datadog-lambda-js | lint (node22)   View in Datadog   GitLab

View all 12 failed jobs.

ℹ️ Info

🔄 Datadog auto-retried 2 jobs - 2 passed on retry View in Datadog

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 9b10dda | Docs | Datadog PR Page | Give us feedback!

Adds a workflow that runs the RIE-based harness from
integration_tests_local/ on every PR and main push: one job per Node
major version (18/20/22/24), each building and testing both container
variants against the real AWS Lambda base images. No AWS credentials
needed. Uses linux/amd64 images on the x86_64 runners.
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.

1 participant