@andrian.yablonskyy/thub-agent 1.0.17 → 1.0.18
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.
- package/README.md +1 -0
- package/README.pdf +0 -0
- package/config.json +0 -1
- package/package.json +1 -1
- package/src/cli.js +6 -1
package/README.md
CHANGED
|
@@ -48,6 +48,7 @@ Key options for `thub run`:
|
|
|
48
48
|
| `--type hw\|sw` | Required resource type. |
|
|
49
49
|
| `--board <name>` / `--label <l>` | Required labels (repeatable). |
|
|
50
50
|
| `--group <groupId>` | Restrict scheduling to resources that are members of this group. Falls back to `THUB_GROUP` / `thub config set group <id>`. |
|
|
51
|
+
| `--client <name\|id>` | Run on this specific Client (resource name or id) only; the job waits in that Client's queue even if other matching resources are idle. |
|
|
51
52
|
| `--user <name>` | Free-text job owner — a label, not an identity. Falls back to `THUB_USER` / `thub config set user <name>`. |
|
|
52
53
|
| `--image <url>` | Firmware/build image URL, fetched by the Client. |
|
|
53
54
|
| `--sha256 <hex>` | Expected sha256 of `--image`; the Client verifies it before flashing/running. |
|
package/README.pdf
ADDED
|
Binary file
|
package/config.json
CHANGED
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -69,6 +69,11 @@ program
|
|
|
69
69
|
'Restrict scheduling to resources that are members of this group (§13.1). ' +
|
|
70
70
|
'Overrides THUB_GROUP / config file; leave unset for an unconstrained run.'
|
|
71
71
|
)
|
|
72
|
+
.option(
|
|
73
|
+
'--client <nameOrId>',
|
|
74
|
+
'Run on this specific Client (resource name or id) only; the job waits in that Client\'s queue ' +
|
|
75
|
+
'even if other matching resources are idle.'
|
|
76
|
+
)
|
|
72
77
|
.option(
|
|
73
78
|
'--user <name>',
|
|
74
79
|
'Free-text job owner, shown on the Client and the dashboard to tell whose job is whose ' +
|
|
@@ -108,7 +113,7 @@ program
|
|
|
108
113
|
user = resolveUser({ user: opts.user }),
|
|
109
114
|
|
|
110
115
|
spec = {
|
|
111
|
-
target: { type: opts.type, labels, ...(group ? { group } : {}) },
|
|
116
|
+
target: { type: opts.type, labels, ...(group ? { group } : {}), ...(opts.client ? { client: opts.client } : {}) },
|
|
112
117
|
firmware: { url: opts.image, ...(opts.sha256 ? { sha256: opts.sha256 } : {}) },
|
|
113
118
|
tests: { url: opts.tests, suite: opts.suite, args: opts.arg },
|
|
114
119
|
timeoutSec: parseDurationSec(opts.timeout),
|