1. 11 Oct, 2019 1 commit
    • Marc-Antoine Ruel's avatar
      python3 improvements · 8e57b4bc
      Marc-Antoine Ruel authored
      Ran:
        vi $(git grep --name-only iteritems | grep -v third_party)
        vi $(git grep --name-only itervalues | grep -v third_party)
        vi $(git grep --name-only 'print ' | grep -v third_party)
      
      and edited the files quickly with adhoc macros. Then ran in recipes/:
        ./recipes.py test train
      
      There was only a small subset of files that had been updated to use
      six.iteritems() and six.itervalues(). Since the dataset size that is
      being used in gclient is small (pretty much always below 200 items),
      it's better to just switch to .items() right away and take the temporary
      performance hit, so that we don't need to come back to rewrite the code.
      
      Recipe-Nontrivial-Roll: build
      Bug: 984182
      Change-Id: I5faf11486b66b0d73c9098ab0f2ce1b15a45c53e
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1854900
      Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      Reviewed-by: 's avatarEdward Lesmes <ehmaldonado@chromium.org>
      Auto-Submit: Marc-Antoine Ruel <maruel@chromium.org>
      8e57b4bc
  2. 20 Jun, 2019 1 commit
  3. 29 May, 2019 1 commit
  4. 07 May, 2019 1 commit
  5. 29 Jan, 2019 1 commit
  6. 10 Jan, 2019 1 commit
  7. 06 Dec, 2018 1 commit
  8. 29 Nov, 2018 1 commit
  9. 15 Nov, 2018 2 commits
  10. 17 Oct, 2018 1 commit
  11. 13 Feb, 2018 2 commits
    • Bruce Dawson's avatar
      Fix autoninja && chrome on failed builds · 46541b49
      Bruce Dawson authored
      A handy usage pattern for autoninja.bat that I was not aware of is to go
      
          autoninja -C out\Default chrome && chrome
      
      This will build chrome and then run it, but only run it if the build
      succeeds. The addition of post_build_ninja_summary.py broke this by
      losing the error code. This change fixes it by using black magic to
      set an error code in the failure case.
      
      Bug: chromium:787983
      Change-Id: Ib87fd1799816e19d56de76e08e0f9688be903d80
      Reviewed-on: https://chromium-review.googlesource.com/916705Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
      Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
      46541b49
    • Bruce Dawson's avatar
      Update post_build_ninja_summary.py for Linux · e186e50d
      Bruce Dawson authored
      post_build_ninja_summary.py gives a summary of a ninja build. It can be
      run standalone or it can be run automatically by autoninja. This CL
      updates the Python script and the autoninja bash script to make this
      work on Linux. This includes removing a zero-value assert, and ensuring
      that .so files get categorized as such.
      
      Change-Id: I2d59ab129f5ce70117beeb119719f8432bfbab7c
      Reviewed-on: https://chromium-review.googlesource.com/915053Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
      Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
      e186e50d
  12. 12 Jun, 2017 1 commit
    • Bruce Dawson's avatar
      autoninja - ninja wrapper to make goma easier · ebebd952
      Bruce Dawson authored
      Using goma requires the developer to remember which build directories
      use goma and which don't so that they can pass an appropriate -j number.
      Getting this wrong makes builds slower, either by under utilizing
      resources or by causing a self-inflicted DOS attack. Usage:
      
          autoninja -C out/debug
      
      autoninja looks at the settings for the specified build directory and
      then selects either -j num_cores*20 or no -j flag based on the
      use_goma setting.
      
      You can set the NINJA_CORE_MULTIPLIER variable to change from the
      default 20* multiplier. You can also use NINJA_CORE_ADDITION if you
      want non-goma builds to specify -j with an offset to the number of
      cores, such as this Linux command:
      
          NINJA_CORE_ADDITION=-2 autoninja -C out/release base
      
      This will tell autoninja to pass -j to ninja with num_cores-2 as the
      parameter.
      
      On Windows you can have a ninja.bat file (ahead of ninja on the path)
      such that autoninja will automatically be used. It should contain this:
          @call autoninja.bat %*
      
      Change-Id: I4003e3fc323d1cbab612999c945b5a8dc5bc6655
      Reviewed-on: https://chromium-review.googlesource.com/517662Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
      Reviewed-by: 's avatarFumitoshi Ukai <ukai@chromium.org>
      Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
      ebebd952