Skip to content

dd-sts migration#6679

Merged
nccatoni merged 5 commits intomainfrom
nccatoni/dd-sts-migration
Apr 9, 2026
Merged

dd-sts migration#6679
nccatoni merged 5 commits intomainfrom
nccatoni/dd-sts-migration

Conversation

@nccatoni
Copy link
Copy Markdown
Collaborator

@nccatoni nccatoni commented Apr 2, 2026

Motivation

Changes

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on you PR until the CI passes
  3. Mark it as ready for review
    • Test logic is modified? -> Get a review from RFC owner.
    • Framework is modified, or non obvious usage of it -> get a review from R&P team

🚀 Once your PR is reviewed and the CI green, you can merge it!

🛟 #apm-shared-testing 🛟

Reviewer checklist

  • Anything but tests/ or manifests/ is modified ? I have the approval from R&P team
  • A docker base image is modified?
    • the relevant build-XXX-image label is present
  • A scenario is added, removed or renamed?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

CODEOWNERS have been resolved as:

.github/actions/push_to_test_optim/action.yml                           @DataDog/system-tests-core
.github/workflows/ci.yml                                                @DataDog/system-tests-core
.github/workflows/run-end-to-end.yml                                    @DataDog/system-tests-core
.github/workflows/run-parametric.yml                                    @DataDog/system-tests-core
.github/workflows/system-tests.yml                                      @DataDog/system-tests-core

@nccatoni nccatoni force-pushed the nccatoni/dd-sts-migration branch 5 times, most recently from 7935ce3 to b3a6f0c Compare April 2, 2026 15:33
@nccatoni nccatoni changed the title dd sts migration dd-sts migration Apr 2, 2026
secrets: inherit
permissions:
contents: read
id-token: write
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The permission block is not needed here: id-token: write is specified line 74, and contents: read should be defined in the policy


on:
workflow_call:
inputs:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

it will also need a permission block with id-token: write since this workflow calls DataDog/dd-sts-action

with:
repository: 'DataDog/system-tests'
ref: ${{ steps.compute_ref.outputs.ref }}
- name: Get Datadog credentials
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

will need id-token: write permissions to invoke DataDog/dd-sts-action

default: "datadoghq.com"
required: false
type: string
dd_sts_policy:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

will need id-token: write permissions to invoke DataDog/dd-sts-action

@nccatoni nccatoni force-pushed the nccatoni/dd-sts-migration branch 6 times, most recently from 7a4fc9b to 107bbb0 Compare April 3, 2026 13:01
@nccatoni nccatoni force-pushed the nccatoni/dd-sts-migration branch from 107bbb0 to b4b5967 Compare April 3, 2026 13:35
@datadog-datadog-prod-us1
Copy link
Copy Markdown

datadog-datadog-prod-us1 bot commented Apr 7, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: d4a2f58 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

@lloeki
Copy link
Copy Markdown
Member

lloeki commented Apr 8, 2026

@nccatoni with https://github.com/DataDog/dd-source/pull/405204 it should be possible to test your PR as a nested workflow on DataDog/dd-trace-rb

@nccatoni
Copy link
Copy Markdown
Collaborator Author

nccatoni commented Apr 8, 2026

@lloeki We are calling this as a nested workflow from the system-tests repo directly so the current tests on this PR run against this policy which you should be able to adapt to your repo

@lloeki
Copy link
Copy Markdown
Member

lloeki commented Apr 8, 2026

@nccatoni nccatoni marked this pull request as ready for review April 9, 2026 12:15
@nccatoni nccatoni requested a review from a team as a code owner April 9, 2026 12:15
@nccatoni nccatoni merged commit 53b68b0 into main Apr 9, 2026
1990 of 1994 checks passed
@nccatoni nccatoni deleted the nccatoni/dd-sts-migration branch April 9, 2026 12:17
Copy link
Copy Markdown

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

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: d4a2f58d65

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

# https://docs.datadoghq.com/tests/setup/junit_xml/?tab=linux
- name: Push results
if: github.event.pull_request.user.login != 'dependabot[bot]' && inputs.datadog_api_key != ''
if: github.event.pull_request.user.login != 'dependabot[bot]'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Skip upload when no Datadog credentials are configured

The Push results step now runs for every non-Dependabot execution, even when both credential sources are empty. If inputs.datadog_api_key is '' and inputs.dd_sts_policy is also '', the dd-sts step is skipped and DATADOG_API_KEY resolves to an empty value, so datadog-ci junit upload is still invoked without auth and can fail the job. This is a regression from the previous guard and affects callers that enable push_to_test_optimization without passing either credential source (for example workflows that rely on system-tests.yml defaults).

Useful? React with 👍 / 👎.

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