Skip to content

fix(other): github cache in workflow

Hannes Heine requested to merge fix-runner into master

Created by: ulfgebhardt

🍰 Pullrequest

Fix vulnerabilities that have come into our CI through the workflow refactoring.

  • allow manual re-run of failed jobs with intact workflow cache (do not delete cache, if a preceeding job failed)

    05_fail_of_backend_unit_tests_not_triggering_cache_delete_job

    06_rerun_backend_unit_tests_is_restoring_correct_cache

  • handle cache cleanup to avoid "cache thrashing"

Todo

  • use runner id for distinguishable cache naming
  • run cache deletion job only, if
    • workflow's file change condition is true
    • needed preceding jobs ran successfully
  • add recommended branch cache cleanup at pr closing workflow

Thanx @ulfgebhardt for the good hints.

Merge request reports