Skip to content
Snippets Groups Projects
  1. Mar 06, 2019
  2. Feb 27, 2019
  3. Mar 05, 2019
    • Raphaël Gomès's avatar
      Change `yaml.load` to `yaml.safe_load` and refactor into a util. · 64fc6714b31e
      Raphaël Gomès authored
      Both benchmarks/ and scmperf_lib/ make use of PyYAML to load yaml
      files. This library has used an unsafe (i.e. can load yaml bombs, etc.)
      loader by default since its inception and has been urging people to move
      to `safe_load` instead.
      
      We could have still used `load` by switching to SafeLoader, but the refactor
      shrunk the code so much that it would not really be an improvement.
      64fc6714b31e
    • Raphaël Gomès's avatar
      Parametrize the list of strip variants per repo. · c21323ce0592
      Raphaël Gomès authored
      Strip variants can differ between repos and should not be hardcoded.
      This change uses the data from the .benchrepo file for each repo to
      pass to each corresponding test.
      
      We are new storing the entire repo prefix instead of only storing
      the hash, since it is just as unique, removing the need to recompute
      the prefix from the hash later in the code.
      c21323ce0592
  4. Mar 04, 2019
  5. Mar 05, 2019
  6. Mar 04, 2019
  7. Mar 05, 2019
  8. Feb 26, 2019
  9. Mar 05, 2019
  10. Mar 04, 2019
  11. Feb 25, 2019
    • Boris Feld's avatar
      Update test-update-benchrepo.t · 0b2fad0b3726
      Boris Feld authored
      Repositories created using `make-reference` have the same id, prefix and
      on-disk file name. Update test-update-benchrepo.t to respect the same
      standard.
      0b2fad0b3726
    • Boris Feld's avatar
      Make update-benchrepo script update the benchrepo · 8b0a6084da28
      Boris Feld authored
      The update-benchrepo script was initially designed to rebuild the `.benchrepo`
      file from scratch. The downside of doing that is that it loses all manual
      changes and important information recorded when the reference was made (like
      the hg version).
      
      The big test change is because the test output was initially made with the
      previous code that recomputed the whole benchrepo. As the base benchrepo file
      is quite empty, the fact that we recompute only the format-info generate a big
      diff in the test file.
      8b0a6084da28
  12. Mar 04, 2019
  13. Feb 13, 2019
  14. Mar 05, 2019
  15. Jan 25, 2019
  16. Mar 05, 2019
  17. Mar 04, 2019
    • Raphaël Gomès's avatar
      Make the repos directory path configurable. · fc1af90dc2b7
      Raphaël Gomès authored
      We currently are limited in the way that tests can be run against
      the test data, which has to reside in the same folder.
      For reasons of flexibility and/or performance, one might need to
      change the filesystem path to the repositories being tested.
      This change introduces a new config variable "repodir" which
      must contain a valid path. While this path is ran through `os.path.abspath`,
      it is recommended to use an absolute path, since the working directory in this context
      is not garanteed to be stable.
      fc1af90dc2b7
  18. Feb 13, 2019
  19. Feb 21, 2019
  20. Feb 12, 2019
Loading