apify-test-tools 0.6.4-beta.0 → 0.6.4-beta.2
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.
- package/CHANGELOG.md +20 -0
- package/bin/diff-changes.ts +10 -9
- package/bin/git.ts +5 -45
- package/bin/main.ts +22 -46
- package/dist/bin/diff-changes.d.ts.map +1 -1
- package/dist/bin/diff-changes.js +10 -8
- package/dist/bin/diff-changes.js.map +1 -1
- package/dist/bin/git.d.ts +0 -11
- package/dist/bin/git.d.ts.map +1 -1
- package/dist/bin/git.js +3 -37
- package/dist/bin/git.js.map +1 -1
- package/dist/bin/main.js +22 -33
- package/dist/bin/main.js.map +1 -1
- package/dist/lib/lib.d.ts +5 -2
- package/dist/lib/lib.d.ts.map +1 -1
- package/dist/lib/lib.js +38 -28
- package/dist/lib/lib.js.map +1 -1
- package/dist/test/unit/bin/git.test.js +1 -68
- package/dist/test/unit/bin/git.test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/lib/lib.ts +46 -32
- package/package.json +1 -1
- package/test/unit/bin/git.test.ts +1 -87
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
<!-- git-cliff-unreleased-start -->
|
|
6
|
+
## 0.6.4 - **not yet released**
|
|
7
|
+
|
|
8
|
+
### 🚀 Features
|
|
9
|
+
|
|
10
|
+
- **testStandby:** Allow for custom paths and headers ([#77](https://github.com/apify/apify-test-tools/pull/77)) ([4e48329](https://github.com/apify/apify-test-tools/commit/4e4832973ebff4e97725e1abb0020887c874d347)) by [@JuanGalilea](https://github.com/JuanGalilea)
|
|
11
|
+
|
|
12
|
+
### 🐛 Bug Fixes
|
|
13
|
+
|
|
14
|
+
- Standby tests ([#76](https://github.com/apify/apify-test-tools/pull/76)) ([33cd89c](https://github.com/apify/apify-test-tools/commit/33cd89cf9e512f422704eeb8f6c46e4e2759a902)) by [@oklinov](https://github.com/oklinov)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
<!-- git-cliff-unreleased-end -->
|
|
18
|
+
## [0.6.3](https://github.com/apify/apify-test-tools/releases/tag/v0.6.3) (2026-04-06)
|
|
19
|
+
|
|
20
|
+
### 🐛 Bug Fixes
|
|
21
|
+
|
|
22
|
+
- **bin:** Case sensitivity in file path handling for git operations ([#75](https://github.com/apify/apify-test-tools/pull/75)) ([ae15cb6](https://github.com/apify/apify-test-tools/commit/ae15cb6a5e0b52d9332b7149b0b4f760cb41953a)) by [@metalwarrior665](https://github.com/metalwarrior665)
|
|
23
|
+
|
|
24
|
+
|
|
5
25
|
## [0.6.2](https://github.com/apify/apify-test-tools/releases/tag/v0.6.2) (2026-03-27)
|
|
6
26
|
|
|
7
27
|
### 🚀 Features
|
package/bin/diff-changes.ts
CHANGED
|
@@ -51,7 +51,9 @@ type FileChange =
|
|
|
51
51
|
includes: 'all-actors' | ActorConfig;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
const classifyFileChange = (
|
|
54
|
+
const classifyFileChange = (originalFilePath: string, actorConfigs: ActorConfig[], commits: Commit[]): FileChange => {
|
|
55
|
+
// Lowercase for case-insensitive matching; keep original for git show (case-sensitive on Linux)
|
|
56
|
+
const lowercaseFilePath = originalFilePath.toLowerCase();
|
|
55
57
|
if (isIgnoredTopLevelFile(lowercaseFilePath)) {
|
|
56
58
|
return { impact: 'ignored' };
|
|
57
59
|
}
|
|
@@ -79,7 +81,8 @@ const classifyFileChange = (lowercaseFilePath: string, actorConfigs: ActorConfig
|
|
|
79
81
|
if (lowercaseFilePath.endsWith('readme.md')) {
|
|
80
82
|
return { impact: 'cosmetic', includes: actorConfigChanged };
|
|
81
83
|
}
|
|
82
|
-
|
|
84
|
+
// originalFilePath must be used here (not lowercaseFilePath) — git show is case-sensitive on Linux
|
|
85
|
+
if (lowercaseFilePath.endsWith('.json') && isCosmeticOnlyJsonSchemaChange(commits, originalFilePath)) {
|
|
83
86
|
return { impact: 'cosmetic', includes: actorConfigChanged };
|
|
84
87
|
}
|
|
85
88
|
|
|
@@ -101,10 +104,8 @@ export const getChangedActors = ({
|
|
|
101
104
|
|
|
102
105
|
const actorConfigsWithoutStandalone = actorConfigs.filter(({ isStandalone }) => !isStandalone);
|
|
103
106
|
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
for (const lowercaseFilePath of lowercaseFiles) {
|
|
107
|
-
const fileChange = classifyFileChange(lowercaseFilePath, actorConfigs, commits);
|
|
107
|
+
for (const originalFilePath of filepathsChanged) {
|
|
108
|
+
const fileChange = classifyFileChange(originalFilePath, actorConfigs, commits);
|
|
108
109
|
if (fileChange.impact === 'ignored') {
|
|
109
110
|
continue;
|
|
110
111
|
}
|
|
@@ -126,17 +127,17 @@ export const getChangedActors = ({
|
|
|
126
127
|
const actorsChanged = Array.from(actorsChangedMap.values());
|
|
127
128
|
|
|
128
129
|
// All below here is just for logging
|
|
129
|
-
const ignoredFilesChanged =
|
|
130
|
+
const ignoredFilesChanged = filepathsChanged.filter(
|
|
130
131
|
(file) => classifyFileChange(file, actorConfigs, commits).impact === 'ignored',
|
|
131
132
|
);
|
|
132
133
|
console.error(`[DIFF]: Ignored files (don't trigger test or build): ${ignoredFilesChanged.join(', ')}`);
|
|
133
134
|
|
|
134
|
-
const cosmeticFilesChanged =
|
|
135
|
+
const cosmeticFilesChanged = filepathsChanged.filter(
|
|
135
136
|
(file) => classifyFileChange(file, actorConfigs, commits).impact === 'cosmetic',
|
|
136
137
|
);
|
|
137
138
|
console.error(`[DIFF]: Cosmetic files (should only trigger release build): ${cosmeticFilesChanged.join(', ')}`);
|
|
138
139
|
|
|
139
|
-
const functionalFilesChanged =
|
|
140
|
+
const functionalFilesChanged = filepathsChanged.filter(
|
|
140
141
|
(file) => classifyFileChange(file, actorConfigs, commits).impact === 'functional',
|
|
141
142
|
);
|
|
142
143
|
console.error(`[DIFF]: Functional files (trigger test & release build): ${functionalFilesChanged.join(', ')}`);
|
package/bin/git.ts
CHANGED
|
@@ -17,41 +17,6 @@ export const getChangedFiles = (commits: Commit[]) => {
|
|
|
17
17
|
return changedFiles;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
/**
|
|
21
|
-
* Returns true if the branch contains a merge commit whose parent is reachable from targetBranch
|
|
22
|
-
* (i.e. a genuine "merge from target" commit, not a merge of some unrelated branch).
|
|
23
|
-
* Uses the full targetBranch..sourceBranch range, ignoring baseCommit.
|
|
24
|
-
*/
|
|
25
|
-
export const hasMergeFromTarget = (sourceBranch: string, targetBranch: string): boolean => {
|
|
26
|
-
const mergeShas = spawnCommandInGhWorkspace(`git log --merges --pretty=format:%H ${targetBranch}..${sourceBranch}`)
|
|
27
|
-
.split('\n')
|
|
28
|
-
.filter(Boolean);
|
|
29
|
-
|
|
30
|
-
for (const sha of mergeShas) {
|
|
31
|
-
const parents = spawnCommandInGhWorkspace(`git log -1 --pretty=format:%P ${sha}`).trim().split(' ');
|
|
32
|
-
for (const parent of parents) {
|
|
33
|
-
// git merge-base A B outputs the common ancestor.
|
|
34
|
-
// If that equals A, then A is an ancestor of B (i.e. parent is reachable from targetBranch).
|
|
35
|
-
const mergeBase = spawnCommandInGhWorkspace(`git merge-base ${parent} ${targetBranch}`);
|
|
36
|
-
if (mergeBase === parent) {
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return false;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Returns all files touched by non-merge commits on the branch (full history, ignoring baseCommit).
|
|
46
|
-
* Used to check whether the branch itself has any functional changes, independent of what master merged in.
|
|
47
|
-
*/
|
|
48
|
-
export const getBranchOnlyChangedFiles = (sourceBranch: string, targetBranch: string): string[] => {
|
|
49
|
-
const output = spawnCommandInGhWorkspace(
|
|
50
|
-
`git log --no-merges --name-only --pretty=format: ${targetBranch}..${sourceBranch}`,
|
|
51
|
-
);
|
|
52
|
-
return output.split('\n').filter(Boolean);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
20
|
const SHA_REGEX = /^[0-9a-f]{40}$/i;
|
|
56
21
|
|
|
57
22
|
/**
|
|
@@ -75,22 +40,17 @@ export const parseBaseCommit = (shaOrCommit: string | undefined): string | undef
|
|
|
75
40
|
return sha;
|
|
76
41
|
};
|
|
77
42
|
|
|
78
|
-
const fetchAllBranchCommits = (sourceBranch: string, targetBranch: string): Commit[] => {
|
|
79
|
-
const commitsStrings = spawnCommandInGhWorkspace(
|
|
80
|
-
`git log --pretty=format:'${GIT_LOG_FORMAT}' ${targetBranch}..${sourceBranch}`,
|
|
81
|
-
).split('\n');
|
|
82
|
-
const commits = commitsStrings.map((commitString) => parseCommit(commitString));
|
|
83
|
-
commits.reverse();
|
|
84
|
-
return commits;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
43
|
/**
|
|
88
44
|
* Gets the commits between sourceBranch and targetBranch (exclusive).
|
|
89
45
|
* - If baseCommit is provided, only returns commits after the baseCommit.
|
|
90
46
|
*/
|
|
91
47
|
export const getCommits = ({ sourceBranch, targetBranch, baseCommit }: Config): Commit[] => {
|
|
92
48
|
const baseCommitSha = parseBaseCommit(baseCommit);
|
|
93
|
-
const
|
|
49
|
+
const commitsStrings = spawnCommandInGhWorkspace(
|
|
50
|
+
`git log --pretty=format:'${GIT_LOG_FORMAT}' ${targetBranch}..${sourceBranch}`,
|
|
51
|
+
).split('\n');
|
|
52
|
+
const commits = commitsStrings.map((commitString) => parseCommit(commitString));
|
|
53
|
+
commits.reverse();
|
|
94
54
|
|
|
95
55
|
const baseCommitIndex = commits.findIndex((commit) => commit.sha === baseCommitSha);
|
|
96
56
|
|
package/bin/main.ts
CHANGED
|
@@ -8,11 +8,10 @@ import { hideBin } from 'yargs/helpers';
|
|
|
8
8
|
|
|
9
9
|
import { deleteOldBuilds, runBuilds } from './build.js';
|
|
10
10
|
import { getChangedActors } from './diff-changes.js';
|
|
11
|
-
import {
|
|
11
|
+
import { getChangedFiles, getCommits } from './git.js';
|
|
12
12
|
import { getPushData } from './github.js';
|
|
13
13
|
import { notifyToSlack } from './slack.js';
|
|
14
14
|
import { reportTestResults } from './test-report.js';
|
|
15
|
-
import type { Config } from './types.js';
|
|
16
15
|
import { getRepoActors, setCwd, spawnCommandInGhWorkspace } from './utils.js';
|
|
17
16
|
|
|
18
17
|
/**
|
|
@@ -35,38 +34,6 @@ const buildOptions = (y: Argv) => {
|
|
|
35
34
|
});
|
|
36
35
|
};
|
|
37
36
|
|
|
38
|
-
const resolveChangedActors = async (
|
|
39
|
-
{ targetBranch, sourceBranch, baseCommit }: Config,
|
|
40
|
-
{ isLatest }: { isLatest: boolean },
|
|
41
|
-
) => {
|
|
42
|
-
const actorConfigs = await getRepoActors();
|
|
43
|
-
|
|
44
|
-
// This is an optimization for the common case where a branch only has cosmetic changes but had to merge in
|
|
45
|
-
// functional changes from master (being up-to-date is a CI requirement). Master is already validated, and
|
|
46
|
-
// since the branch has no functional changes of its own, there is nothing new to validate.
|
|
47
|
-
// Exception: if the branch has any functional changes alongside the merge, we must re-test — even
|
|
48
|
-
// individually validated changes can have novel interactions when combined.
|
|
49
|
-
if (hasMergeFromTarget(sourceBranch, targetBranch)) {
|
|
50
|
-
const branchOnlyFiles = getBranchOnlyChangedFiles(sourceBranch, targetBranch);
|
|
51
|
-
// Omit baseCommit to get full branch history. Validated functional commits can still interact with merged ones
|
|
52
|
-
const allBranchCommits = getCommits({ sourceBranch, targetBranch, baseCommit: undefined });
|
|
53
|
-
const branchOnlyActorsChanged = getChangedActors({
|
|
54
|
-
filepathsChanged: branchOnlyFiles,
|
|
55
|
-
actorConfigs,
|
|
56
|
-
commits: allBranchCommits,
|
|
57
|
-
});
|
|
58
|
-
if (branchOnlyActorsChanged.length === 0) {
|
|
59
|
-
console.error('[MERGE-FROM-TARGET-OPTIMIZATION]: Branch itself has no functional changes, skipping builds');
|
|
60
|
-
return [];
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// If the optimization doesn't apply, we check all branch commits including merges for full coverage. We don't reuse the merge optimization results because here we can apply baseCommit and check merge commits (they might be functional or just cosmetic)
|
|
65
|
-
const commits = getCommits({ targetBranch, sourceBranch, baseCommit });
|
|
66
|
-
const changedFiles = getChangedFiles(commits);
|
|
67
|
-
return getChangedActors({ filepathsChanged: changedFiles, actorConfigs, isLatest, commits });
|
|
68
|
-
};
|
|
69
|
-
|
|
70
37
|
await yargs()
|
|
71
38
|
.scriptName('public-actors-utils')
|
|
72
39
|
.option('dry-run', {
|
|
@@ -101,11 +68,16 @@ await yargs()
|
|
|
101
68
|
console.log(JSON.stringify(actorConfigs));
|
|
102
69
|
},
|
|
103
70
|
)
|
|
104
|
-
.command('get-affected-actors', '', buildOptions, async (
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
71
|
+
.command('get-affected-actors', '', buildOptions, async (args) => {
|
|
72
|
+
const commits = getCommits(args);
|
|
73
|
+
const changedFiles = getChangedFiles(commits);
|
|
74
|
+
const actorConfigs = await getRepoActors();
|
|
75
|
+
const actorsChanged = getChangedActors({
|
|
76
|
+
filepathsChanged: changedFiles,
|
|
77
|
+
actorConfigs,
|
|
78
|
+
isLatest: false,
|
|
79
|
+
commits,
|
|
80
|
+
});
|
|
109
81
|
console.log(JSON.stringify(actorsChanged));
|
|
110
82
|
})
|
|
111
83
|
.command(
|
|
@@ -125,11 +97,15 @@ await yargs()
|
|
|
125
97
|
'build',
|
|
126
98
|
'',
|
|
127
99
|
(args) => buildOptions(args).option('dry-run', { type: 'boolean', default: false }),
|
|
128
|
-
async (
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
100
|
+
async (args) => {
|
|
101
|
+
const commits = getCommits(args);
|
|
102
|
+
const changedFiles = getChangedFiles(commits);
|
|
103
|
+
const actorConfigs = await getRepoActors();
|
|
104
|
+
const actorsChanged = getChangedActors({
|
|
105
|
+
filepathsChanged: changedFiles,
|
|
106
|
+
actorConfigs,
|
|
107
|
+
commits,
|
|
108
|
+
});
|
|
133
109
|
// https://github.com/apify-store/google-maps#:actors/lukaskrivka_google-maps-with-contact-details
|
|
134
110
|
// git@github.com:apify-store/google-maps#:actors/lukaskrivka_google-maps-with-contact-details
|
|
135
111
|
const repoUrl = spawnCommandInGhWorkspace(`git remote get-url origin`).replace(
|
|
@@ -140,8 +116,8 @@ await yargs()
|
|
|
140
116
|
const builds = await runBuilds({
|
|
141
117
|
repoUrl,
|
|
142
118
|
actorConfigs: actorsChanged,
|
|
143
|
-
branch: sourceBranch.replace('origin/', ''),
|
|
144
|
-
dryRun,
|
|
119
|
+
branch: args.sourceBranch.replace('origin/', ''),
|
|
120
|
+
dryRun: args.dryRun,
|
|
145
121
|
});
|
|
146
122
|
console.log(JSON.stringify(builds));
|
|
147
123
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-changes.d.ts","sourceRoot":"","sources":["../../bin/diff-changes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEtD,UAAU,yBAAyB;IAC/B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB,GAC9B,mBAAmB,MAAM,KAC1B;IAAE,aAAa,EAAE,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,aAAa,EAAE,KAAK,CAAA;CAOrE,CAAC;
|
|
1
|
+
{"version":3,"file":"diff-changes.d.ts","sourceRoot":"","sources":["../../bin/diff-changes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEtD,UAAU,yBAAyB;IAC/B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB,GAC9B,mBAAmB,MAAM,KAC1B;IAAE,aAAa,EAAE,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,aAAa,EAAE,KAAK,CAAA;CAOrE,CAAC;AA4EF,eAAO,MAAM,gBAAgB,GAAI,wDAK9B,yBAAyB,KAAG,WAAW,EAwDzC,CAAC"}
|
package/dist/bin/diff-changes.js
CHANGED
|
@@ -27,7 +27,9 @@ const isIgnoredTopLevelFile = (lowercaseFilePath) => {
|
|
|
27
27
|
const sanitizedLowercaseFilePath = lowercaseFilePath.replace(/^code\//, '').replace(/^shared\//, '');
|
|
28
28
|
return IGNORED_TOP_LEVEL_FILES.some((ignoredFile) => sanitizedLowercaseFilePath.startsWith(ignoredFile));
|
|
29
29
|
};
|
|
30
|
-
const classifyFileChange = (
|
|
30
|
+
const classifyFileChange = (originalFilePath, actorConfigs, commits) => {
|
|
31
|
+
// Lowercase for case-insensitive matching; keep original for git show (case-sensitive on Linux)
|
|
32
|
+
const lowercaseFilePath = originalFilePath.toLowerCase();
|
|
31
33
|
if (isIgnoredTopLevelFile(lowercaseFilePath)) {
|
|
32
34
|
return { impact: 'ignored' };
|
|
33
35
|
}
|
|
@@ -48,7 +50,8 @@ const classifyFileChange = (lowercaseFilePath, actorConfigs, commits) => {
|
|
|
48
50
|
if (lowercaseFilePath.endsWith('readme.md')) {
|
|
49
51
|
return { impact: 'cosmetic', includes: actorConfigChanged };
|
|
50
52
|
}
|
|
51
|
-
|
|
53
|
+
// originalFilePath must be used here (not lowercaseFilePath) — git show is case-sensitive on Linux
|
|
54
|
+
if (lowercaseFilePath.endsWith('.json') && isCosmeticOnlyJsonSchemaChange(commits, originalFilePath)) {
|
|
52
55
|
return { impact: 'cosmetic', includes: actorConfigChanged };
|
|
53
56
|
}
|
|
54
57
|
return { impact: 'functional', includes: actorConfigChanged };
|
|
@@ -60,9 +63,8 @@ export const getChangedActors = ({ filepathsChanged, actorConfigs, isLatest = fa
|
|
|
60
63
|
// folder -> ActorConfig
|
|
61
64
|
const actorsChangedMap = new Map();
|
|
62
65
|
const actorConfigsWithoutStandalone = actorConfigs.filter(({ isStandalone }) => !isStandalone);
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
const fileChange = classifyFileChange(lowercaseFilePath, actorConfigs, commits);
|
|
66
|
+
for (const originalFilePath of filepathsChanged) {
|
|
67
|
+
const fileChange = classifyFileChange(originalFilePath, actorConfigs, commits);
|
|
66
68
|
if (fileChange.impact === 'ignored') {
|
|
67
69
|
continue;
|
|
68
70
|
}
|
|
@@ -81,11 +83,11 @@ export const getChangedActors = ({ filepathsChanged, actorConfigs, isLatest = fa
|
|
|
81
83
|
}
|
|
82
84
|
const actorsChanged = Array.from(actorsChangedMap.values());
|
|
83
85
|
// All below here is just for logging
|
|
84
|
-
const ignoredFilesChanged =
|
|
86
|
+
const ignoredFilesChanged = filepathsChanged.filter((file) => classifyFileChange(file, actorConfigs, commits).impact === 'ignored');
|
|
85
87
|
console.error(`[DIFF]: Ignored files (don't trigger test or build): ${ignoredFilesChanged.join(', ')}`);
|
|
86
|
-
const cosmeticFilesChanged =
|
|
88
|
+
const cosmeticFilesChanged = filepathsChanged.filter((file) => classifyFileChange(file, actorConfigs, commits).impact === 'cosmetic');
|
|
87
89
|
console.error(`[DIFF]: Cosmetic files (should only trigger release build): ${cosmeticFilesChanged.join(', ')}`);
|
|
88
|
-
const functionalFilesChanged =
|
|
90
|
+
const functionalFilesChanged = filepathsChanged.filter((file) => classifyFileChange(file, actorConfigs, commits).impact === 'functional');
|
|
89
91
|
console.error(`[DIFF]: Functional files (trigger test & release build): ${functionalFilesChanged.join(', ')}`);
|
|
90
92
|
if (actorsChanged.length > 0) {
|
|
91
93
|
const miniactors = actorsChanged.filter((config) => !config.isStandalone).map((config) => config.actorName);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-changes.js","sourceRoot":"","sources":["../../bin/diff-changes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAC;AAUvE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACjC,iBAAyB,EAC4C,EAAE;IACvE,MAAM,KAAK,GAAG,iBAAiB,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC9E,IAAI,KAAK,EAAE,CAAC;QACR,gJAAgJ;QAChJ,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC,EAAE,CAAC;IACpF,CAAC;IACD,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;AACpC,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,qBAAqB,GAAG,CAAC,iBAAyB,EAAE,EAAE;IACxD,+HAA+H;IAC/H,MAAM,uBAAuB,GAAG;QAC5B,UAAU;QACV,YAAY;QACZ,WAAW;QACX,SAAS;QACT,WAAW;QACX,mBAAmB;QACnB,aAAa;QACb,eAAe;QACf,SAAS;KACZ,CAAC;IACF,+EAA+E;IAC/E,MAAM,0BAA0B,GAAG,iBAAiB,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAErG,OAAO,uBAAuB,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,0BAA0B,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;AAC7G,CAAC,CAAC;AAYF,MAAM,kBAAkB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"diff-changes.js","sourceRoot":"","sources":["../../bin/diff-changes.ts"],"names":[],"mappings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AE,CAAC,CAAC;IACtG,CAAC;SAAM,CAAC;QACJ,OAAO,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;IAClF,CAAC;IAED,OAAO,aAAa,CAAC;AACzB,CAAC,CAAC"}
|
package/dist/bin/git.d.ts
CHANGED
|
@@ -4,17 +4,6 @@ export declare const GIT_FORMAT_SEPARATOR = "\u00BB\u00A6\u00AB";
|
|
|
4
4
|
* Gets the list of changed files between the given commits (inclusive).
|
|
5
5
|
*/
|
|
6
6
|
export declare const getChangedFiles: (commits: Commit[]) => string[];
|
|
7
|
-
/**
|
|
8
|
-
* Returns true if the branch contains a merge commit whose parent is reachable from targetBranch
|
|
9
|
-
* (i.e. a genuine "merge from target" commit, not a merge of some unrelated branch).
|
|
10
|
-
* Uses the full targetBranch..sourceBranch range, ignoring baseCommit.
|
|
11
|
-
*/
|
|
12
|
-
export declare const hasMergeFromTarget: (sourceBranch: string, targetBranch: string) => boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Returns all files touched by non-merge commits on the branch (full history, ignoring baseCommit).
|
|
15
|
-
* Used to check whether the branch itself has any functional changes, independent of what master merged in.
|
|
16
|
-
*/
|
|
17
|
-
export declare const getBranchOnlyChangedFiles: (sourceBranch: string, targetBranch: string) => string[];
|
|
18
7
|
/**
|
|
19
8
|
*
|
|
20
9
|
* @param shaOrCommit Supports both a SHA string or a Commit object in JSON format. Can be empty.
|
package/dist/bin/git.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../bin/git.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGjD,eAAO,MAAM,oBAAoB,uBAAQ,CAAC;AAG1C;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,EAAE,aAQhD,CAAC;
|
|
1
|
+
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../bin/git.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGjD,eAAO,MAAM,oBAAoB,uBAAQ,CAAC;AAG1C;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,EAAE,aAQhD,CAAC;AAIF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,aAAa,MAAM,GAAG,SAAS,KAAG,MAAM,GAAG,SAc1E,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,4CAA4C,MAAM,KAAG,MAAM,EAyBrF,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,cAAc,MAAM,KAAG,MAYlD,CAAC"}
|
package/dist/bin/git.js
CHANGED
|
@@ -10,36 +10,6 @@ export const getChangedFiles = (commits) => {
|
|
|
10
10
|
console.error(`Changed files (up to 50): ${changedFiles.slice(0, 50).join(', ')}`);
|
|
11
11
|
return changedFiles;
|
|
12
12
|
};
|
|
13
|
-
/**
|
|
14
|
-
* Returns true if the branch contains a merge commit whose parent is reachable from targetBranch
|
|
15
|
-
* (i.e. a genuine "merge from target" commit, not a merge of some unrelated branch).
|
|
16
|
-
* Uses the full targetBranch..sourceBranch range, ignoring baseCommit.
|
|
17
|
-
*/
|
|
18
|
-
export const hasMergeFromTarget = (sourceBranch, targetBranch) => {
|
|
19
|
-
const mergeShas = spawnCommandInGhWorkspace(`git log --merges --pretty=format:%H ${targetBranch}..${sourceBranch}`)
|
|
20
|
-
.split('\n')
|
|
21
|
-
.filter(Boolean);
|
|
22
|
-
for (const sha of mergeShas) {
|
|
23
|
-
const parents = spawnCommandInGhWorkspace(`git log -1 --pretty=format:%P ${sha}`).trim().split(' ');
|
|
24
|
-
for (const parent of parents) {
|
|
25
|
-
// git merge-base A B outputs the common ancestor.
|
|
26
|
-
// If that equals A, then A is an ancestor of B (i.e. parent is reachable from targetBranch).
|
|
27
|
-
const mergeBase = spawnCommandInGhWorkspace(`git merge-base ${parent} ${targetBranch}`);
|
|
28
|
-
if (mergeBase === parent) {
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return false;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Returns all files touched by non-merge commits on the branch (full history, ignoring baseCommit).
|
|
37
|
-
* Used to check whether the branch itself has any functional changes, independent of what master merged in.
|
|
38
|
-
*/
|
|
39
|
-
export const getBranchOnlyChangedFiles = (sourceBranch, targetBranch) => {
|
|
40
|
-
const output = spawnCommandInGhWorkspace(`git log --no-merges --name-only --pretty=format: ${targetBranch}..${sourceBranch}`);
|
|
41
|
-
return output.split('\n').filter(Boolean);
|
|
42
|
-
};
|
|
43
13
|
const SHA_REGEX = /^[0-9a-f]{40}$/i;
|
|
44
14
|
/**
|
|
45
15
|
*
|
|
@@ -61,19 +31,15 @@ export const parseBaseCommit = (shaOrCommit) => {
|
|
|
61
31
|
}
|
|
62
32
|
return sha;
|
|
63
33
|
};
|
|
64
|
-
const fetchAllBranchCommits = (sourceBranch, targetBranch) => {
|
|
65
|
-
const commitsStrings = spawnCommandInGhWorkspace(`git log --pretty=format:'${GIT_LOG_FORMAT}' ${targetBranch}..${sourceBranch}`).split('\n');
|
|
66
|
-
const commits = commitsStrings.map((commitString) => parseCommit(commitString));
|
|
67
|
-
commits.reverse();
|
|
68
|
-
return commits;
|
|
69
|
-
};
|
|
70
34
|
/**
|
|
71
35
|
* Gets the commits between sourceBranch and targetBranch (exclusive).
|
|
72
36
|
* - If baseCommit is provided, only returns commits after the baseCommit.
|
|
73
37
|
*/
|
|
74
38
|
export const getCommits = ({ sourceBranch, targetBranch, baseCommit }) => {
|
|
75
39
|
const baseCommitSha = parseBaseCommit(baseCommit);
|
|
76
|
-
const
|
|
40
|
+
const commitsStrings = spawnCommandInGhWorkspace(`git log --pretty=format:'${GIT_LOG_FORMAT}' ${targetBranch}..${sourceBranch}`).split('\n');
|
|
41
|
+
const commits = commitsStrings.map((commitString) => parseCommit(commitString));
|
|
42
|
+
commits.reverse();
|
|
77
43
|
const baseCommitIndex = commits.findIndex((commit) => commit.sha === baseCommitSha);
|
|
78
44
|
const hasBaseCommit = baseCommitIndex !== -1;
|
|
79
45
|
if (hasBaseCommit) {
|
package/dist/bin/git.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../bin/git.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAEvD,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAC1C,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;AAElF;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,OAAiB,EAAE,EAAE;IACjD,MAAM,kBAAkB,GAAG,yBAAyB,CAChD,wBAAwB,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAChF,CAAC;IAEF,MAAM,YAAY,GAAG,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpD,OAAO,CAAC,KAAK,CAAC,6BAA6B,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACnF,OAAO,YAAY,CAAC;AACxB,CAAC,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../bin/git.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAEvD,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAC1C,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,E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AAC,MAAM,WAAW,GAAG,CAAC,YAAoB,EAAU,EAAE;IACxD,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACxD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,kCAAkC,YAAY,EAAE,CAAC,CAAC;IACtE,CAAC;IACD,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC;IAC5C,OAAO;QACH,GAAG;QACH,MAAM;QACN,IAAI;QACJ,OAAO;KACV,CAAC;AACN,CAAC,CAAC"}
|
package/dist/bin/main.js
CHANGED
|
@@ -5,7 +5,7 @@ import yargs from 'yargs';
|
|
|
5
5
|
import { hideBin } from 'yargs/helpers';
|
|
6
6
|
import { deleteOldBuilds, runBuilds } from './build.js';
|
|
7
7
|
import { getChangedActors } from './diff-changes.js';
|
|
8
|
-
import {
|
|
8
|
+
import { getChangedFiles, getCommits } from './git.js';
|
|
9
9
|
import { getPushData } from './github.js';
|
|
10
10
|
import { notifyToSlack } from './slack.js';
|
|
11
11
|
import { reportTestResults } from './test-report.js';
|
|
@@ -28,32 +28,6 @@ const buildOptions = (y) => {
|
|
|
28
28
|
type: 'string',
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
const resolveChangedActors = async ({ targetBranch, sourceBranch, baseCommit }, { isLatest }) => {
|
|
32
|
-
const actorConfigs = await getRepoActors();
|
|
33
|
-
// This is an optimization for the common case where a branch only has cosmetic changes but had to merge in
|
|
34
|
-
// functional changes from master (being up-to-date is a CI requirement). Master is already validated, and
|
|
35
|
-
// since the branch has no functional changes of its own, there is nothing new to validate.
|
|
36
|
-
// Exception: if the branch has any functional changes alongside the merge, we must re-test — even
|
|
37
|
-
// individually validated changes can have novel interactions when combined.
|
|
38
|
-
if (hasMergeFromTarget(sourceBranch, targetBranch)) {
|
|
39
|
-
const branchOnlyFiles = getBranchOnlyChangedFiles(sourceBranch, targetBranch);
|
|
40
|
-
// Omit baseCommit to get full branch history. Validated functional commits can still interact with merged ones
|
|
41
|
-
const allBranchCommits = getCommits({ sourceBranch, targetBranch, baseCommit: undefined });
|
|
42
|
-
const branchOnlyActorsChanged = getChangedActors({
|
|
43
|
-
filepathsChanged: branchOnlyFiles,
|
|
44
|
-
actorConfigs,
|
|
45
|
-
commits: allBranchCommits,
|
|
46
|
-
});
|
|
47
|
-
if (branchOnlyActorsChanged.length === 0) {
|
|
48
|
-
console.error('[MERGE-FROM-TARGET-OPTIMIZATION]: Branch itself has no functional changes, skipping builds');
|
|
49
|
-
return [];
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
// If the optimization doesn't apply, we check all branch commits including merges for full coverage. We don't reuse the merge optimization results because here we can apply baseCommit and check merge commits (they might be functional or just cosmetic)
|
|
53
|
-
const commits = getCommits({ targetBranch, sourceBranch, baseCommit });
|
|
54
|
-
const changedFiles = getChangedFiles(commits);
|
|
55
|
-
return getChangedActors({ filepathsChanged: changedFiles, actorConfigs, isLatest, commits });
|
|
56
|
-
};
|
|
57
31
|
await yargs()
|
|
58
32
|
.scriptName('public-actors-utils')
|
|
59
33
|
.option('dry-run', {
|
|
@@ -83,8 +57,16 @@ await yargs()
|
|
|
83
57
|
const actorConfigs = await getRepoActors();
|
|
84
58
|
console.log(JSON.stringify(actorConfigs));
|
|
85
59
|
})
|
|
86
|
-
.command('get-affected-actors', '', buildOptions, async (
|
|
87
|
-
const
|
|
60
|
+
.command('get-affected-actors', '', buildOptions, async (args) => {
|
|
61
|
+
const commits = getCommits(args);
|
|
62
|
+
const changedFiles = getChangedFiles(commits);
|
|
63
|
+
const actorConfigs = await getRepoActors();
|
|
64
|
+
const actorsChanged = getChangedActors({
|
|
65
|
+
filepathsChanged: changedFiles,
|
|
66
|
+
actorConfigs,
|
|
67
|
+
isLatest: false,
|
|
68
|
+
commits,
|
|
69
|
+
});
|
|
88
70
|
console.log(JSON.stringify(actorsChanged));
|
|
89
71
|
})
|
|
90
72
|
.command('report-tests', '', (args) => args
|
|
@@ -94,16 +76,23 @@ await yargs()
|
|
|
94
76
|
.option('workflow-name', { type: 'string' }), async (args) => {
|
|
95
77
|
await reportTestResults(args);
|
|
96
78
|
})
|
|
97
|
-
.command('build', '', (args) => buildOptions(args).option('dry-run', { type: 'boolean', default: false }), async (
|
|
98
|
-
const
|
|
79
|
+
.command('build', '', (args) => buildOptions(args).option('dry-run', { type: 'boolean', default: false }), async (args) => {
|
|
80
|
+
const commits = getCommits(args);
|
|
81
|
+
const changedFiles = getChangedFiles(commits);
|
|
82
|
+
const actorConfigs = await getRepoActors();
|
|
83
|
+
const actorsChanged = getChangedActors({
|
|
84
|
+
filepathsChanged: changedFiles,
|
|
85
|
+
actorConfigs,
|
|
86
|
+
commits,
|
|
87
|
+
});
|
|
99
88
|
// https://github.com/apify-store/google-maps#:actors/lukaskrivka_google-maps-with-contact-details
|
|
100
89
|
// git@github.com:apify-store/google-maps#:actors/lukaskrivka_google-maps-with-contact-details
|
|
101
90
|
const repoUrl = spawnCommandInGhWorkspace(`git remote get-url origin`).replace(/^https:\/\/github\.com\//, 'git@github.com:');
|
|
102
91
|
const builds = await runBuilds({
|
|
103
92
|
repoUrl,
|
|
104
93
|
actorConfigs: actorsChanged,
|
|
105
|
-
branch: sourceBranch.replace('origin/', ''),
|
|
106
|
-
dryRun,
|
|
94
|
+
branch: args.sourceBranch.replace('origin/', ''),
|
|
95
|
+
dryRun: args.dryRun,
|
|
107
96
|
});
|
|
108
97
|
console.log(JSON.stringify(builds));
|
|
109
98
|
})
|
package/dist/bin/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../bin/main.ts"],"names":[],"mappings":";AAEA,OAAO,OAAO,MAAM,cAAc,CAAC;AAEnC,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,gFAAgF;AAChF,OAAO,EAAE,OAAO,EAAE,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AAC,aAAa,CACrB,CAAC;IACF,MAAM,QAAQ,GAAG,IAAI,CAAC;IACtB,MAAM,YAAY,GAAG,MAAM,aAAa,EAAE,CAAC;IAC3C,MAAM,aAAa,GAAG,gBAAgB,CAAC;QACnC,gBAAgB,EAAE,YAAY;QAC9B,YAAY;QACZ,QAAQ;QACR,OAAO;KACV,CAAC,CAAC;IACH,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAC;IACjE,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC;QAC3B,QAAQ;QACR,OAAO;QACP,YAAY,EAAE,aAAa;QAC3B,MAAM;QACN,MAAM;KACT,CAAC,CAAC;IACH,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IAEtC,MAAM,aAAa,CAAC;QAChB,YAAY;QACZ,OAAO;QACP,SAAS;QACT,UAAU;QACV,MAAM;QACN,MAAM;QACN,kBAAkB;QAClB,mBAAmB;KACtB,CAAC,CAAC;AACP,CAAC,CACJ;KACA,OAAO,CACJ,mBAAmB,EACnB,EAAE,EACF,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EACR,KAAK,IAAI,EAAE;IACP,MAAM,YAAY,GAAG,MAAM,aAAa,EAAE,CAAC;IAC3C,MAAM,eAAe,CAAC,YAAY,CAAC,CAAC;AACxC,CAAC,CACJ;KACA,cAAc,EAAE;KAChB,aAAa,CAAC,CAAC,EAAE,qBAAqB,CAAC;KACvC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC"}
|
package/dist/lib/lib.d.ts
CHANGED
|
@@ -23,10 +23,13 @@ export declare const it: <T>(actorName: string, testName: string, fn: TestFuncti
|
|
|
23
23
|
run: ReturnType<typeof createStartRunFn<T>>;
|
|
24
24
|
}>, testOptions?: ActorTestOptions) => void;
|
|
25
25
|
/**
|
|
26
|
-
* Creates a function
|
|
26
|
+
* Creates a function that accepts input for a standby actor and sends a request containing the input
|
|
27
27
|
* to the task's standby url.
|
|
28
28
|
*/
|
|
29
|
-
declare const createStartStandbyFn: <I, O>(standbyTask: StandbyTask) => ({ input }: Pick<RunOptions<I>, "input">
|
|
29
|
+
declare const createStartStandbyFn: <I, O>(standbyTask: StandbyTask, { annotate }: TestContext, testName: string) => ({ input, path, headers, }: Pick<RunOptions<I>, "input"> & {
|
|
30
|
+
path?: string;
|
|
31
|
+
headers?: Record<string, string>;
|
|
32
|
+
}) => Promise<{
|
|
30
33
|
data: O;
|
|
31
34
|
status: number;
|
|
32
35
|
headers: Headers;
|
package/dist/lib/lib.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../lib/lib.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtE,OAAO,EAA8B,YAAY,EAAsB,MAAM,QAAQ,CAAC;AAGtF,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAc,gBAAgB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAuB3E,OAAO,EAAE,YAAY,EAAE,CAAC;AAYxB,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,EAAE,KAAK,YAAY,CAAC,MAAM,CAAC,EAAE,UAAS,gBAAuC,SAEjH,CAAC;AAMF,eAAO,MAAM,SAAS,GAAI,CAAC,EACvB,WAAW,MAAM,EACjB,UAAU,MAAM,EAChB,IAAI,YAAY,CAAC;IAAE,GAAG,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC,EACjE,cAAc,gBAAgB,SAgBjC,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,gBAAgB,GAAI,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAC7C,WAA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