Skip to content

Instantly share code, notes, and snippets.

View juliandescottes's full-sized avatar

Julian Descottes juliandescottes

View GitHub Profile
@juliandescottes
juliandescottes / hack-devtools-57-outline.md
Last active April 26, 2024 22:57
Hacks post 57 outline

INTRO

GENERAL

  • new colors, photon update

INSPECTOR

  • Layout panel, grid inspector improvements
  • Layout panel, box model information
  • toggle class elements
@juliandescottes
juliandescottes / log_debugger_release_wrong_path.txt
Created November 15, 2017 11:07
Debugger release log when I had a wrong path configured
? Ship 2 MC Create release
cd: no such file or directory: /Users/jdescottes/src/mozilla/gecko
🏃 Updating Central!
cd: no such file or directory: /Users/jdescottes/src/mozilla/gecko
Uhoh, git checkout bookmarks/central failed!
error: pathspec 'bookmarks/central' did not match any file(s) known to git.
Uhoh, git fetch mozilla failed!
fatal: 'mozilla' does not appear to be a git repository
fatal: Could not read from remote repository.
# HG changeset patch
# User Julian Descottes <jdescottes@mozilla.com>
# Date 1510842810 -3600
# Thu Nov 16 15:33:30 2017 +0100
# Node ID deacda5f42976afc0d3fe144bf5ac132a6fdce3b
# Parent f41930a869a84af81df1a88d8e82323ff3a6509a
rebase_imm_url
MozReview-Commit-ID: 5kMaUi7rQGf
@juliandescottes
juliandescottes / try_run.txt
Created December 6, 2017 10:19
Try run with subfolder
./mach try: -b do -p win64,linux64 -t none --rebuild 10 --no-artifact devtools/client/aboutdebugging
@juliandescottes
juliandescottes / test_suite_loop.bash
Created December 6, 2017 14:58
Run test suite in a loop
COUNTER=0
while [ $COUNTER -lt 10 ]; do
mt --headless devtools/client/aboutdebugging/test/
let COUNTER=COUNTER+1
done
Run all DAMP tests
./mach talos-test --activeTests damp
Run a specific DAMP test
./mach talos-test --activeTests damp --subtests simple.inspector
Run a specific test only once
@juliandescottes
juliandescottes / debugger-html_create-compare-url.js
Created January 3, 2018 10:56
Create debugger html compare URL
async function createCompareURL(attachmentUrl) {
let attachment = await fetch(attachmentUrl);
let patch = await attachment.text();
let oldHash = patch.match(/\-Taken from upstream commit: ([a-f0-9]+)\n/)[1];
let newHash = patch.match(/\+Taken from upstream commit: ([a-f0-9]+)\n/)[1];
let compareUrl =
`https://github.com/devtools-html/debugger.html/compare/${oldHash}...${newHash}`;
console.log(compareUrl);
}
@juliandescottes
juliandescottes / get-test-list.js
Created January 4, 2018 17:39
Small script to get the list of tests that were executed in a try run
async function getTestList(logUrl) {
let log = await fetch(logUrl);
let logText = await log.text();
let lines = logText.split("\n");
lines = lines
.filter(l => l.includes("TEST-START"))
.filter(l => !l.includes("Shutdown"))
.map(l => l.match(/TEST-START \| ([^\s]+)/)[1]);
console.log(lines);
@juliandescottes
juliandescottes / branding_change.txt
Created January 5, 2018 14:44
How to switch to DEV EDITION
Simply add
ac_add_options --with-branding=browser/branding/aurora
to your mozconfig. Works ~ok~ with artifact builds. Not a perfect solution because it doesn't turn off some NIGHTLY flags.