1. 18 Jul, 2020 1 commit
  2. 25 Jun, 2020 1 commit
    • juga's avatar
      fix: v3bwfile: Count relay priority lists · a914215c
      juga authored
      and measurement attempts from all the results.
      Until they get properly updated.
      
      Also change dates in tests, so that timestamps are counted correctly
      
      Closes: #34309.
      a914215c
  3. 08 Jun, 2020 15 commits
  4. 14 Apr, 2020 4 commits
  5. 09 Apr, 2020 2 commits
  6. 09 Mar, 2020 12 commits
    • juga's avatar
      fix: !refactor: Remove/replace unneded constant · 55302251
      juga authored
      Part of #30196
      55302251
    • juga's avatar
      fix: v3bwfile: Reformat to don't get flake8 errors · a287ad4b
      juga authored
      Part of #30196
      a287ad4b
    • juga's avatar
      fix: v3bwfile: !refactor, Replace constant list · d4618e8f
      juga authored
      d4618e8f
    • juga's avatar
      fix: v3bwfile: Move keys to correct constant · 713ca6a1
      juga authored
      Part of #30196.
      713ca6a1
    • juga's avatar
      fix: v3bwfile: Add comment about bwlines v1.3 · fa59e991
      juga authored
      Part of #30196.
      fa59e991
    • juga's avatar
      fix: v3bwfile: !refactor, Reorder header constants · e9182a41
      juga authored
      by version.
      
      Part of #30196.
      e9182a41
    • 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, Replace constant · ed24b53d
      juga authored
      Replace HEADER_INIT_KEYS constant KeyValues with other constants
      created in the previous commit.
      
      Part of #30196.
      ed24b53d
    • juga's avatar
      fix: v3bwfile: !refactor, replace constants · 27e2112a
      juga authored
      - Add new KeyValues constants
      - Remove HEADER_KEYS_V1X constant, only used once
      - Replace HEADER_UNORDERED_KEYS with the new constants
      
      Part of #30196.
      27e2112a
    • juga's avatar
      fix: v3bwfile: Add constant for ordered key/values · 017c7c10
      juga authored
      to build the list of all keys from it and ensure no key is missing.
      017c7c10
    • juga's avatar
      fix: v3bwfile: Reformat to don't get flake8 errors · be0c5ea4
      juga authored
      After the automatic constants renaming, fix the flake8 errors by
      reformatting automatically with `black`, only the lines that had
      errors.
      
      Part of #30196
      be0c5ea4
    • 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
  7. 17 Jun, 2019 1 commit
  8. 29 Mar, 2019 1 commit
    • juga's avatar
      fix: v3bwfile: Use bytes to compare bandwidth sum · 4adb743f
      juga authored
      Use bytes to compare the sum of scaled bandwidth (in KB) with the
      sum of the consensus one (previously converted to Bytes measured.
      Also:
      - Check that the bandwidth attribute exists, since it was not
        stored in older versions.
      - Do not sum the bw=1 as a result of the relays being unmeasured.
      - Calculate the percentage difference as two difference values.
      - Log which were actually the bandwidth sums.
      4adb743f
  9. 27 Mar, 2019 3 commits
    • 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: v3bwfile: Change from_results to set · d2752c00
      juga authored
      under_min_report KeyValue when the minimum percent is not reached.
      Also change list by int the methods that calculate the progress.
      
      Part of #29853.
      d2752c00
    • juga's avatar
      fix: v3bwfile: Add method to set under_min_report KeyValue · ab413321
      juga authored
      in the Bandwidth Lines.
      When the minimum percent of relays it's not reached, still report
      the relays but set KeyValues accordingly so that Tor doesn't vote
      on their bandwidth.
      
      Part of #29853.
      ab413321