primitive 0.2.9__py3-none-any.whl → 0.2.10__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/runner.py +26 -10
- {primitive-0.2.9.dist-info → primitive-0.2.10.dist-info}/METADATA +1 -1
- {primitive-0.2.9.dist-info → primitive-0.2.10.dist-info}/RECORD +7 -7
- {primitive-0.2.9.dist-info → primitive-0.2.10.dist-info}/WHEEL +0 -0
- {primitive-0.2.9.dist-info → primitive-0.2.10.dist-info}/entry_points.txt +0 -0
- {primitive-0.2.9.dist-info → primitive-0.2.10.dist-info}/licenses/LICENSE.txt +0 -0
primitive/__about__.py
CHANGED
primitive/agent/runner.py
CHANGED
@@ -187,11 +187,19 @@ class Runner:
|
|
187
187
|
|
188
188
|
# Logs can be produced even if no artifact stores are created for the job run.
|
189
189
|
job_run_logs_cache = get_logs_cache(self.job_run["id"])
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
190
|
+
has_walk = getattr(job_run_logs_cache, "walk", None)
|
191
|
+
if has_walk:
|
192
|
+
log_files = [
|
193
|
+
file
|
194
|
+
for _, _, current_path_files in job_run_logs_cache.walk()
|
195
|
+
for file in current_path_files
|
196
|
+
]
|
197
|
+
else:
|
198
|
+
log_files = [
|
199
|
+
file
|
200
|
+
for _, _, current_path_files in os.walk(job_run_logs_cache)
|
201
|
+
for file in current_path_files
|
202
|
+
]
|
195
203
|
|
196
204
|
number_of_files_produced += len(log_files)
|
197
205
|
|
@@ -199,11 +207,19 @@ class Runner:
|
|
199
207
|
return number_of_files_produced
|
200
208
|
|
201
209
|
job_run_artifacts_cache = get_artifacts_cache(self.job_run["id"])
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
210
|
+
has_walk = getattr(job_run_artifacts_cache, "walk", None)
|
211
|
+
if has_walk:
|
212
|
+
artifact_files = [
|
213
|
+
file
|
214
|
+
for _, _, current_path_files in job_run_artifacts_cache.walk()
|
215
|
+
for file in current_path_files
|
216
|
+
]
|
217
|
+
else:
|
218
|
+
artifact_files = [
|
219
|
+
file
|
220
|
+
for _, _, current_path_files in os.walk(job_run_artifacts_cache)
|
221
|
+
for file in current_path_files
|
222
|
+
]
|
207
223
|
|
208
224
|
number_of_files_produced += len(artifact_files)
|
209
225
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: primitive
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.10
|
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,11 +1,11 @@
|
|
1
|
-
primitive/__about__.py,sha256=
|
1
|
+
primitive/__about__.py,sha256=GhNBI3l8-Fbx4DkjexXgyhbGe2cWuYgQDdzAhhACDvE,130
|
2
2
|
primitive/__init__.py,sha256=bwKdgggKNVssJFVPfKSxqFMz4IxSr54WWbmiZqTMPNI,106
|
3
3
|
primitive/cli.py,sha256=58fn6ayVSC1f4hLKx3FUNT9CkuPLva8dFQg0_YUwpio,2410
|
4
4
|
primitive/client.py,sha256=PPyIQRvKKSqCF9RRF5mJJ4Vqqolpzy1YXqffNLKIvAA,2390
|
5
5
|
primitive/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
primitive/agent/actions.py,sha256=5Lmqxsf24eH6BDEesbJbn1Xj-8ifVlQ_Y3QR8xpkFtM,6869
|
7
7
|
primitive/agent/commands.py,sha256=-dVDilELfkGfbZB7qfEPs77Dm1oT62qJj4tsIk4KoxI,254
|
8
|
-
primitive/agent/runner.py,sha256=
|
8
|
+
primitive/agent/runner.py,sha256=0p-zObkTuSF0H7HQUBnz0jCtwKCERzABJobQhFJfrY4,13944
|
9
9
|
primitive/agent/uploader.py,sha256=6pjUyb1LyUCpHBE6p13pRpXxy6iDxu14qJGvE3R6cVo,3155
|
10
10
|
primitive/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
primitive/auth/actions.py,sha256=MPsG9LcKcOPwA7gZ9Ewk0PZJhTQvIrGfODdz4GxSzgA,999
|
@@ -88,8 +88,8 @@ primitive/utils/memory_size.py,sha256=4xfha21kW82nFvOTtDFx9Jk2ZQoEhkfXii-PGNTpIU
|
|
88
88
|
primitive/utils/printer.py,sha256=f1XUpqi5dkTL3GWvYRUGlSwtj2IxU1q745T4Fxo7Tn4,370
|
89
89
|
primitive/utils/shell.py,sha256=jWzb7ky7p987dJas6ZvarK3IJNZ5cwBXcryRWb9Uh6U,2072
|
90
90
|
primitive/utils/text.py,sha256=XiESMnlhjQ534xE2hMNf08WehE1SKaYFRNih0MmnK0k,829
|
91
|
-
primitive-0.2.
|
92
|
-
primitive-0.2.
|
93
|
-
primitive-0.2.
|
94
|
-
primitive-0.2.
|
95
|
-
primitive-0.2.
|
91
|
+
primitive-0.2.10.dist-info/METADATA,sha256=LB4jc6D9OV1PUeLtYV6sXwc_XA7Hiu7jZBfzuxaqdN0,3670
|
92
|
+
primitive-0.2.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
93
|
+
primitive-0.2.10.dist-info/entry_points.txt,sha256=p1K8DMCWka5FqLlqP1sPek5Uovy9jq8u51gUsP-z334,48
|
94
|
+
primitive-0.2.10.dist-info/licenses/LICENSE.txt,sha256=B8kmQMJ2sxYygjCLBk770uacaMci4mPSoJJ8WoDBY_c,1098
|
95
|
+
primitive-0.2.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|