webrtc/rtc_tools/testing
Mirko Bonadei 8cc6695652 Reformat python files checked by pylint (part 1/2).
After recently changing .pylintrc (see [1]) we discovered that
the presubmit check always checks all the python files when just
one python file gets updated.

This CL moves all these files one step closer to what the linter
wants.

Autogenerated with:

# Added all the files under pylint control to ~/Desktop/to-reformat
cat ~/Desktop/to-reformat | xargs sed -i '1i\\'
git cl format --python --full

This is part 1 out of 2. The second part will fix function names and
will not be automated.

[1] - https://webrtc-review.googlesource.com/c/src/+/186664

No-Presubmit: True
Bug: webrtc:12114
Change-Id: Idfec4d759f209a2090440d0af2413a1ddc01b841
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/190980
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32530}
2020-10-30 10:13:11 +00:00
..
golang Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
build_apprtc.py Reformat python files checked by pylint (part 1/2). 2020-10-30 10:13:11 +00:00
download_apprtc.py Reformat python files checked by pylint (part 1/2). 2020-10-30 10:13:11 +00:00
prebuilt_apprtc.zip.sha1 Update prebuilt AppRTC 2018-03-02 12:16:29 +00:00
README.md Update prebuilt AppRTC 2018-03-02 12:16:29 +00:00
setup_apprtc.py Reformat python files checked by pylint (part 1/2). 2020-10-30 10:13:11 +00:00
utils.py Reformat python files checked by pylint (part 1/2). 2020-10-30 10:13:11 +00:00

This directory contains prebuilt tools used during end-to-end tests. They will be downloaded by their SHA1 hash, and are not meant to be checked in.

Updating prebuilt_apprtc.zip:

  • Follow AppRTC instructions:
    • git clone https://github.com/webrtc/apprtc
    • Install NodeJS:
      • Download https://nodejs.org/ and extract it
      • export PATH="$(pwd)/node-v6.10.3-linux-x64/bin:$PATH"
    • cd apprtc
    • npm install
    • export PATH="$(pwd)/node_modules/.bin:$PATH"
    • pip install --user --upgrade pip setuptools - needed only on old systems
    • grunt
  • Vendor collider's dependencies:
    • ln -s "$(pwd)/src/collider" src/src
    • GOPATH="$(pwd)/src" go get -d collidermain
    • rm src/src
  • Install additional components:
    • python temp/google-cloud-sdk/bin/dev_appserver.py out/app_engine
      • Stop it and run the suggestion: ./temp/google-cloud-sdk/bin/gcloud components install app-engine-python-extras
  • Remove largest unneeded files:
    • rm -rf .git node_modules browsers temp/google-cloud-sdk/.install/.{backup,download} temp/google-cloud-sdk/platform/google_appengine/lib/django-*
  • zip -r prebuilt_apprtc.zip apprtc/
  • mv prebuilt_apprtc.zip webrtc/src/rtc_tools/testing/prebuilt_apprtc.zip

Updating golang/*:

  • Go to https://golang.org/dl/
  • Download these files:
    • go*.linux-amd64.tar.gz -> golang/linux/go.tar.gz
    • go*.darwin-amd64.tar.gz -> golang/mac/go.tar.gz
    • go*.windows-amd64.zip -> golang/windows/go.zip

After updating the archives:

  • cd webrtc/src/rtc_tools/testing
  • For each updated archive:
    • upload_to_google_storage.py file.zip --bucket=chromium-webrtc-resources
  • git commit -a && git cl upload