Project

General

Profile

Actions

Task #3905

closed
VJ JI

Task #3862: qa: CI improvements

GitHub CI: use sccache for commits build

Task #3905: GitHub CI: use sccache for commits build

Added by Victor Julien over 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Low
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

A job with a relatively large number of commits (>10) will spend a long time on the commits build. This can possibly run faster by using sccache. Installing sccache itself takes time, at least from source, so perhaps we could use a prebuild version.

https://github.com/mozilla/sccache/releases

VJ Updated by Victor Julien over 5 years ago Actions #1

  • Status changed from New to Assigned
  • Assignee set to Jason Ish
  • Priority changed from Normal to Low
  • Target version set to 7.0.0-beta1

VJ Updated by Victor Julien over 4 years ago Actions #2

  • Target version changed from 7.0.0-beta1 to 8.0.0-beta1

JI Updated by Jason Ish over 4 years ago Actions #3

  • Status changed from Assigned to Closed
  • Target version changed from 8.0.0-beta1 to 7.0.0-beta1

This is actually done, https://github.com/OISF/suricata/commit/858ab077752478ec0df2e6312353f36860a47c52, and in master now.

We can see its actually used if you open the sccache stats in a GitHub CI build: https://github.com/OISF/suricata/runs/3575433709?check_suite_focus=true#step:13:1

VJ Updated by Victor Julien over 4 years ago Actions #4

If I'm not mistaken we use it only for the Rust code? I should be able to cache C compiler as well. In large PRs this might help a lot as well.

JI Updated by Jason Ish over 4 years ago Actions #5

PR to use sccache for gcc as well: https://github.com/OISF/suricata/pull/6444

Actions

Also available in: PDF Atom