$ show web-platform-tests/interop
This repository manages the Interop Project, an annual effort by major browser vendors to improve web platform interoperability. It contains the governance charter, proposal guides, selection processes, and test lists for each year from 2021 to 2027. The only executable code is a Node.js script (`scripts/identify-web-features.js`) that automates enrichment of GitHub issue proposals by identifying matching web features from the `web-features` catalog and posting detailed comments. This script is well-tested, handles race conditions, and is triggered via GitHub Actions on issue events and dependency updates. The rest of the repo is documentation and test file lists. It is not a data research repository; its primary character is a project coordination and automation tool with a small, focused application component.
The LLM identified 2 files worth highlighting for reuse:
A Node.js script that processes Interop proposal GitHub issues to identify referenced web features from the web-features catalog. It extracts URLs and explicit mentions from issue bodies, matches them to feature IDs (handling moved/split features), fetches enrichment data from the web-features explorer API, and posts/updates a single bot comment per issue. Demonstrates robust patterns: concurrent comment deduplication, paginated API calls, graceful error handling, and idempotent comment updates. The pattern is reusable for any GitHub issue enrichment workflow that needs to merge external data into a single comment thread.
Comprehensive test suite for the identify-web-features.js script. Covers URL extraction, feature ID resolution, precedence rules (explicit over URL matches), edge cases (moved/split features), comment creation/update/race condition logic, and bulk processing error handling. Demonstrates a clean, modular testing approach using Node.js built-in test runner and mock objects. The test patterns are extractable for any project needing to test GitHub API interactions without network calls.