primitive 0.1.20__py3-none-any.whl → 0.1.21__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 +11 -7
- primitive/jobs/actions.py +1 -0
- {primitive-0.1.20.dist-info → primitive-0.1.21.dist-info}/METADATA +1 -1
- {primitive-0.1.20.dist-info → primitive-0.1.21.dist-info}/RECORD +8 -8
- {primitive-0.1.20.dist-info → primitive-0.1.21.dist-info}/WHEEL +0 -0
- {primitive-0.1.20.dist-info → primitive-0.1.21.dist-info}/entry_points.txt +0 -0
- {primitive-0.1.20.dist-info → primitive-0.1.21.dist-info}/licenses/LICENSE.txt +0 -0
primitive/__about__.py
CHANGED
primitive/agent/actions.py
CHANGED
@@ -65,6 +65,14 @@ class Agent(BaseAction):
|
|
65
65
|
)
|
66
66
|
)
|
67
67
|
|
68
|
+
source_dir = downloaded_git_repository_dir.joinpath(
|
69
|
+
job_run["jobSettings"]["rootDirectory"]
|
70
|
+
)
|
71
|
+
|
72
|
+
cmd = ("make",)
|
73
|
+
if containerArgs := job_run["jobSettings"]["containerArgs"]:
|
74
|
+
cmd = tuple(containerArgs.split(" "))
|
75
|
+
|
68
76
|
match job_run["job"]["slug"]:
|
69
77
|
case "lint":
|
70
78
|
logger.debug("Executing Lint Job")
|
@@ -74,7 +82,7 @@ class Agent(BaseAction):
|
|
74
82
|
)
|
75
83
|
|
76
84
|
result, message = self.primitive.lint.execute(
|
77
|
-
source=
|
85
|
+
source=source_dir
|
78
86
|
)
|
79
87
|
if result:
|
80
88
|
conclusion = "success"
|
@@ -95,17 +103,13 @@ class Agent(BaseAction):
|
|
95
103
|
job_run["id"], status="request_in_progress"
|
96
104
|
)
|
97
105
|
|
98
|
-
cmd = ("make",)
|
99
|
-
if containerArgs := job_run["jobSettings"]["containerArgs"]:
|
100
|
-
cmd = tuple(containerArgs.split(" "))
|
101
|
-
|
102
106
|
result, message = self.primitive.sim.execute(
|
103
|
-
source=
|
107
|
+
source=source_dir, cmd=cmd
|
104
108
|
)
|
105
109
|
|
106
110
|
# Attempt artifact collection
|
107
111
|
self.primitive.sim.collect_artifacts(
|
108
|
-
source=
|
112
|
+
source=source_dir,
|
109
113
|
job_run_id=job_run["id"],
|
110
114
|
organization_id=job_run["organization"]["id"],
|
111
115
|
)
|
primitive/jobs/actions.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: primitive
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.21
|
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,8 +1,8 @@
|
|
1
|
-
primitive/__about__.py,sha256=
|
1
|
+
primitive/__about__.py,sha256=JiIZ_OJnMBk7JQxWOZ-Ln2mvyV5v9BfpDzkeFWd4wQ0,129
|
2
2
|
primitive/__init__.py,sha256=bwKdgggKNVssJFVPfKSxqFMz4IxSr54WWbmiZqTMPNI,106
|
3
3
|
primitive/cli.py,sha256=VQPSewC6ouGdEG9W1gllawGJTydpOY0Lzg7LURXcqQg,2374
|
4
4
|
primitive/client.py,sha256=SFPG4H2wJao8euGdnYp-l7dk_fDpWeVn2aT2WNJUAqo,2370
|
5
|
-
primitive/agent/actions.py,sha256=
|
5
|
+
primitive/agent/actions.py,sha256=CFb44aKPG2IF4c2Jqb0sBj4iA7VCtojcaGHgWdrtLYE,5407
|
6
6
|
primitive/agent/commands.py,sha256=-dVDilELfkGfbZB7qfEPs77Dm1oT62qJj4tsIk4KoxI,254
|
7
7
|
primitive/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
8
|
primitive/auth/actions.py,sha256=N2bGcwXNsB89pzs66gF9A5_WzUScY5fhfOyWixqo2y8,1054
|
@@ -20,7 +20,7 @@ primitive/graphql/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
20
20
|
primitive/graphql/sdk.py,sha256=BhCGmDtc4sNnH8CxbQSJyFwOZ-ZSqMtjsxMB3JRBhPw,1456
|
21
21
|
primitive/hardware/actions.py,sha256=Ea3_2E3F_3WapV60g_mOIcpXhadoknwihR7slXyUWtk,18840
|
22
22
|
primitive/hardware/commands.py,sha256=QE7LLeFdfOqlvz3JwdwJJRZAY3fHI1zB9kYmmDajpq0,1477
|
23
|
-
primitive/jobs/actions.py,sha256=
|
23
|
+
primitive/jobs/actions.py,sha256=1Mc-bg4nCd5qiKC-hPODveTPZwwo0Kztl5BuidLr-Sc,7718
|
24
24
|
primitive/jobs/commands.py,sha256=MxPCkBEYW_eLNqgCRYeyj7ZcLOFAWfpVZlqDR2Y_S0o,830
|
25
25
|
primitive/lint/actions.py,sha256=fGnNlcD_B-E0SvRUTvTdSlTm2kCQUTrlBLB0mt1sXKM,2268
|
26
26
|
primitive/lint/commands.py,sha256=3CZvkOEMpJspJWmaQzA5bpPKx0_VCijQIXA9l-eTnZE,487
|
@@ -41,8 +41,8 @@ primitive/utils/memory_size.py,sha256=4xfha21kW82nFvOTtDFx9Jk2ZQoEhkfXii-PGNTpIU
|
|
41
41
|
primitive/utils/printer.py,sha256=f1XUpqi5dkTL3GWvYRUGlSwtj2IxU1q745T4Fxo7Tn4,370
|
42
42
|
primitive/utils/shell.py,sha256=-7UjQaBqSGHzEEyX8pNjeYFFP0P3lVnDV0OkgPz1qHU,1050
|
43
43
|
primitive/utils/verible.py,sha256=QYczN1IvxODfj4jeq0nqjFuF0Oi0Zdx-Q32ySOJgcw8,2205
|
44
|
-
primitive-0.1.
|
45
|
-
primitive-0.1.
|
46
|
-
primitive-0.1.
|
47
|
-
primitive-0.1.
|
48
|
-
primitive-0.1.
|
44
|
+
primitive-0.1.21.dist-info/METADATA,sha256=MherRu1tZf7ePM5Inx7ebfvihZOrYKJlxMgSYQrTt80,1818
|
45
|
+
primitive-0.1.21.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
46
|
+
primitive-0.1.21.dist-info/entry_points.txt,sha256=p1K8DMCWka5FqLlqP1sPek5Uovy9jq8u51gUsP-z334,48
|
47
|
+
primitive-0.1.21.dist-info/licenses/LICENSE.txt,sha256=B8kmQMJ2sxYygjCLBk770uacaMci4mPSoJJ8WoDBY_c,1098
|
48
|
+
primitive-0.1.21.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|