Commit 0711169
authored
[ABLD-300] Unplug
### What does this PR do?
Introduce `.bazel:defs:cache:macos` (similar to
`.bazel:defs:cache:windows`) cache configuration and migrate macOS jobs
to use runner-specific cache locations instead of GitLab distributed
cache.
### Motivation
macOS runners use persistent temporary directories
(`$RUNNER_TEMP_PROJECT_DIR`) that survive across pipeline runs on the
same runner. Using GitLab's distributed cache
(`.bazel:defs:cache:ephemeral` with `$CI_PROJECT_DIR/.cache`) was
suboptimal -if not wrong- because:
1. macOS runners don't benefit from distributed cache across different
machines,
2. the runner's temporary directory provides better locality and
persistence,
3. cache configurations suitable for ephemeral containers shouldn't
apply to macOS runners.
### Additional Notes
`.agent_dmg` jobs:
- replaced `.bazel:defs:cache:omnibus-transition` with
`.bazel:defs:cache:macos`,
- ... but restored `cache: - !reference [.cache_omnibus_ruby_deps,
cache]` previously inherited from
`.bazel:defs:cache:omnibus-transition`.
`.tests_macos_gitlab` jobs:
- replaced `.unit_test_base` (ephemeral cache) with
`.bazel:defs:cache:macos`,
- ... but preserved `FLAKY_PATTERNS_CONFIG` variable previously
inherited from `.unit_test_base`.bazel from GitLab caches on macOS (#43604)1 parent 427de80 commit 0711169
3 files changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| |||
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
57 | | - | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
61 | | - | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments