apify-test-tools 0.9.1-beta.12 → 0.9.1-beta.13
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/bin/main.ts +93 -83
- package/dist/bin/main.d.ts +1 -20
- package/dist/bin/main.d.ts.map +1 -1
- package/dist/bin/main.js +41 -58
- package/dist/bin/main.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/bin/main.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import process from 'node:process';
|
|
4
4
|
|
|
5
|
-
import yargs, { type
|
|
5
|
+
import yargs, { type Options } from 'yargs';
|
|
6
6
|
// eslint-disable-next-line import/extensions --- With .js, it cannot find types
|
|
7
7
|
import { hideBin } from 'yargs/helpers';
|
|
8
8
|
|
|
@@ -31,54 +31,48 @@ import { readConfigFile } from './utils/config/load-config.js';
|
|
|
31
31
|
*/
|
|
32
32
|
const middlewares = [setCwd];
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
})
|
|
48
|
-
.option('base-commit', {
|
|
49
|
-
type: 'string',
|
|
50
|
-
demandOption: false,
|
|
51
|
-
});
|
|
52
|
-
};
|
|
34
|
+
/*
|
|
35
|
+
* Option groups shared across commands. Each is a plain object passed to `.options()`, so a command's
|
|
36
|
+
* builder composes them by chaining (`y.options(gitRangeOptions).options(actorSelectionOptions)`)
|
|
37
|
+
* instead of nesting wrapper functions. `as const` keeps literals like `demandOption: true` so yargs
|
|
38
|
+
* can infer non-optional types; `satisfies` validates the shape without widening it.
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
/** Commit range to inspect: everything on `source-branch` since it diverged from `target-branch`. */
|
|
42
|
+
const gitRangeOptions = {
|
|
43
|
+
'target-branch': { type: 'string', demandOption: true },
|
|
44
|
+
'source-branch': { type: 'string', demandOption: true },
|
|
45
|
+
'base-commit': { type: 'string', demandOption: false },
|
|
46
|
+
} as const satisfies Record<string, Options>;
|
|
53
47
|
|
|
54
48
|
/**
|
|
55
49
|
* Where to build the Actors from. Defaults to the `origin` remote, which is then checked against each
|
|
56
50
|
* Actor's default version. Passing it explicitly skips that check (see assertRepoUrlMatchesDefaultVersion).
|
|
57
51
|
*/
|
|
58
|
-
const repoUrlOptions =
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
});
|
|
62
|
-
};
|
|
52
|
+
const repoUrlOptions = {
|
|
53
|
+
'repo-url': { type: 'string' },
|
|
54
|
+
} as const satisfies Record<string, Options>;
|
|
63
55
|
|
|
64
56
|
/**
|
|
65
57
|
* Actor-selection flags, applied to every command that reads the actor config so a caller can
|
|
66
58
|
* narrow the set it operates on (e.g. two-stage releases: `--ignore X`, then `--actors X`).
|
|
67
|
-
* Kept separate from `
|
|
59
|
+
* Kept separate from `gitRangeOptions` so the read-only git commands don't advertise flags they ignore.
|
|
68
60
|
*/
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
61
|
+
const actorSelectionOptions = {
|
|
62
|
+
actors: { type: 'string', array: true, default: [] as string[] },
|
|
63
|
+
ignore: { type: 'string', array: true, default: [] as string[] },
|
|
64
|
+
} as const satisfies Record<string, Options>;
|
|
65
|
+
|
|
66
|
+
/** Flags for commands that trigger Apify builds. */
|
|
67
|
+
const buildOptions = {
|
|
68
|
+
'use-docker-cache': { type: 'boolean', default: false },
|
|
69
|
+
} as const satisfies Record<string, Options>;
|
|
70
|
+
|
|
71
|
+
/** Global flags, available to every command. */
|
|
72
|
+
const globalOptions = {
|
|
73
|
+
'dry-run': { type: 'boolean', default: false },
|
|
74
|
+
workspace: { type: 'string' },
|
|
75
|
+
} as const satisfies Record<string, Options>;
|
|
82
76
|
|
|
83
77
|
const resolveChangedActors = async (config: Config, { isLatest }: { isLatest: boolean }) => {
|
|
84
78
|
const actorConfigs = await readConfigFile(config);
|
|
@@ -117,37 +111,51 @@ const resolveChangedActors = async (config: Config, { isLatest }: { isLatest: bo
|
|
|
117
111
|
|
|
118
112
|
await yargs()
|
|
119
113
|
.scriptName('public-actors-utils')
|
|
120
|
-
.
|
|
121
|
-
type: 'boolean',
|
|
122
|
-
default: false,
|
|
123
|
-
})
|
|
124
|
-
.option('workspace', {
|
|
125
|
-
type: 'string',
|
|
126
|
-
})
|
|
114
|
+
.options(globalOptions)
|
|
127
115
|
.middleware(middlewares)
|
|
128
|
-
.command(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
116
|
+
.command(
|
|
117
|
+
'get-commits',
|
|
118
|
+
'',
|
|
119
|
+
(y) => y.options(gitRangeOptions),
|
|
120
|
+
(args) => {
|
|
121
|
+
const commits = getCommits(args);
|
|
122
|
+
console.log(JSON.stringify(commits));
|
|
123
|
+
},
|
|
124
|
+
)
|
|
125
|
+
.command(
|
|
126
|
+
'get-latest-commit',
|
|
127
|
+
'',
|
|
128
|
+
(y) => y.options(gitRangeOptions),
|
|
129
|
+
(args) => {
|
|
130
|
+
const commits = getCommits(args);
|
|
131
|
+
if (commits.length > 0) {
|
|
132
|
+
console.log(JSON.stringify(commits[commits.length - 1]));
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
)
|
|
136
|
+
.command(
|
|
137
|
+
'get-changed-files',
|
|
138
|
+
'',
|
|
139
|
+
(y) => y.options(gitRangeOptions),
|
|
140
|
+
(args) => {
|
|
141
|
+
const commits = getCommits(args);
|
|
142
|
+
const changedFiles = getChangedFiles(commits);
|
|
143
|
+
console.log(JSON.stringify(changedFiles));
|
|
144
|
+
},
|
|
145
|
+
)
|
|
146
|
+
.command(
|
|
147
|
+
'get-actor-configs',
|
|
148
|
+
'',
|
|
149
|
+
(y) => y.options(actorSelectionOptions),
|
|
150
|
+
async ({ actors, ignore }) => {
|
|
151
|
+
const actorConfigs = await readConfigFile({ actors, ignore });
|
|
152
|
+
console.log(JSON.stringify(actorConfigs));
|
|
153
|
+
},
|
|
154
|
+
)
|
|
147
155
|
.command(
|
|
148
156
|
'get-affected-actors',
|
|
149
157
|
'',
|
|
150
|
-
(
|
|
158
|
+
(y) => y.options(gitRangeOptions).options(actorSelectionOptions),
|
|
151
159
|
async (config) => {
|
|
152
160
|
const actorsChanged = await resolveChangedActors(config, { isLatest: false });
|
|
153
161
|
console.log(JSON.stringify(actorsChanged));
|
|
@@ -156,8 +164,8 @@ await yargs()
|
|
|
156
164
|
.command(
|
|
157
165
|
'report-tests',
|
|
158
166
|
'',
|
|
159
|
-
(
|
|
160
|
-
|
|
167
|
+
(y) =>
|
|
168
|
+
y
|
|
161
169
|
.option('report-file', { type: 'string', demandOption: true })
|
|
162
170
|
.option('report-slack-channel', { type: 'string' })
|
|
163
171
|
.option('job-url', { type: 'string' })
|
|
@@ -169,11 +177,7 @@ await yargs()
|
|
|
169
177
|
.command(
|
|
170
178
|
'build',
|
|
171
179
|
'',
|
|
172
|
-
(
|
|
173
|
-
repoUrlOptions(actorSelectionOptions(buildOptions(args))).option('dry-run', {
|
|
174
|
-
type: 'boolean',
|
|
175
|
-
default: false,
|
|
176
|
-
}),
|
|
180
|
+
(y) => y.options(gitRangeOptions).options(actorSelectionOptions).options(buildOptions).options(repoUrlOptions),
|
|
177
181
|
async (config) => {
|
|
178
182
|
const actorsChanged = await resolveChangedActors(config, { isLatest: false });
|
|
179
183
|
const builds = await runBuilds({
|
|
@@ -189,15 +193,16 @@ await yargs()
|
|
|
189
193
|
.command(
|
|
190
194
|
'release',
|
|
191
195
|
'',
|
|
192
|
-
(
|
|
193
|
-
|
|
196
|
+
(y) =>
|
|
197
|
+
y
|
|
198
|
+
.options(actorSelectionOptions)
|
|
199
|
+
.options(buildOptions)
|
|
200
|
+
.options(repoUrlOptions)
|
|
194
201
|
// The last commit that is already released, everything after it up to HEAD gets released.
|
|
195
202
|
// Required, see the README section "Releasing Actors" for how to set it for each merge strategy.
|
|
196
203
|
.option('base-commit', { type: 'string', demandOption: true })
|
|
197
|
-
.option('dry-run', { type: 'boolean', default: false })
|
|
198
204
|
.option('report-slack-channel', { type: 'string' })
|
|
199
|
-
.option('release-slack-channel', { type: 'string' })
|
|
200
|
-
.option('use-docker-cache', { type: 'boolean', default: false }),
|
|
205
|
+
.option('release-slack-channel', { type: 'string' }),
|
|
201
206
|
async (args) => {
|
|
202
207
|
const baseSha = resolveReleaseBaseCommit(args.baseCommit);
|
|
203
208
|
const branch = getCurrentBranch();
|
|
@@ -245,17 +250,22 @@ await yargs()
|
|
|
245
250
|
.command(
|
|
246
251
|
'build-from-local',
|
|
247
252
|
'',
|
|
248
|
-
(
|
|
253
|
+
(y) => y.options(actorSelectionOptions),
|
|
249
254
|
async ({ actors, ignore, dryRun }) => {
|
|
250
255
|
const actorConfigs = await readConfigFile({ actors, ignore });
|
|
251
256
|
const builds = await runBuildsFromLocal({ actorConfigs, dryRun });
|
|
252
257
|
console.log(JSON.stringify(builds));
|
|
253
258
|
},
|
|
254
259
|
)
|
|
255
|
-
.command(
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
260
|
+
.command(
|
|
261
|
+
'delete-old-builds',
|
|
262
|
+
'',
|
|
263
|
+
(y) => y.options(actorSelectionOptions),
|
|
264
|
+
async ({ actors, ignore }) => {
|
|
265
|
+
const actorConfigs = await readConfigFile({ actors, ignore });
|
|
266
|
+
await deleteOldBuilds(actorConfigs);
|
|
267
|
+
},
|
|
268
|
+
)
|
|
259
269
|
.strictCommands()
|
|
260
270
|
.demandCommand(1, 'Command is required')
|
|
261
271
|
.fail((msg, err, yargsInstance) => {
|
package/dist/bin/main.d.ts
CHANGED
|
@@ -1,22 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
export declare const buildOptions: <T>(y: Argv<T>) => Argv<T & {
|
|
4
|
-
"target-branch": string;
|
|
5
|
-
} & {
|
|
6
|
-
"source-branch": string;
|
|
7
|
-
} & {
|
|
8
|
-
"use-docker-cache": boolean;
|
|
9
|
-
} & {
|
|
10
|
-
"base-commit": string | undefined;
|
|
11
|
-
}>;
|
|
12
|
-
/**
|
|
13
|
-
* Actor-selection flags, applied to every command that reads the actor config so a caller can
|
|
14
|
-
* narrow the set it operates on (e.g. two-stage releases: `--ignore X`, then `--actors X`).
|
|
15
|
-
* Kept separate from `buildOptions` so the read-only git commands don't advertise flags they ignore.
|
|
16
|
-
*/
|
|
17
|
-
export declare const actorSelectionOptions: <T>(y: Argv<T>) => Argv<T & {
|
|
18
|
-
actors: string[];
|
|
19
|
-
} & {
|
|
20
|
-
ignore: string[];
|
|
21
|
-
}>;
|
|
2
|
+
export {};
|
|
22
3
|
//# sourceMappingURL=main.d.ts.map
|
package/dist/bin/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../bin/main.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../bin/main.ts"],"names":[],"mappings":""}
|
package/dist/bin/main.js
CHANGED
|
@@ -15,51 +15,42 @@ import { readConfigFile } from './utils/config/load-config.js';
|
|
|
15
15
|
* Middlewares to be run before every command execution
|
|
16
16
|
*/
|
|
17
17
|
const middlewares = [setCwd];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
type: 'boolean',
|
|
30
|
-
default: false,
|
|
31
|
-
})
|
|
32
|
-
.option('base-commit', {
|
|
33
|
-
type: 'string',
|
|
34
|
-
demandOption: false,
|
|
35
|
-
});
|
|
18
|
+
/*
|
|
19
|
+
* Option groups shared across commands. Each is a plain object passed to `.options()`, so a command's
|
|
20
|
+
* builder composes them by chaining (`y.options(gitRangeOptions).options(actorSelectionOptions)`)
|
|
21
|
+
* instead of nesting wrapper functions. `as const` keeps literals like `demandOption: true` so yargs
|
|
22
|
+
* can infer non-optional types; `satisfies` validates the shape without widening it.
|
|
23
|
+
*/
|
|
24
|
+
/** Commit range to inspect: everything on `source-branch` since it diverged from `target-branch`. */
|
|
25
|
+
const gitRangeOptions = {
|
|
26
|
+
'target-branch': { type: 'string', demandOption: true },
|
|
27
|
+
'source-branch': { type: 'string', demandOption: true },
|
|
28
|
+
'base-commit': { type: 'string', demandOption: false },
|
|
36
29
|
};
|
|
37
30
|
/**
|
|
38
31
|
* Where to build the Actors from. Defaults to the `origin` remote, which is then checked against each
|
|
39
32
|
* Actor's default version. Passing it explicitly skips that check (see assertRepoUrlMatchesDefaultVersion).
|
|
40
33
|
*/
|
|
41
|
-
const repoUrlOptions =
|
|
42
|
-
|
|
43
|
-
type: 'string',
|
|
44
|
-
});
|
|
34
|
+
const repoUrlOptions = {
|
|
35
|
+
'repo-url': { type: 'string' },
|
|
45
36
|
};
|
|
46
37
|
/**
|
|
47
38
|
* Actor-selection flags, applied to every command that reads the actor config so a caller can
|
|
48
39
|
* narrow the set it operates on (e.g. two-stage releases: `--ignore X`, then `--actors X`).
|
|
49
|
-
* Kept separate from `
|
|
40
|
+
* Kept separate from `gitRangeOptions` so the read-only git commands don't advertise flags they ignore.
|
|
50
41
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
42
|
+
const actorSelectionOptions = {
|
|
43
|
+
actors: { type: 'string', array: true, default: [] },
|
|
44
|
+
ignore: { type: 'string', array: true, default: [] },
|
|
45
|
+
};
|
|
46
|
+
/** Flags for commands that trigger Apify builds. */
|
|
47
|
+
const buildOptions = {
|
|
48
|
+
'use-docker-cache': { type: 'boolean', default: false },
|
|
49
|
+
};
|
|
50
|
+
/** Global flags, available to every command. */
|
|
51
|
+
const globalOptions = {
|
|
52
|
+
'dry-run': { type: 'boolean', default: false },
|
|
53
|
+
workspace: { type: 'string' },
|
|
63
54
|
};
|
|
64
55
|
const resolveChangedActors = async (config, { isLatest }) => {
|
|
65
56
|
const actorConfigs = await readConfigFile(config);
|
|
@@ -91,48 +82,39 @@ const resolveChangedActors = async (config, { isLatest }) => {
|
|
|
91
82
|
};
|
|
92
83
|
await yargs()
|
|
93
84
|
.scriptName('public-actors-utils')
|
|
94
|
-
.
|
|
95
|
-
type: 'boolean',
|
|
96
|
-
default: false,
|
|
97
|
-
})
|
|
98
|
-
.option('workspace', {
|
|
99
|
-
type: 'string',
|
|
100
|
-
})
|
|
85
|
+
.options(globalOptions)
|
|
101
86
|
.middleware(middlewares)
|
|
102
|
-
.command('get-commits', '',
|
|
87
|
+
.command('get-commits', '', (y) => y.options(gitRangeOptions), (args) => {
|
|
103
88
|
const commits = getCommits(args);
|
|
104
89
|
console.log(JSON.stringify(commits));
|
|
105
90
|
})
|
|
106
|
-
.command('get-latest-commit', '',
|
|
91
|
+
.command('get-latest-commit', '', (y) => y.options(gitRangeOptions), (args) => {
|
|
107
92
|
const commits = getCommits(args);
|
|
108
93
|
if (commits.length > 0) {
|
|
109
94
|
console.log(JSON.stringify(commits[commits.length - 1]));
|
|
110
95
|
}
|
|
111
96
|
})
|
|
112
|
-
.command('get-changed-files', '',
|
|
97
|
+
.command('get-changed-files', '', (y) => y.options(gitRangeOptions), (args) => {
|
|
113
98
|
const commits = getCommits(args);
|
|
114
99
|
const changedFiles = getChangedFiles(commits);
|
|
115
100
|
console.log(JSON.stringify(changedFiles));
|
|
116
101
|
})
|
|
117
|
-
.command('get-actor-configs', '', actorSelectionOptions, async ({ actors, ignore }) => {
|
|
102
|
+
.command('get-actor-configs', '', (y) => y.options(actorSelectionOptions), async ({ actors, ignore }) => {
|
|
118
103
|
const actorConfigs = await readConfigFile({ actors, ignore });
|
|
119
104
|
console.log(JSON.stringify(actorConfigs));
|
|
120
105
|
})
|
|
121
|
-
.command('get-affected-actors', '', (
|
|
106
|
+
.command('get-affected-actors', '', (y) => y.options(gitRangeOptions).options(actorSelectionOptions), async (config) => {
|
|
122
107
|
const actorsChanged = await resolveChangedActors(config, { isLatest: false });
|
|
123
108
|
console.log(JSON.stringify(actorsChanged));
|
|
124
109
|
})
|
|
125
|
-
.command('report-tests', '', (
|
|
110
|
+
.command('report-tests', '', (y) => y
|
|
126
111
|
.option('report-file', { type: 'string', demandOption: true })
|
|
127
112
|
.option('report-slack-channel', { type: 'string' })
|
|
128
113
|
.option('job-url', { type: 'string' })
|
|
129
114
|
.option('workflow-name', { type: 'string' }), async (args) => {
|
|
130
115
|
await reportTestResults(args);
|
|
131
116
|
})
|
|
132
|
-
.command('build', '', (
|
|
133
|
-
type: 'boolean',
|
|
134
|
-
default: false,
|
|
135
|
-
}), async (config) => {
|
|
117
|
+
.command('build', '', (y) => y.options(gitRangeOptions).options(actorSelectionOptions).options(buildOptions).options(repoUrlOptions), async (config) => {
|
|
136
118
|
const actorsChanged = await resolveChangedActors(config, { isLatest: false });
|
|
137
119
|
const builds = await runBuilds({
|
|
138
120
|
...resolveRepoUrl(config.repoUrl),
|
|
@@ -143,14 +125,15 @@ await yargs()
|
|
|
143
125
|
});
|
|
144
126
|
console.log(JSON.stringify(builds));
|
|
145
127
|
})
|
|
146
|
-
.command('release', '', (
|
|
128
|
+
.command('release', '', (y) => y
|
|
129
|
+
.options(actorSelectionOptions)
|
|
130
|
+
.options(buildOptions)
|
|
131
|
+
.options(repoUrlOptions)
|
|
147
132
|
// The last commit that is already released, everything after it up to HEAD gets released.
|
|
148
133
|
// Required, see the README section "Releasing Actors" for how to set it for each merge strategy.
|
|
149
134
|
.option('base-commit', { type: 'string', demandOption: true })
|
|
150
|
-
.option('dry-run', { type: 'boolean', default: false })
|
|
151
135
|
.option('report-slack-channel', { type: 'string' })
|
|
152
|
-
.option('release-slack-channel', { type: 'string' })
|
|
153
|
-
.option('use-docker-cache', { type: 'boolean', default: false }), async (args) => {
|
|
136
|
+
.option('release-slack-channel', { type: 'string' }), async (args) => {
|
|
154
137
|
const baseSha = resolveReleaseBaseCommit(args.baseCommit);
|
|
155
138
|
const branch = getCurrentBranch();
|
|
156
139
|
const changes = getReleaseChanges(baseSha);
|
|
@@ -191,12 +174,12 @@ await yargs()
|
|
|
191
174
|
releaseSlackChannel,
|
|
192
175
|
});
|
|
193
176
|
})
|
|
194
|
-
.command('build-from-local', '', (
|
|
177
|
+
.command('build-from-local', '', (y) => y.options(actorSelectionOptions), async ({ actors, ignore, dryRun }) => {
|
|
195
178
|
const actorConfigs = await readConfigFile({ actors, ignore });
|
|
196
179
|
const builds = await runBuildsFromLocal({ actorConfigs, dryRun });
|
|
197
180
|
console.log(JSON.stringify(builds));
|
|
198
181
|
})
|
|
199
|
-
.command('delete-old-builds', '', actorSelectionOptions, async ({ actors, ignore }) => {
|
|
182
|
+
.command('delete-old-builds', '', (y) => y.options(actorSelectionOptions), async ({ actors, ignore }) => {
|
|
200
183
|
const actorConfigs = await readConfigFile({ actors, ignore });
|
|
201
184
|
await deleteOldBuilds(actorConfigs);
|
|
202
185
|
})
|
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,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRo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