1. 11 Jul, 2022 15 commits
  2. 07 Apr, 2022 2 commits
    • Edmund Smith's avatar
      cargo clippy · fa3894bc
      Edmund Smith authored
    • Edmund Smith's avatar
      Allow querying the TestCases for a given Job · b99196c0
      Edmund Smith authored
      Each job is associated with a set of test results by Lava. In order to
      determine the cause of a job failure, it's necessary to examine these
      This forms a necessary part of improving our analysis of failures
      within our Lava instance.
  3. 13 Sep, 2021 6 commits
    • Edmund Smith's avatar
      Run cargo fmt on the codebase · 0f949a13
      Edmund Smith authored
    • Edmund Smith's avatar
      Add some documentation for limit() · 31672b76
      Edmund Smith authored
      There are some caveats around the use of limit that show up practice,
      particularly the possibility of data loss at page boundaries.
    • Edmund Smith's avatar
      Use strum to provide deserialization for jobs · 3fd336a8
      Edmund Smith authored
      strum can automatically provide a derivation for std::str::FromStr.
      By default, serde wants to use an implementation of
      std::convert::TryFrom in its deserialize derivation, but the
      serde_with library adds a derive macro that will use FromStr instead.
    • Edmund Smith's avatar
      Use strum to provide display for jobs · 1d43fafd
      Edmund Smith authored
      Now that we're using strum anyway, we can take advantage of its
      ability to derive a display implementation for us (which,
      conveniently, produces the exact same output as our existing
    • Edmund Smith's avatar
      Extend the job API to allow more specific queries · ede5e8f7
      Edmund Smith authored
      This adds support for:
      - Obtaining all jobs after a given id
      - Obtaining all jobs started, submitted or ended after a given time.
      - Obtaining jobs in a set of states or healths.
      These queries make it easier to construct smart job caches, for
      example retrieving all unfinished jobs
      (`.state_not(State::Finished)`), all jobs added since we last queried
      (`.id_after(max_id)`), or all jobs that underwent some transition
      after our last query (`.ended_after(query_time)`).
    • Edmund Smith's avatar
      Add a QuerySet type to make representing Django-style set queries easier · e78d6f7f
      Edmund Smith authored
      The QuerySet type that handles the desired semantics of `state()` and
      `state_not()` (similarly `health()` and `health_not()`). The standard
      REST pattern which this mimics is not entirely regular: if you do not
      specify any values, all values are included; once you specify a value,
      only that value is included, but specifying further values expands the
      accepted set. The routine `include()` is intended to back calls like
      `state()` on a JobsBuilder, and `exclude()` to back calls like
      To be eligible for inclusion in a QuerySet, the item type must
      implement the QuerySetMember trait, which allows the queryset to find
      all possible values for the type. This only really makes sense for
      simple enums. The need for all values stems from the need to elide
      the field entirely from the query if no filtering has ended up being
      requested, and because `exclude()` needs to know positively which
      values are included.
      An default initialized QuerySet provides no filtering, so need not be
      wrapped in an Option.
  4. 14 Jun, 2021 1 commit
  5. 17 May, 2021 1 commit
  6. 26 Apr, 2021 1 commit
  7. 14 Apr, 2021 3 commits
  8. 13 Apr, 2021 1 commit
  9. 06 Apr, 2021 3 commits
  10. 02 Apr, 2021 3 commits
  11. 13 Oct, 2020 2 commits
    • Sjoerd Simons's avatar
      Force a device ordering · a38becb3
      Sjoerd Simons authored
      When calling the device api point the device ordering seems
      non-deterministic; Which is not an issue apart from when getting the
      devices at an offset, which can cause missing/duplicated devices
      Signed-off-by: Sjoerd Simons's avatarSjoerd Simons <sjoerd@collabora.com>
    • Sjoerd Simons's avatar
      Handle redirects directly · 92783bf6
      Sjoerd Simons authored
      Reqwest can handle redirections internally, however when redirect to
      another site it filters out all sensitive headers in particular
      authorization (e.g. when redirecting from collabora.com to collabora.co.uk).
      So handle it in the code instead; While also ensure it doesn't downgrade
      from https to http
      Signed-off-by: Sjoerd Simons's avatarSjoerd Simons <sjoerd@collabora.com>
  12. 12 Oct, 2020 2 commits