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
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ jobs:
env:
# see https://lychee.cli.rs/troubleshooting/rate-limits/#github-rate-limiting
GITHUB_TOKEN: ${{ github.token }}

license-check:
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Run license-check
run: make license-check
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ markdown-link-check:
--root-dir /home/repo \
--verbose \
home/repo

.PHONY: license-check
license-check:
@licRes=$$(for f in $$(find . -type f \( -iname '*.py' -o -iname '*.sh' \) ! -path '**/third_party/*' ! -path './.git/*' ) ; do \
awk '/Copyright The OpenTelemetry Authors|generated|GENERATED/ && NR<=4 { found=1; next } END { if (!found) print FILENAME }' $$f; \
done); \
if [ -n "$${licRes}" ]; then \
echo "license header checking failed:"; echo "$${licRes}"; \
exit 1; \
fi
3 changes: 3 additions & 0 deletions scripts/baremetal-runner-report.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
"""
Bare-metal benchmark runner usage report.

Expand Down
5 changes: 5 additions & 0 deletions scripts/gc-elections/convert-voter-roll-to-helios.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/usr/bin/env python3
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
import csv
import os

Expand Down
5 changes: 5 additions & 0 deletions scripts/gc-elections/create-github-comments.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/usr/bin/env python3
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
"""Tag eligible voters on a GitHub issue for the OpenTelemetry GC election.

Behaviour:
Expand Down
5 changes: 5 additions & 0 deletions scripts/gc-elections/generate-voters-roll.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/usr/bin/env python3
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
import csv
import datetime
import os
Expand Down
33 changes: 19 additions & 14 deletions scripts/move-to-emeritus.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
#!/usr/bin/env python3
# Usage:
# # Check all repos and print report
# python move-to-emeritus.py
#
# # Check all repos with debug output (shows why each member was marked active/inactive)
# python move-to-emeritus.py --debug
#
# # Check only specific repo(s)
# python move-to-emeritus.py --repo opentelemetry-collector
# python move-to-emeritus.py --repo opentelemetry-collector opentelemetry-python
#
# # Create PRs to move inactive members to emeritus (after verifying the report)
# python move-to-emeritus.py --create-prs
#
# Note: the script can be safely re-run multiple times. If a PR already exists for a repo, its body will be updated with the latest info.
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
"""
Usage:
# Check all repos and print report
python move-to-emeritus.py

# Check all repos with debug output (shows why each member was marked active/inactive)
python move-to-emeritus.py --debug

# Check only specific repo(s)
python move-to-emeritus.py --repo opentelemetry-collector
python move-to-emeritus.py --repo opentelemetry-collector opentelemetry-python

# Create PRs to move inactive members to emeritus (after verifying the report)
python move-to-emeritus.py --create-prs

Note: the script can be safely re-run multiple times. If a PR already exists for a repo, its body will be updated with the latest info.
"""
import argparse
import base64
import json
Expand Down
4 changes: 4 additions & 0 deletions scripts/update-community-members.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
import subprocess
import sys

Expand Down
3 changes: 3 additions & 0 deletions scripts/update-sig-tables.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
import re
import subprocess
import sys
Expand Down
4 changes: 4 additions & 0 deletions scripts/validate-workstreams.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
"""
Validates workstreams.yml.

Expand Down
Loading