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
27 changes: 25 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled
# push:
Expand Down Expand Up @@ -113,17 +114,21 @@ jobs:
uses: ./.github/workflows/run-exotics.yml
secrets: inherit

all-jobs-are-green: # if this must be renamed, you need to update utils/scripts/get-workflow-summary.py
all-jobs-are-green-legacy: # if this must be renamed, you need to update utils/scripts/get-workflow-summary.py
name: All jobs are green
runs-on: ubuntu-latest
permissions:
checks: read
statuses: read
actions: read
needs:
- system_tests
if: '!cancelled()'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
- run: pip install requests
- run: python utils/scripts/get-workflow-summary.py DataDog/system-tests ${{ github.run_id }} -o $GITHUB_STEP_SUMMARY
env:
Expand All @@ -132,6 +137,24 @@ jobs:
if: needs.system_tests.result != 'success'
run: exit 1

all-jobs-are-green: # if this must be renamed, you need to update utils/scripts/get-workflow-summary.py
# name: All jobs are green # DO NOT SET A NAME
runs-on: ubuntu-latest
permissions:
checks: read
statuses: read
actions: read
needs:
- system_tests
if: '!cancelled()'
steps:
- uses: DataDog/ensure-ci-success@v0
with:
polling-interval-seconds: '30'
max-retries: '60'
ignored-name-patterns: |
dd-gitlab/.*

update-CI-visibility:
name: Update CI Visibility Dashboard
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion utils/scripts/get-workflow-summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def get_jobs(session: requests.Session, repo_slug: str, run_id: int) -> list:
jobs += items
params["page"] += 1

logging.info(f"Found {len(jobs)} jobs")

return jobs


Expand All @@ -51,7 +53,7 @@ def main(repo_slug: str, run_id: int, output: str) -> None:
failing_steps = defaultdict(list)

for job in jobs:
if job["name"] in ("all-jobs-are-green", "fancy-report", "All jobs are green"):
if job["name"] in ("all-jobs-are-green", "fancy-report", "All jobs are green", "all-jobs-are-green-legacy"):
logging.info(f"Skipping job {job['name']}")
continue

Expand Down
Loading