primitive 0.1.44__py3-none-any.whl → 0.1.46__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 CHANGED
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2024-present Dylan Stein <dylan@primitive.tech>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.1.44"
4
+ __version__ = "0.1.46"
@@ -19,6 +19,8 @@ class Process:
19
19
 
20
20
  def start(self):
21
21
  # Start the process
22
+ print(f"cmd: {self.cmd}")
23
+ print(f"workdir: {self.workdir}")
22
24
  self.process = Popen(
23
25
  self.cmd, cwd=self.workdir, stdout=PIPE, stderr=PIPE, text=True
24
26
  )
primitive/agent/runner.py CHANGED
@@ -116,7 +116,7 @@ class AgentRunner:
116
116
 
117
117
  sleep(5)
118
118
 
119
- result = proc.finish()
119
+ returncode = proc.finish()
120
120
  total_errors += proc.errors
121
121
 
122
122
  # Collect artifacts
@@ -124,15 +124,14 @@ class AgentRunner:
124
124
  self.collect_artifacts(step)
125
125
 
126
126
  # Check if we have a good result
127
- if not result:
128
- logger.info(f"Job failed: {result}")
127
+ if returncode > 0:
129
128
  conclusion = "failure"
130
129
  break
131
130
 
132
131
  if not conclusion and total_errors == 0:
133
132
  conclusion = "success"
134
133
  else:
135
- logger.info(f"Job failed, number of errors: {total_errors}")
134
+ logger.error(f"Job failed with {total_errors} errors.")
136
135
  conclusion = "failure"
137
136
 
138
137
  self.primitive.jobs.job_run_update(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: primitive
3
- Version: 0.1.44
3
+ Version: 0.1.46
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=eCjk6mOnVCCBa9X77fNe9aZ0ysspKIR87_jlCVWpVhA,130
1
+ primitive/__about__.py,sha256=sRMwBrZLRft1UkcHWA_mftlqcuHgEAEN5ognvvffRL0,130
2
2
  primitive/__init__.py,sha256=bwKdgggKNVssJFVPfKSxqFMz4IxSr54WWbmiZqTMPNI,106
3
3
  primitive/cli.py,sha256=VQPSewC6ouGdEG9W1gllawGJTydpOY0Lzg7LURXcqQg,2374
4
4
  primitive/client.py,sha256=vSJkifx450czuLvu0f2o-viSCC0p2f1UicA-2P5cJAw,2188
5
5
  primitive/agent/actions.py,sha256=d_garPm3rl5uMEu-g681yMYEnBqfUDeEPeeKl_VEd64,5489
6
6
  primitive/agent/commands.py,sha256=-dVDilELfkGfbZB7qfEPs77Dm1oT62qJj4tsIk4KoxI,254
7
- primitive/agent/process.py,sha256=hYjjZL1DoUUVDJmORewYfLhWptLX_4e47DVW1i0PrKw,2252
8
- primitive/agent/runner.py,sha256=jkeOEpvh-jcXV1IS5RupiXh1d_mHpsrlS9foN-gAGzo,4963
7
+ primitive/agent/process.py,sha256=UckQWxj-JL_Su5tvFXXYcFCeAQMao_k2-RVFYPSj5A0,2328
8
+ primitive/agent/runner.py,sha256=rsJmK2nwCrTQ61AwWlWA34I9AqsQLf_QR5HqtT6Ikpw,4913
9
9
  primitive/agent/uploader.py,sha256=ngbynmQzxKVNMp7VWkTWW7vZIN_rnnRzYC6OAL21n1k,1378
10
10
  primitive/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  primitive/auth/actions.py,sha256=2vZEC3LLAXj6eBBmt_2OEDEcBIb3uLkkNjgbZTIaQsY,1095
@@ -45,8 +45,8 @@ primitive/utils/memory_size.py,sha256=4xfha21kW82nFvOTtDFx9Jk2ZQoEhkfXii-PGNTpIU
45
45
  primitive/utils/printer.py,sha256=f1XUpqi5dkTL3GWvYRUGlSwtj2IxU1q745T4Fxo7Tn4,370
46
46
  primitive/utils/shell.py,sha256=-7UjQaBqSGHzEEyX8pNjeYFFP0P3lVnDV0OkgPz1qHU,1050
47
47
  primitive/utils/verible.py,sha256=r7c_hfqvL0UicMmIzK3Cy_BfZI1ZpcfBeLqKEWFWqJo,2252
48
- primitive-0.1.44.dist-info/METADATA,sha256=z5ImzTPezggbJslbsEuGlEYSEQzHOLcLKe4Gat0vkoQ,3782
49
- primitive-0.1.44.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
50
- primitive-0.1.44.dist-info/entry_points.txt,sha256=p1K8DMCWka5FqLlqP1sPek5Uovy9jq8u51gUsP-z334,48
51
- primitive-0.1.44.dist-info/licenses/LICENSE.txt,sha256=B8kmQMJ2sxYygjCLBk770uacaMci4mPSoJJ8WoDBY_c,1098
52
- primitive-0.1.44.dist-info/RECORD,,
48
+ primitive-0.1.46.dist-info/METADATA,sha256=8Yz7jh7AsSAH4LMXFrThBpKJYnSVMlknw2rq664pn0U,3782
49
+ primitive-0.1.46.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
50
+ primitive-0.1.46.dist-info/entry_points.txt,sha256=p1K8DMCWka5FqLlqP1sPek5Uovy9jq8u51gUsP-z334,48
51
+ primitive-0.1.46.dist-info/licenses/LICENSE.txt,sha256=B8kmQMJ2sxYygjCLBk770uacaMci4mPSoJJ8WoDBY_c,1098
52
+ primitive-0.1.46.dist-info/RECORD,,