Skip to content

chore: delete local tests for the earlier Go extension - #1463

Open
lym953 wants to merge 1 commit into
mainfrom
yiming.luo/delete-go-agent-local-tests
Open

lym953 wants to merge 1 commit into
mainfrom
yiming.luo/delete-go-agent-local-tests

Conversation

@lym953

@lym953 lym953 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Problem

These local tests run the earlier Go extension. That extension is deleted, and the extension is now bottlecap, so nothing runs these tests. All the deleted files were added between January 2022 and September 2023, before bottlecap's first commit in April 2024 (#202). Bots still open dependency PRs for the Go test function, for example #1419, #1446 and #1462.

This PR

Deletes the Go extension's local test setup: build-docker-runtime.sh, invoke.sh, the Go, Python, Node.js and Java test functions with their Dockerfiles, and their .gitignore entries. The bottlecap tests stay.

Testing

git grep on the branch finds no references to the deleted files.

🤖 Generated with Claude Code

These tests ran the Go extension built from datadog-agent next to a
recorder extension, also from datadog-agent. datadog-agent deleted the
Lambda extension code and the recorder script in #42994 (2025-11), so the
setup cannot build. Bots still open dependency PRs for local_tests/golang.

Keeps the bottlecap tests: bottlecap/, managed-instance/ and the
large-payload repro.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@datadog-prod-us1-5

datadog-prod-us1-5 Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Pipelines

✨ Unblock PR with BitsAI

❌ Errors

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 2 Pipeline jobs failed

DataDog/datadog-lambda-extension | e2e-test-status (amd64) — 🔧 Needs a code fix, caused by this PR

View more details · View in GitLab

Bottlecap (Rust) | Audit

View more details · View in GitHub Actions

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: f2c4879 | Docs | View more details | Give us feedback!

@lym953
lym953 marked this pull request as ready for review October 27, 2026 15:37
@lym953
lym953 requested a review from a team as a code owner October 27, 2026 15:37
@lym953
lym953 requested review from shreyamalpani and a balanced review from Copilot October 27, 2026 15:37
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T15:38:35.858444Z f2c4879 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI 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.

🟢 Approval recommended

The cleanup is isolated to unused legacy test infrastructure, with no remaining consumers identified and Bottlecap’s test workflows preserved.

No open issues 🎉

What changed in this PR

Removes obsolete local test infrastructure for the retired Go extension while preserving Bottlecap’s tests. Deleting the unused Go module also eliminates a source of unnecessary dependency-update PRs.

Changes:

  • Deletes legacy build and invocation scripts.
  • Removes Go, Python, Node.js, and Java test functions and their Dockerfiles.
  • Removes ignore rules for artifacts produced by the deleted setup.
File Description
local_tests/​python-timeout.Dockerfile Deletes the legacy Python timeout image.
local_tests/​java/​src/​main/​resources/​log4j.properties Removes Java test logging configuration.
local_tests/​java/​src/​main/​java/​com/​serverless/​Handler.java Deletes the Java test handler.
local_tests/​java/​README.md Removes instructions for the deleted Java setup.
local_tests/​java/​gradle/​wrapper/​gradle-wrapper.properties Removes legacy Gradle wrapper configuration.
local_tests/​java/​build.gradle Removes Java test dependencies and packaging.
local_tests/​java/​api-gateway.json Deletes the Java invocation fixture.
local_tests/​invoke.sh Deletes the legacy container invocation script.
local_tests/​golang/​main.go Deletes the Go test handler.
local_tests/​golang/​go.sum Removes unused Go dependency checksums.
local_tests/​golang/​go.mod Removes the obsolete Go test module.
local_tests/​func.py Deletes the Python test handler.
local_tests/​func.js Deletes the Node.js test handler.
local_tests/​Dockerfile.Python Deletes the legacy Python test image.
local_tests/​Dockerfile.Node Deletes the legacy Node.js test image.
local_tests/​Dockerfile.Java Deletes the legacy Java test image.
local_tests/​Dockerfile.Go Deletes the legacy Go test image.
local_tests/​build-docker-runtime.sh Removes legacy test-image build orchestration.
.gitignore Removes obsolete artifact rules while retaining the agent-binary rule.

Review effort: Balanced

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