Skip to content
Snippets Groups Projects
  1. Nov 04, 2023
  2. Nov 03, 2023
    • Emanuele Aina's avatar
      Fix thread_pool() signature now that num_retries is no longer used · ebab6716
      Emanuele Aina authored
      
      The new tenacity-based code limits the overall time interval during
      which it retries failed calls and no longer limits the actual number of
      retries on its own.
      
      Since in some cases the called function may not be retry-safe, just
      expose a boolean to make retrying opt-in and avoid some potential foot
      shooting in the future.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      ebab6716
    • Walter Lozano's avatar
      Change default value for license report · 09e15175
      Walter Lozano authored
      
      The concept used for licensing checks is to have as default the most
      common value, which allows us to ommit it and save space in our yaml
      files.
      
      Following this approach, change the default value for license report
      to True.
      
      Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
      09e15175
    • Walter Lozano's avatar
      Use defaults for licensing checks · 2910bd57
      Walter Lozano authored
      
      Report for licensing issues tend to be rare, so most of the related entries
      are False, even though we populate the yaml files with lot of entries of
      these entries. In order to reduce the size of the yaml file, only add
      entries for not default values.
      
      This is specially true for components like development, where checks are not
      performed but data is reported.
      
      At the same time, fix a bug in the cache support for licensing, caused by the
      fact that upstream branches do not provide license reports which was
      interpreted as missing data forcing the logic to retrieve information from
      Gitlab.
      
      Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
      2910bd57
    • Walter Lozano's avatar
      Continue job if cache cannot be retrieved · 7978628f
      Walter Lozano authored and Emanuele Aina's avatar Emanuele Aina committed
      In some circumstances there is no valid artifact to download to be
      used as cache causing the job to fail. In such a case, instead of
      aborting the job just continue without cache.
      
      As reference:
      
      $ CACHE_ARGS=""
      $ ARTIFACT_URL=${ARTIFACT_URL:-$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/artifacts/$CI_DEFAULT_BRANCH/raw/packaging-cache.yaml?job=pages}
      $ if [ "$ARTIFACT_URL" != none ] && [ "$DISABLE_CACHE" == "no" ] && [ "$FILTER_ON_CACHE" == "yes" ] # collapsed multi-line command
      --2023-10-24 18:16:17--  https://gitlab.apertis.org/api/v4/projects/6587/jobs/artifacts/master/raw/packaging-cache.yaml?job=pages
      
      
      Resolving gitlab.apertis.org (gitlab.apertis.org)... 116.203.10.182, 2a01:4f8:1c0c:80ad::1
      Connecting to gitlab.apertis.org (gitlab.apertis.org)|116.203.10.182|:443... connected.
      HTTP request sent, awaiting response... 404 Not Found
      2023-10-24 18:16:18 ERROR 404: Not Found.
      
      Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
      7978628f
  3. Nov 02, 2023
    • Emanuele Aina's avatar
      Adopt exponential backoff when retrying · 9fc43368
      Emanuele Aina authored
      The current naive approach at retrying is not exactly gentle: if the
      server is overloaded we retry right ahead making the problem just worse.
      
      See https://encore.dev/blog/retries
      
       for a fun explanation of how the
      naive approach can be catastrophic.
      
      Fortunately the `tenacity` library allow us to add a bounded exponential
      backoff while also making the code easier to understand.
      
      This should make the dashboard behave much better toward GitLab and OBS
      when they hit some issue.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      9fc43368
  4. Oct 24, 2023
  5. Sep 22, 2023
  6. Sep 21, 2023
  7. Sep 06, 2023
  8. Sep 05, 2023
  9. Sep 04, 2023
  10. Aug 28, 2023
  11. Aug 23, 2023
  12. Aug 18, 2023
  13. Aug 17, 2023
  14. Aug 16, 2023
  15. Aug 04, 2023
  16. Jul 24, 2023
  17. Jul 23, 2023
  18. Jul 22, 2023
Loading