Skip to content

ci: add system-tests workflow - #104

Draft
adeshkumar1 wants to merge 7 commits into
mainfrom
adeshkumar1/add-system-tests-ci
Draft

adeshkumar1 wants to merge 7 commits into
mainfrom
adeshkumar1/add-system-tests-ci

Conversation

@adeshkumar1

@adeshkumar1 adeshkumar1 commented Apr 7, 2026 •

Copy link
Copy Markdown

Summary

How it works

  1. build job: checks out the plugin source into a kong-plugin-ddtrace/ directory and uploads it as an artifact
  2. system-tests job: calls the system-tests reusable workflow with library: cpp_kong and the artifact system-tests downloads it to binaries/kong-plugin-ddtrace/ which install_ddtrace.sh detects as a local override
  3. check job: gates required status checks on system-tests success

Scenarios

  • Pull requests: DEFAULT scenario only (basic tracing tests, fast feedback)
  • Push to main / nightly: DEFAULT + tracer_release group (comprehensive)

Prerequisites

  • DD_API_KEY secret must be configured in the repo (or available at org level)

@adeshkumar1
adeshkumar1 requested a review from Copilot April 7, 2026 19:59
@adeshkumar1

Copy link
Copy Markdown
Author

@codex review

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

Pull request overview

This PR adds a GitHub Actions workflow that integrates system tests for the Kong plugin by calling the DataDog/system-tests reusable workflow. The workflow runs on push to main, pull requests, and nightly schedule. It follows a three-job pattern: build (artifact creation), system-tests (executing tests via reusable workflow), and check (gating status checks).

Changes:

  • Adds .github/workflows/system-tests.yml with build, system-tests, and check jobs
  • Triggers on push to main, pull requests, and scheduled nightly runs
  • Passes DEFAULT scenario for PRs, and adds tracer_release group for main/nightly builds

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/system-tests.yml Resolved
Comment thread .github/workflows/system-tests.yml Resolved
Comment thread .github/workflows/system-tests.yml Resolved

@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: 46b54b5e46

ℹ️ 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 thread .github/workflows/system-tests.yml Resolved
@adeshkumar1
adeshkumar1 requested a review from Copilot April 7, 2026 20:15
@adeshkumar1

Copy link
Copy Markdown
Author

@codex review

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/system-tests.yml Resolved
Comment thread .github/workflows/system-tests.yml Resolved

@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: b153337c17

ℹ️ 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 thread .github/workflows/system-tests.yml Resolved
@adeshkumar1
adeshkumar1 requested a review from Copilot April 7, 2026 20:22
@adeshkumar1

Copy link
Copy Markdown
Author

@codex review

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@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: 19c9c400e7

ℹ️ 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 thread .github/workflows/system-tests.yml Resolved
@adeshkumar1
adeshkumar1 requested a review from Copilot April 7, 2026 21:01
@adeshkumar1

Copy link
Copy Markdown
Author

@codex review

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@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: 4d18416201

ℹ️ 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 thread .github/workflows/system-tests.yml Resolved
@adeshkumar1
adeshkumar1 requested a review from Copilot April 7, 2026 21:19
@adeshkumar1

Copy link
Copy Markdown
Author

@codex review

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

ℹ️ 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".

@adeshkumar1
adeshkumar1 marked this pull request as ready for review April 7, 2026 21:27
Comment thread .github/workflows/system-tests.yml Resolved
Comment thread .github/workflows/system-tests.yml Resolved
Comment thread .github/workflows/system-tests.yml Resolved
Add a GitHub Actions workflow that runs DataDog/system-tests against
the Kong plugin on every push to main, on pull requests, and nightly.

Follows the same pattern used by nginx-datadog and httpd-datadog:
- Upload plugin source as artifact
- Call system-tests reusable workflow with library=cpp_kong
- Run tracer_release scenarios on push/schedule, end_to_end on PRs
- Push results to Test Optimization
The end_to_end scenarios_group includes ~55 scenarios (appsec, graphql,
telemetry, etc.) that are all irrelevant for Kong. Use scenarios: DEFAULT
for PRs and add tracer_release group only on push/schedule for nightly.

This matches how nginx-datadog configures its system-tests workflow.
Pin actions/checkout and actions/upload-artifact to the same commit
SHAs used by the other workflows in this repo, consistent with the
repo's security posture for supply-chain safety.
- Use ubuntu-22.04 instead of ubuntu-latest for consistency with other
  workflows in the repo.
- Add if: always() to the check job and explicitly fail when
  system-tests result is not success. Previously, if system-tests
  failed the check job would be skipped, which GitHub can treat as
  passing for required status checks.
upload-artifact flattens the path, so files were landing directly in
binaries/ instead of binaries/kong-plugin-ddtrace/. The install script
check ([ -d kong-plugin-ddtrace ]) was failing and falling back to
downloading the latest release, meaning PR changes were not tested.

Fix by staging the plugin into artifact/kong-plugin-ddtrace/ and
uploading the parent directory so the subdirectory name is preserved.
Fork PRs don't have access to repository secrets, so
push_to_test_optimization would fail when TEST_OPTIMIZATION_API_KEY
is empty. Only enable it for same-repo PRs, pushes, and schedules.
- Add explanatory comment for the concurrency group
- Bump actions/checkout from v4.2.2 to v4.3.1 (matching httpd-datadog)
- Add comment explaining the empty scenarios_groups on PRs
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.

3 participants