@andrian.yablonskyy/thub-agent 1.0.18 → 1.0.20
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 +0 -1
- package/package.json +1 -1
- package/src/cli.js +1 -4
package/README.md
CHANGED
|
@@ -57,7 +57,6 @@ Key options for `thub run`:
|
|
|
57
57
|
| `--timeout <dur>` | e.g. `30m`, default `30m`. |
|
|
58
58
|
| `--priority <n>` | 0–100; CI defaults to 50, CLI to 60 so a developer is not starved by a busy pipeline. |
|
|
59
59
|
| `--meta <key=value>` | Arbitrary metadata stored on the job (repeatable) — CI job ids, git coordinates, anything else worth attaching to the run. |
|
|
60
|
-
| `--source ci\|cli` | Override auto-detected job source (defaults to `ci` when `$GITHUB_ACTIONS=true`, else `cli`). |
|
|
61
60
|
| `--dry-run` | Exercise the full pipeline without the Client executing anything for real. |
|
|
62
61
|
| `--wait` | Do not detach on job end; exit with the job's verdict code (used in CI). |
|
|
63
62
|
| `--detach` | Print the job id and exit immediately. |
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -96,7 +96,6 @@ program
|
|
|
96
96
|
collectRepeatable,
|
|
97
97
|
[]
|
|
98
98
|
)
|
|
99
|
-
.option('--source <ci|cli>', 'Override auto-detected job source')
|
|
100
99
|
.option(
|
|
101
100
|
'--dry-run',
|
|
102
101
|
'Exercise the full pipeline (schedule, accept, state transitions, logs, artifact, result) ' +
|
|
@@ -106,7 +105,6 @@ program
|
|
|
106
105
|
.action(async (opts) => {
|
|
107
106
|
try {
|
|
108
107
|
const c = client(),
|
|
109
|
-
source = opts.source || (process.env.GITHUB_ACTIONS === 'true' ? 'ci' : 'cli'),
|
|
110
108
|
labels = [...(opts.board ? [`board:${opts.board}`] : []), ...opts.label],
|
|
111
109
|
meta = Object.fromEntries(opts.meta.map((kv) => kv.split(/=(.*)/s).slice(0, 2))),
|
|
112
110
|
group = resolveGroup({ group: opts.group }),
|
|
@@ -117,8 +115,7 @@ program
|
|
|
117
115
|
firmware: { url: opts.image, ...(opts.sha256 ? { sha256: opts.sha256 } : {}) },
|
|
118
116
|
tests: { url: opts.tests, suite: opts.suite, args: opts.arg },
|
|
119
117
|
timeoutSec: parseDurationSec(opts.timeout),
|
|
120
|
-
|
|
121
|
-
source,
|
|
118
|
+
...(opts.priority !== undefined ? { priority: opts.priority } : {}),
|
|
122
119
|
...(user ? { user } : {}),
|
|
123
120
|
...(Object.keys(meta).length ? { meta } : {}),
|
|
124
121
|
...(opts.dryRun ? { dryRun: true } : {})
|