Skip to content

Runs: a job root given with a trailing slash loses its folder name in view ids #773

Description

@harenome

Priority

P3

Components

  • Runs

Evidence

On main (19d0ca9), a folder pair of two agents:

$ nullius runs list jobs/pair
pair~a-m-1
pair~b-m-2
$ nullius runs list jobs/pair/
~a-m-1
~b-m-2
$ nullius runs show jobs/pair/ pair~a-m-1
no job named 'pair~a-m-1' under jobs/pair/ (jobs there: ~a-m-1, ~b-m-2)
exit 3

parse_job takes os.path.basename of the root as given: empty for a path that ends in /. A view's id therefore changes with how its root is spelled: runs show jobs/pair/ '~a-m-1' works, pair~a-m-1 does not.

Reproduction

  1. A Harbor job folder jobs/pair whose config.json lists two agents.
  2. nullius runs list jobs/pair/.

Expected

The same ids with or without the slash.

Acceptance

  • runs list and runs show give pair~... for jobs/pair/.
  • A test covers both spellings.

Dependencies and related

#275

Activity

  1. added
    bug
    P3
    on Dec 3, 2026
  2. added theissue type on Dec 3, 2026
  3. self-assigned this
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions