ReleaseEngineering/Tips And Tricks

From MozillaWiki
Jump to: navigation, search

Bugzilla

Firefox Addons

  • aki: tree style tab
  • aki: forest
  • aki: multi-container and temporary containers
  • jlorenzo: AutoHiDPI for 4K screen alongside a regular 1080p
  • jlorenzo: U2F addon for 2FA on Github
  • jlund: vimfx (minimal addon that provides nice vim functionality without the bloat and bustage of pentadactyl and the like
  • jlund: open multiple urls: https://addons.mozilla.org/en-US/firefox/addon/open-multiple-urls/?src=api
    • this one is handy since buildapi/running is borked as it lets you open all the buildmasters really fast at a certain builder (I have the builders saved in a file and just change the buildername)
http://buildbot-master70.bb.releng.use1.mozilla.com:8001/builders/release-mozilla-beta-firefox-win64_partner_repacks
http://buildbot-master71.bb.releng.use1.mozilla.com:8001/builders/release-mozilla-beta-firefox-win64_partner_repacks
http://buildbot-master72.bb.releng.usw2.mozilla.com:8001/builders/release-mozilla-beta-firefox-win64_partner_repacks
http://buildbot-master73.bb.releng.usw2.mozilla.com:8001/builders/release-mozilla-beta-firefox-win64_partner_repacks
http://buildbot-master74.bb.releng.usw2.mozilla.com:8001/builders/release-mozilla-beta-firefox-win64_partner_repacks
http://buildbot-master77.bb.releng.use1.mozilla.com:8001/builders/release-mozilla-beta-firefox-win64_partner_repacks
http://buildbot-master82.bb.releng.scl3.mozilla.com:8001/builders/release-mozilla-beta-firefox-win64_partner_repacks
http://buildbot-master84.bb.releng.scl3.mozilla.com:8001/builders/release-mozilla-beta-firefox-win64_partner_repacks
http://buildbot-master85.bb.releng.scl3.mozilla.com:8001/builders/release-mozilla-beta-firefox-win64_partner_repacks
http://buildbot-master86.bb.releng.scl3.mozilla.com:8001/builders/release-mozilla-beta-firefox-win64_partner_repacks
http://buildbot-master91.bb.releng.usw2.mozilla.com:8001/builders/release-mozilla-beta-firefox-win64_partner_repacks
http://buildbot-master94.bb.releng.use1.mozilla.com:8001/builders/release-mozilla-beta-firefox-win64_partner_repacks
  • coop: jsonovich - json formatting (not needed on aurora)
  • coop: whimsy pro
  • coop: stylish, because playing with CSS is fun
  • coop: wikiwand
  • Callek: tab stats
  • hal: uBlock Origin, lastpass,
  • catlee: User Agent Switcher
  • catlee; U2F addon
  • catlee: no more 404s

Misc

Python

  • mtabara: pdb and tasks
  • rail: using ipydb

Shell

# set an ssh key expiry within your agent
renew_ssh_agent ()
{
    (umask 066; ssh-agent > ~/.ssh/ssh-agent)
    eval "$(<~/.ssh/ssh-agent)" >/dev/null
}

start_ssh_agent ()
{
    if [ ! -f ~/.ssh/ssh-agent ]; then
        renew_ssh_agent
    else
        eval "$(<~/.ssh/ssh-agent)" >/dev/null
    fi

    ssh-add -l &>/dev/null
    ssh_add_rc="$?"
    if [ $ssh_add_rc = 1 ] || [ $ssh_add_rc = 2 ]; then
       if [ $ssh_add_rc = 2 ]; then
           # ssh-agent defined in ~/.ssh/ssh-agent doesn't exist, recreate
           renew_ssh_agent
       fi
       # set timelimit to 4 hours
       ssh-add -t 14400
   fi
}
start_ssh_agent

Vidyo

  •  !mtabara: you can join a vidyo room muted

Vim

  • vim tricks: https://vreplay.mozilla.com/replay/showRecordingExternal.html?key=il1OYf2kd5qS2we
  • mtabara: vim vs IDE for python?
    • whatever makes you happy
    • catlee: watchdog has a tool called watchmedo for automatic testing,
    • catlee: while (inotifywait -q -q -e close_write -r *; true); do tox; done
  • vim extensions
    • aki likes foldmethod markers: {{{1
    • aki likes regexes across lines:  :76,92s,^, , # indent lines 76-92 4 spaces deeper
    • sfraser couldn't live without an autopep8 formatter