Commit 6568ae0
committed
ci(codeql): persistent self-hosted Conan home + bounded restore retry
The Analyze (c-cpp) job intermittently failed on Install Conan dependencies
with "Failed to restore: The operation cannot be completed in timeout",
false-redding verified-good release PRs (#751, #756, #758).
Root cause is the same shape as the web-static Chrome flake fixed in #748: a
self-hosted job pulling a large payload over the network on every run.
CONAN_HOME was pinned to $RUNNER_TEMP/conan2 unconditionally, so each
self-hosted CodeQL run started with an empty Conan home and depended on
actions/cache restoring a multi-hundred-MB tree from the GitHub cache service
onto VM905. That restore times out under load; on a miss it also forced a
from-source boost rebuild.
- self-hosted: CONAN_HOME=$HOME/.conan2-codeql, persistent across runs.
Dedicated path rather than the shared ~/.conan2, preserving the torn-cache
isolation from #704/#710; this workflow serialises per ref via its
concurrency group, so nothing else writes that home.
- actions/cache restore is now github-hosted (fork PR) only.
- conan install wrapped in a 3x bounded retry with backoff for transient
remote hiccups.
build-mode stays manual: CodeQL c-cpp requires a real build, and none/autobuild
would either drop analysis coverage or still need the same Conan step.1 parent 65e447e commit 6568ae0
1 file changed
Lines changed: 35 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
53 | 67 | | |
54 | 68 | | |
55 | 69 | | |
| |||
78 | 92 | | |
79 | 93 | | |
80 | 94 | | |
81 | | - | |
82 | | - | |
| 95 | + | |
| 96 | + | |
83 | 97 | | |
84 | 98 | | |
85 | 99 | | |
| |||
93 | 107 | | |
94 | 108 | | |
95 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
96 | 113 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
103 | 128 | | |
104 | 129 | | |
105 | 130 | | |
| |||
0 commit comments