primitive 0.2.0__py3-none-any.whl → 0.2.1__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.
- primitive/__about__.py +1 -1
- primitive/agent/actions.py +14 -3
- primitive/agent/runner.py +1 -0
- {primitive-0.2.0.dist-info → primitive-0.2.1.dist-info}/METADATA +1 -1
- {primitive-0.2.0.dist-info → primitive-0.2.1.dist-info}/RECORD +8 -8
- {primitive-0.2.0.dist-info → primitive-0.2.1.dist-info}/WHEEL +0 -0
- {primitive-0.2.0.dist-info → primitive-0.2.1.dist-info}/entry_points.txt +0 -0
- {primitive-0.2.0.dist-info → primitive-0.2.1.dist-info}/licenses/LICENSE.txt +0 -0
primitive/__about__.py
CHANGED
primitive/agent/actions.py
CHANGED
@@ -149,7 +149,7 @@ class Agent(BaseAction):
|
|
149
149
|
except Exception as exception:
|
150
150
|
logger.error(f"Error downloading source: {exception}")
|
151
151
|
self.primitive.jobs.job_run_update(
|
152
|
-
job_run["id"],
|
152
|
+
id=job_run["id"],
|
153
153
|
status="request_completed",
|
154
154
|
conclusion="failure",
|
155
155
|
)
|
@@ -173,8 +173,19 @@ class Agent(BaseAction):
|
|
173
173
|
f"Error initializing agent runner: {exception}"
|
174
174
|
)
|
175
175
|
else:
|
176
|
-
|
177
|
-
|
176
|
+
try:
|
177
|
+
# Execute job
|
178
|
+
runner.execute()
|
179
|
+
except Exception as exception:
|
180
|
+
# Log Error
|
181
|
+
logger.exception(
|
182
|
+
f"AgentRunner exception while running executing customer job: {exception}"
|
183
|
+
)
|
184
|
+
self.primitive.jobs.job_run_update(
|
185
|
+
id=job_run["id"],
|
186
|
+
status="request_completed",
|
187
|
+
conclusion="failure",
|
188
|
+
)
|
178
189
|
finally:
|
179
190
|
# Clean up
|
180
191
|
shutil.rmtree(path=downloaded_git_repository_dir)
|
primitive/agent/runner.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: primitive
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.1
|
4
4
|
Project-URL: Documentation, https://github.com//primitivecorp/primitive-cli#readme
|
5
5
|
Project-URL: Issues, https://github.com//primitivecorp/primitive-cli/issues
|
6
6
|
Project-URL: Source, https://github.com//primitivecorp/primitive-cli
|
@@ -1,13 +1,13 @@
|
|
1
|
-
primitive/__about__.py,sha256=
|
1
|
+
primitive/__about__.py,sha256=35gFZI1DLl6m1EtBovM9NL6lrmA-BCOe4IxZ2XQyJu0,129
|
2
2
|
primitive/__init__.py,sha256=bwKdgggKNVssJFVPfKSxqFMz4IxSr54WWbmiZqTMPNI,106
|
3
3
|
primitive/cli.py,sha256=CiI60bG3UZyNFuLTpchr0KeJRG5SALj455Ob11CegGE,2412
|
4
4
|
primitive/client.py,sha256=PPyIQRvKKSqCF9RRF5mJJ4Vqqolpzy1YXqffNLKIvAA,2390
|
5
5
|
primitive/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
primitive/agent/actions.py,sha256=
|
6
|
+
primitive/agent/actions.py,sha256=vNe46YvSD5RXZaOa0pXD6b5T9V3pG23TUq-U3c4j_Xg,8487
|
7
7
|
primitive/agent/commands.py,sha256=-dVDilELfkGfbZB7qfEPs77Dm1oT62qJj4tsIk4KoxI,254
|
8
8
|
primitive/agent/process.py,sha256=32eoj0W1-LG-9xxeHia-jk9jTah1cnmjCYnvczgXYGU,3538
|
9
9
|
primitive/agent/provision.py,sha256=rmwnro1K5F8mwtd45XAq7RVQmpDWnbBCQ8X_qgWhm3M,1546
|
10
|
-
primitive/agent/runner.py,sha256=
|
10
|
+
primitive/agent/runner.py,sha256=nuRtwEHl41Ic2BM8WhAwuJ2bCrtt7GxjIa9JSw9WTF8,9631
|
11
11
|
primitive/agent/uploader.py,sha256=OkgwXhWKoECOJnW_ZmpzmUS_cpb-orC_uebNcmf5byw,2948
|
12
12
|
primitive/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
13
|
primitive/auth/actions.py,sha256=MPsG9LcKcOPwA7gZ9Ewk0PZJhTQvIrGfODdz4GxSzgA,999
|
@@ -93,8 +93,8 @@ primitive/utils/printer.py,sha256=f1XUpqi5dkTL3GWvYRUGlSwtj2IxU1q745T4Fxo7Tn4,37
|
|
93
93
|
primitive/utils/shell.py,sha256=vpjr2Y7UQGYOvPGa6_RYXPPjqScfa9k7kT3tugF9h4Y,1837
|
94
94
|
primitive/utils/text.py,sha256=XiESMnlhjQ534xE2hMNf08WehE1SKaYFRNih0MmnK0k,829
|
95
95
|
primitive/utils/verible.py,sha256=Zb5NUISvcaIgEvgCDBWr-GCoceMa79Tcwvr5Wl9lfnA,2252
|
96
|
-
primitive-0.2.
|
97
|
-
primitive-0.2.
|
98
|
-
primitive-0.2.
|
99
|
-
primitive-0.2.
|
100
|
-
primitive-0.2.
|
96
|
+
primitive-0.2.1.dist-info/METADATA,sha256=SkWObx5lg3EFazkPqt6KrYiVItNl7l8IW5FVW5Fkow4,3669
|
97
|
+
primitive-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
98
|
+
primitive-0.2.1.dist-info/entry_points.txt,sha256=p1K8DMCWka5FqLlqP1sPek5Uovy9jq8u51gUsP-z334,48
|
99
|
+
primitive-0.2.1.dist-info/licenses/LICENSE.txt,sha256=B8kmQMJ2sxYygjCLBk770uacaMci4mPSoJJ8WoDBY_c,1098
|
100
|
+
primitive-0.2.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|