Skip to content
Snippets Groups Projects
  1. Mar 09, 2020
    • juga's avatar
      fix: v3bwfile: Add tor_version KeyValue · 6843145a
      juga authored
      - Create new KeyValues constants for the new v1.5.0 KeyValues
      - Instanciate State in Header.from_results so that there is no need
        to create new methods for all the header KeyValues that are read
        from the state file
      - Add tor_version to the kwargs to initialize the Header
      - Write tor_version in the state file when the scanner is started
      
      Closes: #30196.
      6843145a
    • juga's avatar
      fix: v3bwfile: !refactor, Rename constants · 7b767465
      juga authored
      Rename constants to make their names more consistent with each other.
      All header constants start now by HEADER_ and all Bandwidth Lines by
      BWLINE_.
      The constants that are a list of keys are now named KEYS instead of
      KEY_VALUE or KEY_VALUE.
      
      These are the substitutions made:
      
      s/BW_KEYVALUE_SEP_V1/BWLINE_KEYVALUES_SEP_V1/
      s/BW_KEYVALUES_BASIC/BWLINE_KEYS_V0/
      s/BW_KEYVALUES_FILE/BWLINE_KEYS_V1_1/
      s/BW_KEYVALUES_EXTRA_BWS/BWLINE_KEYS_V1_2/
      s/BANDWIDTH_LINE_KEY_VALUES_MONITOR/BWLINE_KEYS_V1_4/
      s/BW_KEYVALUES_EXTRA/BWLINE_KEYS_V1/
      s/BW_KEYVALUES_INT/BWLINE_INT_KEYS/
      s/BW_KEYVALUES/BWLINE_ALL_KEYS/
      s/EXTRA_ARG_KEYVALUES/HEADER_KEYS_V1X/
      s/STATS_KEYVALUES/HEADER_KEYS_V1_2/
      s/BW_HEADER_KEYVALUES_RECENT_MEASUREMENTS_EXCLUDED/HEADER_RECENT_MEASUREMENTS_EXCLUDED_KEYS/
      s/BW_HEADER_KEYVALUES_MONITOR/HEADER_KEYS_V1_4/
      s/BANDWIDTH_HEADER_KEY_VALUES_INIT/HEADER_INIT_KEYS/
      s/KEYVALUES_INT/HEADER_INT_KEYS/
      s/UNORDERED_KEYVALUES/HEADER_UNORDERED_KEYS/
      s/ALL_KEYVALUES/HEADER_ALL_KEYS/
      
      Part of #30196
      7b767465
  2. Feb 19, 2020
  3. Feb 05, 2020
    • juga's avatar
      fix: CI: Test all supported python versions · 0939152c
      juga authored
      As in chutney and stem:
      - Test all supported python versions
      - Test all supported tor versions
      
      Differences between chutney, stem and sbws:
      - in sbws we run directly, not an script that calls tox
      - we're not using chutney for integration tests (yet) and therefore we're not testing it with different networks
      - we don't have shellcheck tests
      - we don't support osx nor windows
      
      Closes: #30067
      0939152c
  4. Mar 27, 2019
    • juga's avatar
      fix: tests: Replace str by int · 9b054bad
      juga authored
      when setting vote and unmeasured Keys.
      It doesn't matter here because there're not operations with the
      Keys and they're always converted to string in the bandwidth file,
      but it less confusing as integer.
      9b054bad
    • juga's avatar
      fix: tests: Add set_under_min_report · 73c0b68e
      juga authored
      to test that the `under_min_report` KeyValue is added when the
      number of eligible relays is less than the 60% of relays in the
      consensus.
      73c0b68e
    • juga's avatar
      chg: tests: Add testnet generated files · 8e43dda6
      juga authored
      and run generate as part of the integration tests.
      This allows to later check that the testnet genearted files
      contain the expected Keys and Values with an script in #29727.
      8e43dda6
    • juga's avatar
      fix: tests: Change torflow_scale to continue scaling · 7a9a9e08
      juga authored
      even if the minimum percent was not reach.
      
      Closes: #29853.
      7a9a9e08
    • juga's avatar
      fix: destination: Multiply errors by the threads · 612807e3
      juga authored
      Since when a destination fails, all the threads using it will also
      fail that moment.
      For now not checking which threads are actually using it.
      Also lower the time to retry.
      
      Closes: #29891.
      612807e3
  5. Mar 21, 2019
  6. Mar 17, 2019
  7. Mar 16, 2019
  8. Mar 13, 2019
  9. Mar 08, 2019
  10. Feb 28, 2019
  11. Feb 26, 2019
    • juga's avatar
      tests: CB.build_circuit now returns a tuple · 54c5db04
      juga authored
      Change tests added in #28897 with the changes introduced in #28736.
      54c5db04
    • juga's avatar
      destination: remove unused code · 883307ba
      juga authored
      883307ba
    • juga's avatar
      destination: record consecutive failures · 84e5d82c
      juga authored
      Add methods to store consecutive destination failures and retrieve
      the destinations that are still functional.
      Since destinations can fail because of Tor circuits, it's not count
      individual failures but consecutives one.
      Also exit with error if there are no functional destinations left.
      The maximum number of consecuitve failures is set to 10, but it
      may need to be changed depending on the percentage of circuits and
      requests that fail.
      84e5d82c
    • juga's avatar
      destination: stop running twice usability tests · d33ac8f6
      juga authored
      in every measurement.
      This removes the need for an extra lock for every measurement
      It should also not be depending on a time interval, but on the
      number of failures detected.
      Not counting number of failures since it would need to modify the
      destination or list of at runtime. It should be done in a future
      refactor.
      
      Fixes bug #28897. Bugfix v0.3.0
      d33ac8f6
  12. Feb 25, 2019
  13. Feb 21, 2019
  14. Feb 06, 2019
Loading