Skip to content
Closed
Changes from 8 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
5842786
Try datadog test optimization
michael-richey Apr 17, 2025
d7f5799
move
michael-richey Apr 17, 2025
266ea37
on push
michael-richey Apr 17, 2025
58c80e0
format
michael-richey Apr 17, 2025
50af3a0
Swich to env
michael-richey Apr 17, 2025
d7e7527
Remove agent
michael-richey Apr 17, 2025
8dfb907
install requirements
michael-richey Apr 17, 2025
2e320bc
Add checkout
michael-richey Apr 17, 2025
0da283c
Need this
michael-richey Apr 17, 2025
ceb9ec3
actually run the tests
michael-richey Apr 17, 2025
28cfd17
Fix indent
michael-richey Apr 17, 2025
c67e078
record
michael-richey Apr 17, 2025
553a0ff
Move record
michael-richey Apr 17, 2025
beecfa4
Turn of record
michael-richey Apr 17, 2025
524e7fe
Turn off recording
michael-richey Apr 17, 2025
918db69
switch to sha
michael-richey Apr 17, 2025
823b3f7
add sha256:
michael-richey Apr 17, 2025
76d77d2
Version
michael-richey Apr 17, 2025
d6f6936
Add version
michael-richey Apr 17, 2025
f558a13
Try sha again
michael-richey Apr 17, 2025
64380b2
sha for this
michael-richey Apr 17, 2025
7ddbee7
sha for checkout
michael-richey Apr 17, 2025
c835de1
Test config
michael-richey Apr 18, 2025
defdb83
Change this to scheduled
michael-richey May 7, 2025
4308c0b
They specifically recommend not running at the 0 minute
michael-richey May 7, 2025
516278c
Run on mac and windows too
michael-richey May 7, 2025
b8a93aa
Trigger on push
michael-richey May 7, 2025
b846f5d
Refine the schedule and remove my branch from the push trigger
michael-richey May 7, 2025
15c374a
Merge branch 'main' into michael.richey/dd-test-opt
michael-richey May 7, 2025
d2ec8c2
Add the ddtrace option
michael-richey May 7, 2025
a770634
Add my branch back
michael-richey May 7, 2025
c689cb7
Try this instead, found in test optimization doc
michael-richey May 7, 2025
9b105ef
Try this way
michael-richey May 7, 2025
2ff03aa
Try through tox
michael-richey May 7, 2025
7bf5c6b
Remove thes
michael-richey May 7, 2025
a20d372
Try updating ddtrace
michael-richey May 7, 2025
9d3275b
Set env var back to true
michael-richey May 7, 2025
944bdaa
Add the agent for traces
michael-richey May 7, 2025
6a534b4
Move the agent into the os matrix
michael-richey May 7, 2025
0484e7f
Back to trying the visibility script
michael-richey May 7, 2025
0cfbd7b
Java -> Python for lang
michael-richey May 7, 2025
4be2b7d
Directly pass in --ddtrace to pytest
michael-richey May 8, 2025
a4261da
Pass args into tox differently
michael-richey May 8, 2025
a29d267
Merge branch 'main' into michael.richey/dd-test-opt
michael-richey May 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/datadog_test_optimization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Datadog Test Optimization

permissions:
checks: write
contents: read

on: push

env:
DD_API_KEY: ${{ secrets.DD_API_KEY }}

jobs:
test-optimization:
runs-on: ubuntu-latest
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Checkout code
uses: actions/checkout@v2
- name: Install requirements
run: |
python -m pip install .
python -m pip install -r scripts/test_requirements.txt
- name: Configure Datadog Test Optimization
uses: datadog/test-visibility-github-action@v2

Choose a reason for hiding this comment

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

🟠 Code Vulnerability

Workflow depends on a GitHub actions pinned by tag instead of a hash. (...read more)

Pin GitHub Actions by commit hash to ensure supply chain security.

Using a branch (@main) or tag (@v1) allows for implicit updates, which can introduce unexpected or malicious changes. Instead, always pin actions to a full length commit SHA. You can find the commit SHA for the latest tag from the action’s repository and ensure frequent updates via auto-updaters such as dependabot. Include a comment with the corresponding full-length SemVer tag for clarity:

      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

View in Datadog  Leave us feedback  Documentation

Choose a reason for hiding this comment

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

🔴 High: Code Vulnerability

Workflow depends on a GitHub actions pinned by tag instead of a hash. (...read more)

Pin GitHub Actions by commit hash to ensure supply chain security.

Using a branch (@main) or tag (@v1) allows for implicit updates, which can introduce unexpected or malicious changes. Instead, always pin actions to a full length commit SHA. You can find the commit SHA for the latest tag from the action’s repository and ensure frequent updates via auto-updaters such as dependabot. Include a comment with the corresponding full-length SemVer tag for clarity:

      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

View in Datadog  Leave us feedback  Documentation

with:
languages: python
api_key: ${{env.DD_API_KEY}}
site: datadoghq.com
Loading