cdk-github-microvm-runners 0.1.4__tar.gz → 0.1.6__tar.gz
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.
- {cdk_github_microvm_runners-0.1.4/src/cdk_github_microvm_runners.egg-info → cdk_github_microvm_runners-0.1.6}/PKG-INFO +1 -1
- {cdk_github_microvm_runners-0.1.4 → cdk_github_microvm_runners-0.1.6}/setup.py +2 -2
- {cdk_github_microvm_runners-0.1.4 → cdk_github_microvm_runners-0.1.6}/src/cdk_github_microvm_runners/__init__.py +30 -14
- {cdk_github_microvm_runners-0.1.4 → cdk_github_microvm_runners-0.1.6}/src/cdk_github_microvm_runners/_jsii/__init__.py +2 -2
- {cdk_github_microvm_runners-0.1.4 → cdk_github_microvm_runners-0.1.6}/src/cdk_github_microvm_runners/_jsii/bin/cdk-github-microvm-runners +2 -2
- cdk_github_microvm_runners-0.1.6/src/cdk_github_microvm_runners/_jsii/cdk-github-microvm-runners@0.1.6.jsii.tgz +0 -0
- {cdk_github_microvm_runners-0.1.4 → cdk_github_microvm_runners-0.1.6/src/cdk_github_microvm_runners.egg-info}/PKG-INFO +1 -1
- {cdk_github_microvm_runners-0.1.4 → cdk_github_microvm_runners-0.1.6}/src/cdk_github_microvm_runners.egg-info/SOURCES.txt +1 -1
- cdk_github_microvm_runners-0.1.4/src/cdk_github_microvm_runners/_jsii/cdk-github-microvm-runners@0.1.4.jsii.tgz +0 -0
- {cdk_github_microvm_runners-0.1.4 → cdk_github_microvm_runners-0.1.6}/LICENSE +0 -0
- {cdk_github_microvm_runners-0.1.4 → cdk_github_microvm_runners-0.1.6}/MANIFEST.in +0 -0
- {cdk_github_microvm_runners-0.1.4 → cdk_github_microvm_runners-0.1.6}/README.md +0 -0
- {cdk_github_microvm_runners-0.1.4 → cdk_github_microvm_runners-0.1.6}/pyproject.toml +0 -0
- {cdk_github_microvm_runners-0.1.4 → cdk_github_microvm_runners-0.1.6}/setup.cfg +0 -0
- {cdk_github_microvm_runners-0.1.4 → cdk_github_microvm_runners-0.1.6}/src/cdk_github_microvm_runners/py.typed +0 -0
- {cdk_github_microvm_runners-0.1.4 → cdk_github_microvm_runners-0.1.6}/src/cdk_github_microvm_runners.egg-info/dependency_links.txt +0 -0
- {cdk_github_microvm_runners-0.1.4 → cdk_github_microvm_runners-0.1.6}/src/cdk_github_microvm_runners.egg-info/requires.txt +0 -0
- {cdk_github_microvm_runners-0.1.4 → cdk_github_microvm_runners-0.1.6}/src/cdk_github_microvm_runners.egg-info/top_level.txt +0 -0
|
@@ -5,7 +5,7 @@ kwargs = json.loads(
|
|
|
5
5
|
"""
|
|
6
6
|
{
|
|
7
7
|
"name": "cdk-github-microvm-runners",
|
|
8
|
-
"version": "0.1.
|
|
8
|
+
"version": "0.1.6",
|
|
9
9
|
"description": "CDK construct for running GitHub Actions jobs on AWS Lambda MicroVMs, with one ephemeral runner per job.",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"url": "https://runnerset.dev",
|
|
@@ -26,7 +26,7 @@ kwargs = json.loads(
|
|
|
26
26
|
],
|
|
27
27
|
"package_data": {
|
|
28
28
|
"cdk_github_microvm_runners._jsii": [
|
|
29
|
-
"cdk-github-microvm-runners@0.1.
|
|
29
|
+
"cdk-github-microvm-runners@0.1.6.jsii.tgz"
|
|
30
30
|
],
|
|
31
31
|
"cdk_github_microvm_runners": [
|
|
32
32
|
"py.typed"
|
|
@@ -1403,8 +1403,17 @@ class GithubMicrovmRunnersMetrics(
|
|
|
1403
1403
|
|
|
1404
1404
|
A value that stays above zero means the runner set is
|
|
1405
1405
|
failing to reconcile — VMs left running, runners left unreaped — even
|
|
1406
|
-
though each sweep completes. It fires on one error
|
|
1407
|
-
|
|
1406
|
+
though each sweep completes. It fires on one error in each of three
|
|
1407
|
+
consecutive 5-minute periods; pass ``RunnerAlarmOptions`` to change that.
|
|
1408
|
+
|
|
1409
|
+
The three periods are the point. A single sweep error is usually a
|
|
1410
|
+
transient fault the next sweep sails past — a GitHub API call that lost
|
|
1411
|
+
its connection, a throttled describe — and the sweep is convergent, so
|
|
1412
|
+
the work is retried five minutes later either way. Alarming on one such
|
|
1413
|
+
blip pages an operator for something already fixed by the time they
|
|
1414
|
+
read it. A genuine reconciliation failure (expired credentials, a broken
|
|
1415
|
+
table, a revoked App installation) fails every sweep, so it still
|
|
1416
|
+
announces itself within fifteen minutes.
|
|
1408
1417
|
|
|
1409
1418
|
Requires ``GithubMicrovmRunnersProps.emitMetrics``, and throws at synth
|
|
1410
1419
|
without it.
|
|
@@ -1414,7 +1423,7 @@ class GithubMicrovmRunnersMetrics(
|
|
|
1414
1423
|
:param period: Aggregation period for the metric. Default: Duration.minutes(5)
|
|
1415
1424
|
:param threshold: Value at or above which the alarm fires. Default: 1
|
|
1416
1425
|
|
|
1417
|
-
:default: threshold 1,
|
|
1426
|
+
:default: threshold 1, 3 evaluation periods, 5-minute period
|
|
1418
1427
|
'''
|
|
1419
1428
|
if __debug__:
|
|
1420
1429
|
type_hints = cached_type_hints(_typecheckingstub__971f59e7dc4d5b4245765d41b7dcc4075c4dd91870a15df6b9f345ee393cdc61)
|
|
@@ -2198,7 +2207,7 @@ class ImagePipeline(
|
|
|
2198
2207
|
:param id: -
|
|
2199
2208
|
:param image: The runner image to build: ``RunnerImage.fromOptions()`` for a synthesized Dockerfile, ``RunnerImage.fromInline(text)`` for Dockerfile text, or ``RunnerImage.fromDockerfile(dir)`` for a Dockerfile and build context on disk.
|
|
2200
2209
|
:param network: How the build and the VMs reach the network.
|
|
2201
|
-
:param runner_set_id: Identifier for the runner set this image belongs to. It is
|
|
2210
|
+
:param runner_set_id: Identifier for the runner set this image belongs to, used verbatim as the image's name. It is deliberately stable: the name is the only property whose change forces CloudFormation to replace the image, so holding it still keeps every content change an in-place update that adds a version. A content change is still picked up — the build context is a content-hashed CDK asset, so it moves ``codeArtifact`` — and an unchanged one is still a no-op. Must match ``^[a-zA-Z0-9-_]+$`` and be 64 characters or fewer, the service's name limit.
|
|
2202
2211
|
:param size: The size the built image runs at, which becomes its memory floor.
|
|
2203
2212
|
:param base_image_version: Version of the managed ``al2023-1`` base image to build from. Default: '0'
|
|
2204
2213
|
:param image_logs: Where the build's logs go. Left unset, the build emits no logs; ``ImageLogs.enabled()`` sends them to the platform's group, and ``ImageLogs.enabled(logGroup)`` to a group you supply.
|
|
@@ -2237,7 +2246,7 @@ class ImagePipeline(
|
|
|
2237
2246
|
@builtins.property
|
|
2238
2247
|
@jsii.member(jsii_name="imageName")
|
|
2239
2248
|
def image_name(self) -> builtins.str:
|
|
2240
|
-
'''Name of the built MicroVM image
|
|
2249
|
+
'''Name of the built MicroVM image — the per-class ``runnerSetId``, stable for the life of the runner class.'''
|
|
2241
2250
|
return typing.cast(builtins.str, jsii.get(self, "imageName"))
|
|
2242
2251
|
|
|
2243
2252
|
@builtins.property
|
|
@@ -2246,6 +2255,12 @@ class ImagePipeline(
|
|
|
2246
2255
|
'''The underlying ``AWS::Lambda::MicrovmImage`` resource.'''
|
|
2247
2256
|
return typing.cast("_aws_cdk_aws_lambda_ceddda9d.CfnMicrovmImage", jsii.get(self, "imageResource"))
|
|
2248
2257
|
|
|
2258
|
+
@builtins.property
|
|
2259
|
+
@jsii.member(jsii_name="imageVersion")
|
|
2260
|
+
def image_version(self) -> builtins.str:
|
|
2261
|
+
'''The image's latest active version, which advances every time the image is rebuilt in place.'''
|
|
2262
|
+
return typing.cast(builtins.str, jsii.get(self, "imageVersion"))
|
|
2263
|
+
|
|
2249
2264
|
|
|
2250
2265
|
@jsii.data_type(
|
|
2251
2266
|
jsii_type="cdk-github-microvm-runners.ImagePipelineProps",
|
|
@@ -2278,7 +2293,7 @@ class ImagePipelineProps:
|
|
|
2278
2293
|
|
|
2279
2294
|
:param image: The runner image to build: ``RunnerImage.fromOptions()`` for a synthesized Dockerfile, ``RunnerImage.fromInline(text)`` for Dockerfile text, or ``RunnerImage.fromDockerfile(dir)`` for a Dockerfile and build context on disk.
|
|
2280
2295
|
:param network: How the build and the VMs reach the network.
|
|
2281
|
-
:param runner_set_id: Identifier for the runner set this image belongs to. It is
|
|
2296
|
+
:param runner_set_id: Identifier for the runner set this image belongs to, used verbatim as the image's name. It is deliberately stable: the name is the only property whose change forces CloudFormation to replace the image, so holding it still keeps every content change an in-place update that adds a version. A content change is still picked up — the build context is a content-hashed CDK asset, so it moves ``codeArtifact`` — and an unchanged one is still a no-op. Must match ``^[a-zA-Z0-9-_]+$`` and be 64 characters or fewer, the service's name limit.
|
|
2282
2297
|
:param size: The size the built image runs at, which becomes its memory floor.
|
|
2283
2298
|
:param base_image_version: Version of the managed ``al2023-1`` base image to build from. Default: '0'
|
|
2284
2299
|
:param image_logs: Where the build's logs go. Left unset, the build emits no logs; ``ImageLogs.enabled()`` sends them to the platform's group, and ``ImageLogs.enabled(logGroup)`` to a group you supply.
|
|
@@ -2326,14 +2341,15 @@ class ImagePipelineProps:
|
|
|
2326
2341
|
|
|
2327
2342
|
@builtins.property
|
|
2328
2343
|
def runner_set_id(self) -> builtins.str:
|
|
2329
|
-
'''Identifier for the runner set this image belongs to.
|
|
2330
|
-
|
|
2331
|
-
It is
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2344
|
+
'''Identifier for the runner set this image belongs to, used verbatim as the image's name.
|
|
2345
|
+
|
|
2346
|
+
It is deliberately stable: the name is the only property
|
|
2347
|
+
whose change forces CloudFormation to replace the image, so holding it
|
|
2348
|
+
still keeps every content change an in-place update that adds a version.
|
|
2349
|
+
A content change is still picked up — the build context is a
|
|
2350
|
+
content-hashed CDK asset, so it moves ``codeArtifact`` — and an unchanged
|
|
2351
|
+
one is still a no-op. Must match ``^[a-zA-Z0-9-_]+$`` and be 64 characters
|
|
2352
|
+
or fewer, the service's name limit.
|
|
2337
2353
|
'''
|
|
2338
2354
|
result = self._values.get("runner_set_id")
|
|
2339
2355
|
assert result is not None, "Required property 'runner_set_id' is missing"
|
|
@@ -19,9 +19,9 @@ import constructs._jsii
|
|
|
19
19
|
|
|
20
20
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
21
21
|
"cdk-github-microvm-runners",
|
|
22
|
-
"0.1.
|
|
22
|
+
"0.1.6",
|
|
23
23
|
__name__[0:-6],
|
|
24
|
-
"cdk-github-microvm-runners@0.1.
|
|
24
|
+
"cdk-github-microvm-runners@0.1.6.jsii.tgz",
|
|
25
25
|
)
|
|
26
26
|
|
|
27
27
|
__all__ = [
|
|
@@ -9,9 +9,9 @@ if "JSII_RUNTIME_PACKAGE_CACHE" not in os.environ:
|
|
|
9
9
|
|
|
10
10
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
11
11
|
"cdk-github-microvm-runners",
|
|
12
|
-
"0.1.
|
|
12
|
+
"0.1.6",
|
|
13
13
|
"cdk_github_microvm_runners",
|
|
14
|
-
"cdk-github-microvm-runners@0.1.
|
|
14
|
+
"cdk-github-microvm-runners@0.1.6.jsii.tgz",
|
|
15
15
|
)
|
|
16
16
|
|
|
17
17
|
exit_code = __jsii_assembly__.invokeBinScript(
|
|
Binary file
|
|
@@ -11,5 +11,5 @@ src/cdk_github_microvm_runners.egg-info/dependency_links.txt
|
|
|
11
11
|
src/cdk_github_microvm_runners.egg-info/requires.txt
|
|
12
12
|
src/cdk_github_microvm_runners.egg-info/top_level.txt
|
|
13
13
|
src/cdk_github_microvm_runners/_jsii/__init__.py
|
|
14
|
-
src/cdk_github_microvm_runners/_jsii/cdk-github-microvm-runners@0.1.
|
|
14
|
+
src/cdk_github_microvm_runners/_jsii/cdk-github-microvm-runners@0.1.6.jsii.tgz
|
|
15
15
|
src/cdk_github_microvm_runners/_jsii/bin/cdk-github-microvm-runners
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|