Commit b77c86d
committed
code coverage: simplified caching, JaCoCo ver as env var
Motivation:
To improve maintainability and caching efficiency, the JaCoCo version is now configurable via an environment variable in build.yml,
eliminating hardcoded values in scripts. The cache configuration was also updated to align paths and simplify version management.
Modifications:
Added JACOCO_VERSION as an environment variable in build.yml and updated both scripts (get-jacoco.sh and generate-jacoco-report.sh) to use it.
Simplified the cache path and key in build.yml to depend on the environment variable, ensuring the cache is only invalidated when the version changes.
Results:
The JaCoCo version can now be updated in a single location, ensuring consistency across scripts and cache keys.
The cache reliably restores the JaCoCo CLI when the version remains unchanged, reducing CI runtime.
Testing:
Validated locally and in CI by confirming the correct JaCoCo version is used in scripts and that the cache behaves as expected.
Acked-by:
Target: master
Require-book: no
Require-notes: no
Committed:1 parent 4e2eca2 commit b77c86d
File tree
3 files changed
+7
-8
lines changed- .github/workflows
3 files changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
0 commit comments