cloudsnorkel.cdk-github-runners 0.14.0__py3-none-any.whl → 0.14.2__py3-none-any.whl

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.

Potentially problematic release.


This version of cloudsnorkel.cdk-github-runners might be problematic. Click here for more details.

@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # GitHub Self-Hosted Runners CDK Constructs
3
3
 
4
4
  [![NPM](https://img.shields.io/npm/v/@cloudsnorkel/cdk-github-runners?label=npm&logo=npm)](https://www.npmjs.com/package/@cloudsnorkel/cdk-github-runners)
@@ -21,7 +21,7 @@ Self-hosted runners in AWS are useful when:
21
21
 
22
22
  * You need easy access to internal resources in your actions
23
23
  * You want to pre-install some software for your actions
24
- * You want to provide some basic AWS API access (but [aws-actions/configure-aws-credentials](https://github.com/marketplace/actions/configure-aws-credentials-for-github-actions) has more security controls)
24
+ * You want to provide some basic AWS API access (but [aws-actions/configure-aws-credentials](https://github.com/marketplace/actions/configure-aws-credentials-action-for-github-actions) has more security controls)
25
25
  * You are using GitHub Enterprise Server
26
26
 
27
27
  Ephemeral (or on-demand) runners are the [recommended way by GitHub](https://docs.github.com/en/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners#using-ephemeral-runners-for-autoscaling) for auto-scaling, and they make sure all jobs run with a clean image. Runners are started on-demand. You don't pay unless a job is running.
@@ -71,9 +71,14 @@ You can also create your own provider by implementing `IRunnerProvider`.
71
71
  ### Use
72
72
 
73
73
  ```python
74
+ from aws_cdk import App, Stack
74
75
  from cloudsnorkel.cdk_github_runners import GitHubRunners
75
76
 
76
- GitHubRunners(self, "runners")
77
+ app = App()
78
+ stack = Stack(app, "github-runners")
79
+ GitHubRunners(stack, "runners")
80
+
81
+ app.synth()
77
82
  ```
78
83
 
79
84
  </details>
@@ -90,9 +95,14 @@ You can also create your own provider by implementing `IRunnerProvider`.
90
95
  ### Use
91
96
 
92
97
  ```python
98
+ import { App, Stack } from 'aws-cdk-lib';
93
99
  import { GitHubRunners } from '@cloudsnorkel/cdk-github-runners';
94
100
 
95
- new GitHubRunners(this, "runners");
101
+ const app = new App();
102
+ const stack = new Stack(app, 'github-runners');
103
+ new GitHubRunners(stack, 'runners');
104
+
105
+ app.synth();
96
106
  ```
97
107
 
98
108
  </details>
@@ -112,9 +122,19 @@ You can also create your own provider by implementing `IRunnerProvider`.
112
122
  ### Use
113
123
 
114
124
  ```java
125
+ import software.amazon.awscdk.App;
126
+ import software.amazon.awscdk.Stack;
115
127
  import com.cloudsnorkel.cdk.github.runners.GitHubRunners;
116
128
 
117
- GitHubRunners.Builder.create(this, "runners").build();
129
+ public class Example {
130
+ public static void main(String[] args){
131
+ App app = new App();
132
+ Stack stack = new Stack(app, "github-runners");
133
+ GitHubRunners.Builder.create(stack, "runners").build();
134
+
135
+ app.synth();
136
+ }
137
+ }
118
138
  ```
119
139
 
120
140
  </details>
@@ -131,9 +151,21 @@ You can also create your own provider by implementing `IRunnerProvider`.
131
151
  ### Use
132
152
 
133
153
  ```go
134
- import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
154
+ package main
135
155
 
136
- NewGitHubRunners(this, jsii.String("runners"))
156
+ import (
157
+ "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
158
+ "github.com/aws/aws-cdk-go/awscdk/v2"
159
+ "github.com/aws/jsii-runtime-go"
160
+ )
161
+
162
+ func main() {
163
+ app := awscdk.NewApp(nil)
164
+ stack := awscdk.NewStack(app, jsii.String("github-runners"), &awscdk.StackProps{})
165
+ cloudsnorkelcdkgithubrunners.NewGitHubRunners(stack, jsii.String("runners"), &cloudsnorkelcdkgithubrunners.GitHubRunnersProps{})
166
+
167
+ app.Synth(nil)
168
+ }
137
169
  ```
138
170
 
139
171
  </details>
@@ -150,9 +182,22 @@ You can also create your own provider by implementing `IRunnerProvider`.
150
182
  ### Use
151
183
 
152
184
  ```csharp
185
+ using Amazon.CDK;
153
186
  using CloudSnorkel;
154
187
 
155
- new GitHubRunners(this, "runners");
188
+ namespace Example
189
+ {
190
+ sealed class Program
191
+ {
192
+ public static void Main(string[] args)
193
+ {
194
+ var app = new App();
195
+ var stack = new Stack(app, "github-runners");
196
+ new GitHubRunners(stack, "runners");
197
+ app.Synth();
198
+ }
199
+ }
200
+ }
156
201
  ```
157
202
 
158
203
  </details>
@@ -355,7 +400,22 @@ import jsii
355
400
  import publication
356
401
  import typing_extensions
357
402
 
358
- from typeguard import check_type
403
+ import typeguard
404
+ from importlib.metadata import version as _metadata_package_version
405
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
406
+
407
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
408
+ if TYPEGUARD_MAJOR_VERSION <= 2:
409
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
410
+ else:
411
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
412
+ pass
413
+ else:
414
+ if TYPEGUARD_MAJOR_VERSION == 3:
415
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
416
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
417
+ else:
418
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
359
419
 
360
420
  from ._jsii import *
361
421
 
@@ -5906,7 +5966,7 @@ class AmiBuilder(
5906
5966
  ):
5907
5967
  '''(deprecated) An AMI builder that uses AWS Image Builder to build AMIs pre-baked with all the GitHub Actions runner requirements.
5908
5968
 
5909
- Builders can be used with {@link Ec2Runner }.
5969
+ Builders can be used with {@link Ec2RunnerProvider }.
5910
5970
 
5911
5971
  Each builder re-runs automatically at a set interval to make sure the AMIs contain the latest versions of everything.
5912
5972
 
@@ -5931,7 +5991,7 @@ class AmiBuilder(
5931
5991
  amiBuilder: builder,
5932
5992
  });
5933
5993
 
5934
- :deprecated: use RunnerImageBuilder
5994
+ :deprecated: use RunnerImageBuilder, e.g. with Ec2RunnerProvider.imageBuilder()
5935
5995
 
5936
5996
  :stability: deprecated
5937
5997
  '''
@@ -6204,7 +6264,7 @@ class AmiBuilder(
6204
6264
  if __debug__:
6205
6265
  type_hints = typing.get_type_hints(_typecheckingstub__8088868062a70621aab7b900883cf52d9c930de8a458039564d69a7d0cc80f52)
6206
6266
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
6207
- jsii.set(self, "components", value)
6267
+ jsii.set(self, "components", value) # pyright: ignore[reportArgumentType]
6208
6268
 
6209
6269
 
6210
6270
  @jsii.implements(IRunnerImageBuilder)
@@ -7368,7 +7428,7 @@ class ContainerImageBuilder(
7368
7428
  if __debug__:
7369
7429
  type_hints = typing.get_type_hints(_typecheckingstub__f4c47d52e3f51709153fc49a53f833f06b1fd2ba44d3c86696b418a3bf88a972)
7370
7430
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
7371
- jsii.set(self, "components", value)
7431
+ jsii.set(self, "components", value) # pyright: ignore[reportArgumentType]
7372
7432
 
7373
7433
 
7374
7434
  @jsii.implements(IRunnerProvider)
@@ -10171,7 +10231,7 @@ class RunnerImageBuilder(
10171
10231
  if __debug__:
10172
10232
  type_hints = typing.get_type_hints(_typecheckingstub__705c18a1eedaa490aebad511aac32a801519a57162e30be4673a8ab87ca434dc)
10173
10233
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
10174
- jsii.set(self, "components", value)
10234
+ jsii.set(self, "components", value) # pyright: ignore[reportArgumentType]
10175
10235
 
10176
10236
 
10177
10237
  class _RunnerImageBuilderProxy(RunnerImageBuilder):
@@ -11,16 +11,31 @@ import jsii
11
11
  import publication
12
12
  import typing_extensions
13
13
 
14
- from typeguard import check_type
14
+ import typeguard
15
+ from importlib.metadata import version as _metadata_package_version
16
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
17
+
18
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
19
+ if TYPEGUARD_MAJOR_VERSION <= 2:
20
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
21
+ else:
22
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
23
+ pass
24
+ else:
25
+ if TYPEGUARD_MAJOR_VERSION == 3:
26
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
27
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
28
+ else:
29
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
15
30
 
16
31
  import aws_cdk._jsii
17
32
  import constructs._jsii
18
33
 
19
34
  __jsii_assembly__ = jsii.JSIIAssembly.load(
20
35
  "@cloudsnorkel/cdk-github-runners",
21
- "0.14.0",
36
+ "0.14.2",
22
37
  __name__[0:-6],
23
- "cdk-github-runners@0.14.0.jsii.tgz",
38
+ "cdk-github-runners@0.14.2.jsii.tgz",
24
39
  )
25
40
 
26
41
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloudsnorkel.cdk-github-runners
3
- Version: 0.14.0
3
+ Version: 0.14.2
4
4
  Summary: CDK construct to create GitHub Actions self-hosted runners. A webhook listens to events and creates ephemeral runners on the fly.
5
5
  Home-page: https://github.com/CloudSnorkel/cdk-github-runners.git
6
6
  Author: Amir Szekely<amir@cloudsnorkel.com>
@@ -20,11 +20,11 @@ Classifier: License :: OSI Approved
20
20
  Requires-Python: ~=3.8
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
- Requires-Dist: aws-cdk-lib <3.0.0,>=2.123.0
24
- Requires-Dist: constructs <11.0.0,>=10.0.5
25
- Requires-Dist: jsii <2.0.0,>=1.98.0
26
- Requires-Dist: publication >=0.0.3
27
- Requires-Dist: typeguard ~=2.13.3
23
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.123.0
24
+ Requires-Dist: constructs<11.0.0,>=10.0.5
25
+ Requires-Dist: jsii<2.0.0,>=1.103.1
26
+ Requires-Dist: publication>=0.0.3
27
+ Requires-Dist: typeguard<5.0.0,>=2.13.3
28
28
 
29
29
  # GitHub Self-Hosted Runners CDK Constructs
30
30
 
@@ -48,7 +48,7 @@ Self-hosted runners in AWS are useful when:
48
48
 
49
49
  * You need easy access to internal resources in your actions
50
50
  * You want to pre-install some software for your actions
51
- * You want to provide some basic AWS API access (but [aws-actions/configure-aws-credentials](https://github.com/marketplace/actions/configure-aws-credentials-for-github-actions) has more security controls)
51
+ * You want to provide some basic AWS API access (but [aws-actions/configure-aws-credentials](https://github.com/marketplace/actions/configure-aws-credentials-action-for-github-actions) has more security controls)
52
52
  * You are using GitHub Enterprise Server
53
53
 
54
54
  Ephemeral (or on-demand) runners are the [recommended way by GitHub](https://docs.github.com/en/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners#using-ephemeral-runners-for-autoscaling) for auto-scaling, and they make sure all jobs run with a clean image. Runners are started on-demand. You don't pay unless a job is running.
@@ -98,9 +98,14 @@ You can also create your own provider by implementing `IRunnerProvider`.
98
98
  ### Use
99
99
 
100
100
  ```python
101
+ from aws_cdk import App, Stack
101
102
  from cloudsnorkel.cdk_github_runners import GitHubRunners
102
103
 
103
- GitHubRunners(self, "runners")
104
+ app = App()
105
+ stack = Stack(app, "github-runners")
106
+ GitHubRunners(stack, "runners")
107
+
108
+ app.synth()
104
109
  ```
105
110
 
106
111
  </details>
@@ -117,9 +122,14 @@ You can also create your own provider by implementing `IRunnerProvider`.
117
122
  ### Use
118
123
 
119
124
  ```python
125
+ import { App, Stack } from 'aws-cdk-lib';
120
126
  import { GitHubRunners } from '@cloudsnorkel/cdk-github-runners';
121
127
 
122
- new GitHubRunners(this, "runners");
128
+ const app = new App();
129
+ const stack = new Stack(app, 'github-runners');
130
+ new GitHubRunners(stack, 'runners');
131
+
132
+ app.synth();
123
133
  ```
124
134
 
125
135
  </details>
@@ -139,9 +149,19 @@ You can also create your own provider by implementing `IRunnerProvider`.
139
149
  ### Use
140
150
 
141
151
  ```java
152
+ import software.amazon.awscdk.App;
153
+ import software.amazon.awscdk.Stack;
142
154
  import com.cloudsnorkel.cdk.github.runners.GitHubRunners;
143
155
 
144
- GitHubRunners.Builder.create(this, "runners").build();
156
+ public class Example {
157
+ public static void main(String[] args){
158
+ App app = new App();
159
+ Stack stack = new Stack(app, "github-runners");
160
+ GitHubRunners.Builder.create(stack, "runners").build();
161
+
162
+ app.synth();
163
+ }
164
+ }
145
165
  ```
146
166
 
147
167
  </details>
@@ -158,9 +178,21 @@ You can also create your own provider by implementing `IRunnerProvider`.
158
178
  ### Use
159
179
 
160
180
  ```go
161
- import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
181
+ package main
182
+
183
+ import (
184
+ "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
185
+ "github.com/aws/aws-cdk-go/awscdk/v2"
186
+ "github.com/aws/jsii-runtime-go"
187
+ )
188
+
189
+ func main() {
190
+ app := awscdk.NewApp(nil)
191
+ stack := awscdk.NewStack(app, jsii.String("github-runners"), &awscdk.StackProps{})
192
+ cloudsnorkelcdkgithubrunners.NewGitHubRunners(stack, jsii.String("runners"), &cloudsnorkelcdkgithubrunners.GitHubRunnersProps{})
162
193
 
163
- NewGitHubRunners(this, jsii.String("runners"))
194
+ app.Synth(nil)
195
+ }
164
196
  ```
165
197
 
166
198
  </details>
@@ -177,9 +209,22 @@ You can also create your own provider by implementing `IRunnerProvider`.
177
209
  ### Use
178
210
 
179
211
  ```csharp
212
+ using Amazon.CDK;
180
213
  using CloudSnorkel;
181
214
 
182
- new GitHubRunners(this, "runners");
215
+ namespace Example
216
+ {
217
+ sealed class Program
218
+ {
219
+ public static void Main(string[] args)
220
+ {
221
+ var app = new App();
222
+ var stack = new Stack(app, "github-runners");
223
+ new GitHubRunners(stack, "runners");
224
+ app.Synth();
225
+ }
226
+ }
227
+ }
183
228
  ```
184
229
 
185
230
  </details>
@@ -0,0 +1,9 @@
1
+ cloudsnorkel/cdk_github_runners/__init__.py,sha256=XILvg4fiFgJDz1vLoLyJhQV1QxaEfR8PHXEaOiQa-50,605357
2
+ cloudsnorkel/cdk_github_runners/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ cloudsnorkel/cdk_github_runners/_jsii/__init__.py,sha256=EKEj4-LFjgbMIOW92iuHPI8WBQxnmwXWU7CY_noFXQQ,1476
4
+ cloudsnorkel/cdk_github_runners/_jsii/cdk-github-runners@0.14.2.jsii.tgz,sha256=dzk99sQyu7D-fL-Ixu6fTHOAfTOXUu4E8wkbyacetbg,1443281
5
+ cloudsnorkel.cdk_github_runners-0.14.2.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
+ cloudsnorkel.cdk_github_runners-0.14.2.dist-info/METADATA,sha256=DjJn2PQmd_s8-4fhJpD06WzDP8xW0kp0NXdmfaWvNsQ,17619
7
+ cloudsnorkel.cdk_github_runners-0.14.2.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
8
+ cloudsnorkel.cdk_github_runners-0.14.2.dist-info/top_level.txt,sha256=6vUrT-dcGOiRMT4Q6gEQPznoyS7nHOJ269MHpo4DEd8,13
9
+ cloudsnorkel.cdk_github_runners-0.14.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: bdist_wheel (0.44.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,9 +0,0 @@
1
- cloudsnorkel/cdk_github_runners/__init__.py,sha256=6whEOjco3SRb1o4zqarcwjlMOP-8qCea6zRiPjM-LXI,603073
2
- cloudsnorkel/cdk_github_runners/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- cloudsnorkel/cdk_github_runners/_jsii/__init__.py,sha256=ybGTips70JpXvdycduH85-0aqPjleMHG7hQjDlr8KG4,508
4
- cloudsnorkel/cdk_github_runners/_jsii/cdk-github-runners@0.14.0.jsii.tgz,sha256=kQo2SzrU0_Ef5YDvEKh0J8IRwkAC96gQiZRgvpwilYM,1438814
5
- cloudsnorkel.cdk_github_runners-0.14.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
- cloudsnorkel.cdk_github_runners-0.14.0.dist-info/METADATA,sha256=XwbXG8Aq-1H_3NF4rxeXHtJ0Vzc7R-ny44x8DCB1Pdg,16467
7
- cloudsnorkel.cdk_github_runners-0.14.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
8
- cloudsnorkel.cdk_github_runners-0.14.0.dist-info/top_level.txt,sha256=6vUrT-dcGOiRMT4Q6gEQPznoyS7nHOJ269MHpo4DEd8,13
9
- cloudsnorkel.cdk_github_runners-0.14.0.dist-info/RECORD,,