Skip to content

Make job_status report proper percentages #1176

Description

@mattias-p

Update job_status to report the closest integer percentage of test cases completed instead of the weird pseudo-percentage used by test_progress.

We could support both at the same time by:

  1. having the database store progress in the range 0–9900 inclusive,
  2. having job_status return n / 99, and
  3. having test_progress return if created { 0 } else if running { max(1, n/100) } else { 100 }.

Alternatives

  • We could let job_status round its percentage to the closest integer instead of always rounding down.
  • We could let job_status keep reporting weird pseudo-percentages until we remove test_progress, and then update job_status to report proper percentages.
  • We could leave job_status as is and let the meaning of the progress percentage remain vague.
  • We could leave job_status as is and just document its progress values in all their weridness.

Stabilization

Tracking issue

Affected interfaces

Compatibly changed:

  • job_status

Dependencies

Overlapping proposals

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions