{"id":19428529,"url":"https://github.com/web-platform-tests/results-analysis","last_synced_at":"2025-04-24T18:31:03.314Z","repository":{"id":37605926,"uuid":"129119169","full_name":"web-platform-tests/results-analysis","owner":"web-platform-tests","description":"Metrics generation for wpt.fyi","archived":false,"fork":false,"pushed_at":"2024-10-29T14:27:53.000Z","size":24152,"stargazers_count":20,"open_issues_count":21,"forks_count":12,"subscribers_count":25,"default_branch":"main","last_synced_at":"2024-10-29T17:36:52.191Z","etag":null,"topics":["interop-2022"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/web-platform-tests.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-11T15:59:52.000Z","updated_at":"2024-10-03T01:44:07.000Z","dependencies_parsed_at":"2023-09-29T21:49:44.429Z","dependency_job_id":"d9cfcc5d-83e4-4a62-8d07-da0a0d6212e2","html_url":"https://github.com/web-platform-tests/results-analysis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-platform-tests%2Fresults-analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-platform-tests%2Fresults-analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-platform-tests%2Fresults-analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-platform-tests%2Fresults-analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web-platform-tests","download_url":"https://codeload.github.com/web-platform-tests/results-analysis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223961154,"owners_count":17232251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["interop-2022"],"created_at":"2024-11-10T14:15:32.209Z","updated_at":"2024-11-10T14:15:32.676Z","avatar_url":"https://github.com/web-platform-tests.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WPT Results Analysis\n\nThis repository contains a set of scripts for doing analysis on results from\nruns of [web-platform-tests](https://web-platform-tests.org/) uploaded to\n[wpt.fyi](https://wpt.fyi). It utilizes a git repository,\n[results-analysis-cache](https://github.com/web-platform-tests/results-analysis-cache),\nas a storage and compression mechanism for the results data.\n\nThe analysis files are expected to be run via `node`, and should be\nindependently documented inside the file.\n\n### gh-pages\n\nMetrics are regularly updated and pushed to the `gh-pages` branch using GitHub Actions, see [update_gh_pages.yml](.github/workflows/update_gh_pages.yml).\n\n## Setup\n\nRun `npm install`; this will install any necessary dependencies and clone the\nresults-analysis-cache repo locally.\n\n### results-analysis-cache repository\n\nThis repository stores results from WPT runs as a flat forest. Each run is an\norphan commit with no parent, and is tagged with the run id. This allows for an\nexcellent compression ratio, whilst still having reasonable lookup time.\n\nThe repository can be updated via `git-write.js`, though this happens\nautomatically upstream (via a cronjob). As such, to fetch new runs you should\njust `cd` into the results-analysis-cache directory and run `git pull`.\n\n## Running the scripts\n\n### browser-specific-failures.js\n\n```\n$ node browser-specific-failures.js --help\nUsage: node browser-specific-failures.js [options]\n\nOptions:\n  --from: Starting date (inclusive)\n    (default: \"2018-07-01\")\n  --to: Ending date (exclusive)\n    (default: \"2020-05-21\")\n  --products: Browsers to compare. Must match the products used on \n    wpt.fyi \n    (default: [\"chrome\",\"firefox\",\"safari\"])\n  --output: Output CSV file to write to. Defaults to {stable, \n    experimental}-browser-specific-failures.csv \n    (default: null)\n  --[no]experimental: Calculate metrics for experimental runs.\n    (default: false)\n```\n\n### Generating end-of-year interop scores\n\nThe scores used on the current year of the Interop Dashboard are generated\nregularly from this repository. At the end of each year, the scoring script\nshould be run to generate final CSV files to use as the static final numbers\nfor that interop year. Both stable and experimental numbers should be generated.\n\n```\n$ node interop-scoring/main.js --year={{YEAR}} --to={{YEAR + 1}}-01-01\n$ node interop-scoring/main.js --year={{YEAR}} --to={{YEAR + 1}}-01-01 --experimental\n```\n\nThis will generate two files with final year numbers to use. These files should\nbe added to the `webapp/static` directory of the\n[wpt.fyi repository](https://github.com/web-platform-tests/wpt.fyi). The\n`csv_url` property should be updated for that year in\n[webapp/components/interop-data.js](https://github.com/web-platform-tests/wpt.fyi/blob/main/webapp/components/interop-data.js)\nto match the new file locations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-platform-tests%2Fresults-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb-platform-tests%2Fresults-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-platform-tests%2Fresults-analysis/lists"}