Page MenuHomePhabricator

[jobs-api] can't list jobs for certain old jobs
Closed, ResolvedPublicBUG REPORT

Description

While working on something else I found a rare case where the jobs of certain tools can't be listed because for some reason we can't parse the cron expression.

The tools in question are coverme and trainbow on tools (seems like they are the only ones).

Steps to replicate the issue (include links if applicable):

  • ssh login.toolforge.org
  • sudo -i -u tools.coverme
  • toolforge jobs list

What happens?:

ERROR: TjfCliError: Failed to parse cron expression '@daily': expected to find 5 space-separated values, found 1
ERROR: Please report this issue to the Toolforge admins if it persists: https://w.wiki/6Zuu

What should have happened instead?:
should return a list of running jobs

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
tools-harbor.wmcloud.org/toolforge/jobs-api:image-0.0.366-20250411193858-11bbceab

Event Timeline

Raymond_Ndibe renamed this task from [jobs-api] rare Bug where jobs for certain tools can't be listed to [jobs-api] can't list jobs for certain old jobs.Apr 14 2025, 12:28 AM
Raymond_Ndibe claimed this task.
Raymond_Ndibe triaged this task as High priority.
Raymond_Ndibe changed the task status from Open to In Progress.Apr 14 2025, 12:35 AM

group_203_bot_0baec7e1908816bc38475b0da887f76c opened https://gitlab.wikimedia.org/repos/cloud/toolforge/toolforge-deploy/-/merge_requests/744

jobs-api: bump to 0.0.367-20250415011142-c4e5b2cb

Raymond_Ndibe reopened this task as In Progress.

group_203_bot_f4d95069bb2675e4ce1fff090c1c1620 opened https://gitlab.wikimedia.org/repos/cloud/toolforge/toolforge-deploy/-/merge_requests/745

jobs-api: bump to 0.0.368-20250415125256-59bf37cb