Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 4 additions & 1 deletion .github/workflows/build-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ on:
default: true
push:
branches:
- "**"
- master
pull_request:
branches:
- master

env:
GEM_HOST: 'https://rubygems.pkg.github.com/DataDog'
Expand Down
19 changes: 7 additions & 12 deletions .github/workflows/cache-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

echo "[DEBUG] Fetching cache list..."
# Get full cache details
CACHE_LIST=$(gh cache list --ref $BRANCH --limit 100 --json key,sizeInBytes,createdAt,id)
CACHE_LIST=$(gh cache list --ref $BRANCH --limit 100 --json key,sizeInBytes,id)

if [ -z "$CACHE_LIST" ] || [ "$CACHE_LIST" = "[]" ]; then
echo "[DEBUG] No caches found"
Expand All @@ -30,11 +30,11 @@ jobs:
fi

# Create table header
echo "| Cache ID | Cache Key | Size | Created At | Status |" >> $GITHUB_STEP_SUMMARY
echo "|----------|-----------|------|------------|--------|" >> $GITHUB_STEP_SUMMARY
echo "| Cache ID | Cache Key | Size |" >> $GITHUB_STEP_SUMMARY
echo "|----------|-----------|------|" >> $GITHUB_STEP_SUMMARY

# Extract IDs and process deletions
echo "$CACHE_LIST" | jq -r '.[] | [.id, .key, .sizeInBytes, .createdAt] | @tsv' | while IFS=$'\t' read -r id key size created; do
echo "$CACHE_LIST" | jq -r '.[] | [.id, .key, .sizeInBytes] | @tsv' | while IFS=$'\t' read -r id key size; do
# Convert size to human readable format
if [ $size -ge 1048576 ]; then
readable_size=$(echo "scale=2; $size/1048576" | bc)"MB"
Expand All @@ -43,16 +43,11 @@ jobs:
fi

echo "[DELETE] Processing cache ID: $id"
if gh cache delete $id > /dev/null 2>&1; then
status="✅ Deleted"
echo "[SUCCESS] Cache $id deleted"
else
status="❌ Failed"
echo "[ERROR] Failed to delete cache $id"
fi
gh cache delete $id
echo "[INFO] Processed cache $id"

# Add row to summary table
echo "| \`$id\` | \`$key\` | $readable_size | $created | $status |" >> $GITHUB_STEP_SUMMARY
echo "| \`$id\` | \`$key\` | $readable_size |" >> $GITHUB_STEP_SUMMARY
done

# Add completion timestamp
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Static Analysis
on:
push:
branches:
- master
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/generate-supported-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: "Generate Supported Versions"

on:
workflow_dispatch:


concurrency:
group: ${{ github.workflow }}
Expand All @@ -20,7 +19,6 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@8388f20e6a9c43cd241131b678469a9f89579f37 # v1.216.0
with:
bundler-cache: true # runs bundle install
ruby-version: "3.3"

- name: Update latest
Expand All @@ -45,6 +43,6 @@ jobs:
as defined from the `gemfile.lock` gem declarations.

Workflow run: [Generate Supported Versions](https://github.com/DataDog/dd-trace-rb/actions/workflows/generate-supported-versions.yml)

This should be tied to tracer releases, or triggered manually.

5 changes: 4 additions & 1 deletion .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ name: Test Nix
on:
push:
branches:
- "**"
- master
pull_request:
branches:
- master

jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Test macOS
on:
push:
branches:
- "**"
- master
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches:
- master
jobs:
test-macos:
strategy:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test-memory-leaks.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Test for memory leaks
on: [push]
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test-memcheck:
runs-on: ubuntu-24.04
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test-yjit.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Test YJIT
on: [push]
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test-yjit:
strategy:
Expand Down
Loading