Skip to content

Keep the job name a config sets, and add a job-name input - #12

Merged
rzonyx merged 1 commit into
mainfrom
spec-job-name-and-readme
Oct 23, 2026
Merged

rzonyx merged 1 commit into
mainfrom
spec-job-name-and-readme

Conversation

@rzonyx

@rzonyx rzonyx commented Oct 23, 2026

Copy link
Copy Markdown
Contributor
  • A config that sets job_name now keeps it. The action passes no --job-name, and job-dir is <jobs-dir>/<job_name>, so a job spec runs under its own name.
  • A new job-name input sets a name of your own. --job-name in args is refused with a pointer to job-name.
  • Unchanged: path and dataset runs, and configs without job_name, still run as <job id>-<time>-<random>, and the default artifact name is the same.
  • Docs: how to run a spec (REFERENCE "More examples"). dataset without registry uses hbench's default registry. hbench tasks check needs no key, but hbench check does. What a score with n-tasks covers. The version examples now show v0.3.5.
  • CI: a run-config job (named, renamed and unnamed configs) and unit tests for reading job_name.

This is a minor release (v1.2.0): it adds an input, and changes the job name only for configs that set one.

run.sh passed --job-name "<job id>-<time>-<random>" on every run, so a
config's job_name was always replaced. A job spec that must run under
its own name, as a server that checks the job against the spec
requires, could not run through the action, and --job-name in args
only made hbench reject the duplicate flag.

Now a config that sets job_name keeps it: the action reads it (JSON, or
YAML with or without PyYAML), passes no --job-name and points job-dir
at <jobs-dir>/<job_name>. The new job-name input sets a name of your
own. Configs without job_name, path and dataset runs keep the generated
name, and the default artifact name is unchanged. --job-name in args
is refused with a pointer to job-name.

The docs say how to run a spec, that a dataset with no registry comes
from hbench's default registry, which of `hbench tasks check` and
`hbench check` needs a key, and what a score with n-tasks covers.
@rzonyx
rzonyx merged commit 7193078 into main Oct 23, 2026
15 checks passed
@rzonyx
rzonyx deleted the spec-job-name-and-readme branch October 23, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant