Skip to content

Instantly share code, notes, and snippets.

View foolip's full-sized avatar

Philip Jägenstedt foolip

View GitHub Profile
const Octokit = require('@octokit/rest');
const octokit = new Octokit({
auth: `token ${process.env.GH_TOKEN}`
});
const repoOptions = { owner: 'web-platform-tests', repo: 'wpt' };
// merge_pr_* tags should exist since July 2017.
const SINCE = Date.parse('2017-07-01T00:00Z');
# page 1
# page 2
# page 3
# page 4
# page 5
# page 6
# page 7
# page 8
# page 9
# page 10
@foolip
foolip / crbug-651572.md
Created October 12, 2018 09:13
Investigate web-platform-tests that fail in Chrome but pass in Firefox and Edge

Using these runs:

  • chrome @434ca47448: 30124 tests
  • edge @434ca47448: 29994 tests
  • firefox @434ca47448: 30124 tests

chrome-only failures:

Using these runs:

  • chrome 69.0.3497.100 @434ca47448: 30124 tests
  • edge 17 @434ca47448: 29994 tests
  • firefox 64.0a1 @434ca47448: 30124 tests
  • safari 11.1 @434ca47448: 29994 tests

firefox-only failures:

const octokit = require('@octokit/rest')()
const repoOptions = { owner: 'web-platform-tests', repo: 'wpt' };
// merge_pr_* tags should exist since July 2017.
const SINCE = Date.parse('2017-07-01T00:00Z');
// gets all PRs with pagination
async function* getAllPullRequests(prOptions) {
let page = 1;
@foolip
foolip / specs.py
Created July 17, 2018 11:28
Adding spec to web-platform-tests META.yml
#!/usr/bin/env python3
import json
import os.path
import yaml
# https://stackoverflow.com/a/39681672
class MyDumper(yaml.Dumper):
def increase_indent(self, flow=False, indentless=False):
'use strict'
const fs = require('fs')
// Create a simplified view of the results: a map of test names (~=filename) to
// an array of maps from subtest name to status.
function readResultsAsMap(filename) {
const results = JSON.parse(fs.readFileSync(filename)).results;
const testMap = new Map;
for (const result of results) {