Skip to content
Open
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
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# The telemetry schema is compared byte-for-byte against a generated string in
# `test_committed_schema_is_current`, and is read by `scripts/check_telemetry_schema_compat.py`.
# Pin it to LF so a Windows checkout does not rewrite it to CRLF.
telemetry/metrics.schema.json text eol=lf
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ jobs:
run: |
cargo fmt --manifest-path ./Cargo.toml --all -- --check
cargo fmt --manifest-path ./hf_xet/Cargo.toml --all -- --check
telemetry-schema-compat:
name: Telemetry schema compatibility
runs-on:
group: aws-general-8-plus
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
# The baseline is read from the merge target, so the shallow default clone is not enough.
fetch-depth: 0
- name: Check for breaking metric changes
run: |
# Consumers of this schema type each property on first sight and cannot change it
# in place. Adding a metric is fine; removing one or changing its type is not.
python3 scripts/check_telemetry_schema_compat.py \
--baseline-ref "origin/${{ github.base_ref || github.event.repository.default_branch }}"
detect-unused-dependencies:
runs-on:
group: aws-general-8-plus
Expand Down
Loading
Loading