gowalk-cicd 1.0.213 → 1.0.215
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,7 +5,9 @@ const {createHash} = require('node:crypto');
|
|
|
5
5
|
const fs = require('node:fs');
|
|
6
6
|
const INTENT = '.factory/releases/mobile.json';
|
|
7
7
|
const SCHEMA = 'gowalk-cicd/mobile-release.v2';
|
|
8
|
-
|
|
8
|
+
// A large committed tree can exceed Node's default child-process output limit.
|
|
9
|
+
const git = (...args) => execFileSync('git', args, {encoding: 'utf8', maxBuffer: 64 * 1024 * 1024,
|
|
10
|
+
stdio: ['ignore', 'pipe', 'ignore']});
|
|
9
11
|
const digest = value => createHash('sha256').update(value).digest('hex');
|
|
10
12
|
|
|
11
13
|
function input(name, platform) {
|
|
@@ -5,7 +5,8 @@ const {execFileSync} = require('node:child_process');
|
|
|
5
5
|
const {createHash} = require('node:crypto');
|
|
6
6
|
const {join} = require('node:path');
|
|
7
7
|
const hash = value => createHash('sha256').update(value).digest('hex');
|
|
8
|
-
|
|
8
|
+
// A large committed tree can exceed Node's default child-process output limit.
|
|
9
|
+
const git = (...args) => execFileSync('git', args, {encoding: 'utf8', timeout: 10000, maxBuffer: 64 * 1024 * 1024,
|
|
9
10
|
stdio: ['ignore', 'pipe', 'ignore']});
|
|
10
11
|
const HELPERS = ['native_validation.cjs', 'native_validation_inputs.cjs', 'native_validation_github.cjs',
|
|
11
12
|
'mobile_release_api.cjs'];
|
|
@@ -9,6 +9,9 @@ import tempfile
|
|
|
9
9
|
from android_config import find_gradle_root, project_kind
|
|
10
10
|
from gradle_wrapper import ensure_toolchain
|
|
11
11
|
|
|
12
|
+
# Match AGP test-component suffixes, not flavor substrings such as "latest".
|
|
13
|
+
TEST_CLASSPATH_PATTERN = r".*(?:UnitTest|AndroidTest|TestFixtures)(?:Compile|Runtime|AnnotationProcessor)Classpath"
|
|
14
|
+
|
|
12
15
|
INIT = """
|
|
13
16
|
gradle.projectsEvaluated {
|
|
14
17
|
rootProject.tasks.register('gowalkPrimeDependencies') {
|
|
@@ -17,7 +20,8 @@ gradle.projectsEvaluated {
|
|
|
17
20
|
rootProject.allprojects.each { target ->
|
|
18
21
|
target.configurations.findAll { config ->
|
|
19
22
|
config.canBeResolved && config.name.toLowerCase().contains('release') &&
|
|
20
|
-
config.name.toLowerCase().endsWith('classpath')
|
|
23
|
+
config.name.toLowerCase().endsWith('classpath') &&
|
|
24
|
+
!config.name.matches('%s')
|
|
21
25
|
}.each { config ->
|
|
22
26
|
config.resolvedConfiguration.resolvedArtifacts.each { artifact -> artifact.file.length() }
|
|
23
27
|
resolved++
|
|
@@ -27,7 +31,7 @@ gradle.projectsEvaluated {
|
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
33
|
}
|
|
30
|
-
"""
|
|
34
|
+
""" % TEST_CLASSPATH_PATTERN
|
|
31
35
|
|
|
32
36
|
|
|
33
37
|
def prepare(root: Path, run=subprocess.run) -> Path:
|
package/docs/GRADLE_CACHE.md
CHANGED
|
@@ -38,6 +38,10 @@ five minutes; Gradle saves a complete graph under a distinct `-warm-` key. Nativ
|
|
|
38
38
|
their existing in-build Ruby/Xcode/architecture cache lifecycle. No arbitrary toolchain selector
|
|
39
39
|
is replayed by this optional Flutter cache path.
|
|
40
40
|
|
|
41
|
+
Gradle priming resolves production release classpaths only. AGP unit-test, Android-test and test-fixture
|
|
42
|
+
component classpaths are excluded: their application self-dependencies can require generated artifacts
|
|
43
|
+
and ambiguous variant selection. Flavor names containing `test`, such as `latest`, remain included.
|
|
44
|
+
|
|
41
45
|
The warm-up remains off the delivery critical path and records its own completed runner minutes
|
|
42
46
|
in `dependency-performance-<run>-<attempt>`. Include this auxiliary work when measuring cost.
|
|
43
47
|
Cache eviction or new dependency/toolchain identities can legitimately require priming again.
|