Repository navigation
ci: add system-tests workflow - #104
adeshkumar1 wants to merge 7 commits into
Conversation
|
@codex review |
There was a problem hiding this comment.
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.ymlwith build, system-tests, and check jobs - Triggers on push to main, pull requests, and scheduled nightly runs
- Passes
DEFAULTscenario for PRs, and addstracer_releasegroup for main/nightly builds
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
💡 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".
|
@codex review |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
💡 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".
|
@codex review |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
💡 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".
|
@codex review |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
💡 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".
|
@codex review |
There was a problem hiding this comment.
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.
|
Codex Review: Didn't find any major issues. You're on a roll. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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
db4fa5a to
c684613
Compare
Summary
How it works
kong-plugin-ddtrace/directory and uploads it as an artifactlibrary: cpp_kongand the artifactsystem-testsdownloads it tobinaries/kong-plugin-ddtrace/whichinstall_ddtrace.shdetects as a local overrideScenarios
DEFAULTscenario only (basic tracing tests, fast feedback)DEFAULT+tracer_releasegroup (comprehensive)Prerequisites
DD_API_KEYsecret must be configured in the repo (or available at org level)