cdk-github-microvm-runners 0.1.3__tar.gz → 0.1.4__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.3/src/cdk_github_microvm_runners.egg-info → cdk_github_microvm_runners-0.1.4}/PKG-INFO +1 -1
- {cdk_github_microvm_runners-0.1.3 → cdk_github_microvm_runners-0.1.4}/setup.py +2 -2
- {cdk_github_microvm_runners-0.1.3 → cdk_github_microvm_runners-0.1.4}/src/cdk_github_microvm_runners/__init__.py +27 -14
- {cdk_github_microvm_runners-0.1.3 → cdk_github_microvm_runners-0.1.4}/src/cdk_github_microvm_runners/_jsii/__init__.py +2 -2
- {cdk_github_microvm_runners-0.1.3 → cdk_github_microvm_runners-0.1.4}/src/cdk_github_microvm_runners/_jsii/bin/cdk-github-microvm-runners +2 -2
- 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.3 → cdk_github_microvm_runners-0.1.4/src/cdk_github_microvm_runners.egg-info}/PKG-INFO +1 -1
- {cdk_github_microvm_runners-0.1.3 → cdk_github_microvm_runners-0.1.4}/src/cdk_github_microvm_runners.egg-info/SOURCES.txt +1 -1
- cdk_github_microvm_runners-0.1.3/src/cdk_github_microvm_runners/_jsii/cdk-github-microvm-runners@0.1.3.jsii.tgz +0 -0
- {cdk_github_microvm_runners-0.1.3 → cdk_github_microvm_runners-0.1.4}/LICENSE +0 -0
- {cdk_github_microvm_runners-0.1.3 → cdk_github_microvm_runners-0.1.4}/MANIFEST.in +0 -0
- {cdk_github_microvm_runners-0.1.3 → cdk_github_microvm_runners-0.1.4}/README.md +0 -0
- {cdk_github_microvm_runners-0.1.3 → cdk_github_microvm_runners-0.1.4}/pyproject.toml +0 -0
- {cdk_github_microvm_runners-0.1.3 → cdk_github_microvm_runners-0.1.4}/setup.cfg +0 -0
- {cdk_github_microvm_runners-0.1.3 → cdk_github_microvm_runners-0.1.4}/src/cdk_github_microvm_runners/py.typed +0 -0
- {cdk_github_microvm_runners-0.1.3 → cdk_github_microvm_runners-0.1.4}/src/cdk_github_microvm_runners.egg-info/dependency_links.txt +0 -0
- {cdk_github_microvm_runners-0.1.3 → cdk_github_microvm_runners-0.1.4}/src/cdk_github_microvm_runners.egg-info/requires.txt +0 -0
- {cdk_github_microvm_runners-0.1.3 → cdk_github_microvm_runners-0.1.4}/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.4",
|
|
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.4.jsii.tgz"
|
|
30
30
|
],
|
|
31
31
|
"cdk_github_microvm_runners": [
|
|
32
32
|
"py.typed"
|
|
@@ -860,7 +860,7 @@ class GithubMicrovmRunners(
|
|
|
860
860
|
:param network: How launched MicroVMs and image builds reach the network. Default: RunnerNetwork.internetEgress()
|
|
861
861
|
:param permissions_boundary: Permissions boundary applied to every IAM role this construct creates: the handler execution roles, the per-class image build roles, and the network-connector operator role. It is applied once at construct scope, so roles created later also carry it — the warm-pool handler's role, and the build role of any runner class registered after construction. Default: undefined (no boundary)
|
|
862
862
|
:param point_in_time_recovery: Turn on DynamoDB point-in-time recovery for the runner table. Default: false
|
|
863
|
-
:param recover_stuck_launches:
|
|
863
|
+
:param recover_stuck_launches: Re-launch jobs that are still waiting for a runner they never got. This is the floor under an event-driven plane, and it is on by default. GitHub announces a job once. If the launch that announcement triggered doesn't end with the job being served, nothing else ever asks again, and the job waits for as long as the workflow allows with no error anywhere — the plane looks healthy because by its own bookkeeping it did its work. Each janitor sweep closes that hole from two directions: it re-drives dead-lettered launch messages back onto the job queue, and it re-launches claims whose VM is gone while the job is still queued. Both check with GitHub first, so a job that has since completed or been cancelled is discarded rather than booting a VM for work nobody is waiting on. Turn it off only if you want a job that slips through to stay stuck. The cost of leaving it on is one extra GitHub read per sweep per candidate, bounded per sweep so it cannot exhaust the installation's rate limit. The janitor counts recoveries under the ``stuckLaunchesRecovered`` and ``stuckClaimsRelaunched`` metrics, which report when ``emitMetrics`` is on. A count that stays high means launches are failing for some ongoing reason and the recovery is masking it — alarm on it rather than ignoring it. Default: true
|
|
864
864
|
:param removal_policy: Removal policy for this runner set's stateful resources: the runner table and any log group the construct creates. The table holds correlation data for VMs that are currently running, all of which the janitor can rebuild from the MicroVM and GitHub APIs. Default: RemovalPolicy.DESTROY
|
|
865
865
|
:param vm_execution_role: An AWS identity for this runner set's runner VMs. By default the VMs carry no AWS identity at all: the runner agent talks outbound to GitHub, the just-in-time registration is pushed to the VM over a platform-authenticated channel, and a job that needs AWS assumes its own role through GitHub OIDC. With a role attached, the MicroVM's instance metadata service serves that role's credentials to arbitrary job code, so every job running on this runner set can do whatever the role can do. ``consoleLogs`` requires a role, because the platform writes a VM's console output using it. Default: undefined (the VMs carry no AWS identity)
|
|
866
866
|
:param warm_pool_interval: How often the warm-pool sweep refills pre-booted VMs. It applies only to runner classes that set ``RunnerClassProps.warmPoolSize``, and the warm-pool handler and its schedule are only created once such a class is registered. A runner set with no warm class never runs this sweep, and never reads this value. Default: Duration.minutes(2)
|
|
@@ -1559,7 +1559,7 @@ class GithubMicrovmRunnersProps:
|
|
|
1559
1559
|
:param network: How launched MicroVMs and image builds reach the network. Default: RunnerNetwork.internetEgress()
|
|
1560
1560
|
:param permissions_boundary: Permissions boundary applied to every IAM role this construct creates: the handler execution roles, the per-class image build roles, and the network-connector operator role. It is applied once at construct scope, so roles created later also carry it — the warm-pool handler's role, and the build role of any runner class registered after construction. Default: undefined (no boundary)
|
|
1561
1561
|
:param point_in_time_recovery: Turn on DynamoDB point-in-time recovery for the runner table. Default: false
|
|
1562
|
-
:param recover_stuck_launches:
|
|
1562
|
+
:param recover_stuck_launches: Re-launch jobs that are still waiting for a runner they never got. This is the floor under an event-driven plane, and it is on by default. GitHub announces a job once. If the launch that announcement triggered doesn't end with the job being served, nothing else ever asks again, and the job waits for as long as the workflow allows with no error anywhere — the plane looks healthy because by its own bookkeeping it did its work. Each janitor sweep closes that hole from two directions: it re-drives dead-lettered launch messages back onto the job queue, and it re-launches claims whose VM is gone while the job is still queued. Both check with GitHub first, so a job that has since completed or been cancelled is discarded rather than booting a VM for work nobody is waiting on. Turn it off only if you want a job that slips through to stay stuck. The cost of leaving it on is one extra GitHub read per sweep per candidate, bounded per sweep so it cannot exhaust the installation's rate limit. The janitor counts recoveries under the ``stuckLaunchesRecovered`` and ``stuckClaimsRelaunched`` metrics, which report when ``emitMetrics`` is on. A count that stays high means launches are failing for some ongoing reason and the recovery is masking it — alarm on it rather than ignoring it. Default: true
|
|
1563
1563
|
:param removal_policy: Removal policy for this runner set's stateful resources: the runner table and any log group the construct creates. The table holds correlation data for VMs that are currently running, all of which the janitor can rebuild from the MicroVM and GitHub APIs. Default: RemovalPolicy.DESTROY
|
|
1564
1564
|
:param vm_execution_role: An AWS identity for this runner set's runner VMs. By default the VMs carry no AWS identity at all: the runner agent talks outbound to GitHub, the just-in-time registration is pushed to the VM over a platform-authenticated channel, and a job that needs AWS assumes its own role through GitHub OIDC. With a role attached, the MicroVM's instance metadata service serves that role's credentials to arbitrary job code, so every job running on this runner set can do whatever the role can do. ``consoleLogs`` requires a role, because the platform writes a VM's console output using it. Default: undefined (the VMs carry no AWS identity)
|
|
1565
1565
|
:param warm_pool_interval: How often the warm-pool sweep refills pre-booted VMs. It applies only to runner classes that set ``RunnerClassProps.warmPoolSize``, and the warm-pool handler and its schedule are only created once such a class is registered. A runner set with no warm class never runs this sweep, and never reads this value. Default: Duration.minutes(2)
|
|
@@ -1883,18 +1883,31 @@ class GithubMicrovmRunnersProps:
|
|
|
1883
1883
|
|
|
1884
1884
|
@builtins.property
|
|
1885
1885
|
def recover_stuck_launches(self) -> typing.Optional[builtins.bool]:
|
|
1886
|
-
'''
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1886
|
+
'''Re-launch jobs that are still waiting for a runner they never got.
|
|
1887
|
+
|
|
1888
|
+
This is
|
|
1889
|
+
the floor under an event-driven plane, and it is on by default.
|
|
1890
|
+
|
|
1891
|
+
GitHub announces a job once. If the launch that announcement triggered
|
|
1892
|
+
doesn't end with the job being served, nothing else ever asks again, and
|
|
1893
|
+
the job waits for as long as the workflow allows with no error anywhere —
|
|
1894
|
+
the plane looks healthy because by its own bookkeeping it did its work.
|
|
1895
|
+
Each janitor sweep closes that hole from two directions: it re-drives
|
|
1896
|
+
dead-lettered launch messages back onto the job queue, and it re-launches
|
|
1897
|
+
claims whose VM is gone while the job is still queued. Both check with
|
|
1898
|
+
GitHub first, so a job that has since completed or been cancelled is
|
|
1899
|
+
discarded rather than booting a VM for work nobody is waiting on.
|
|
1900
|
+
|
|
1901
|
+
Turn it off only if you want a job that slips through to stay stuck. The
|
|
1902
|
+
cost of leaving it on is one extra GitHub read per sweep per candidate,
|
|
1903
|
+
bounded per sweep so it cannot exhaust the installation's rate limit.
|
|
1904
|
+
|
|
1905
|
+
The janitor counts recoveries under the ``stuckLaunchesRecovered`` and
|
|
1906
|
+
``stuckClaimsRelaunched`` metrics, which report when ``emitMetrics`` is on. A
|
|
1907
|
+
count that stays high means launches are failing for some ongoing reason
|
|
1908
|
+
and the recovery is masking it — alarm on it rather than ignoring it.
|
|
1909
|
+
|
|
1910
|
+
:default: true
|
|
1898
1911
|
'''
|
|
1899
1912
|
result = self._values.get("recover_stuck_launches")
|
|
1900
1913
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
@@ -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.4",
|
|
23
23
|
__name__[0:-6],
|
|
24
|
-
"cdk-github-microvm-runners@0.1.
|
|
24
|
+
"cdk-github-microvm-runners@0.1.4.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.4",
|
|
13
13
|
"cdk_github_microvm_runners",
|
|
14
|
-
"cdk-github-microvm-runners@0.1.
|
|
14
|
+
"cdk-github-microvm-runners@0.1.4.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.4.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
|