-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ID tokeniser bug #6110
Comments
Should be ok to apply that diff. |
Actually, the second part of my diff is probably wrong (cycle selector), but made me think: Does the selector delimiter ( |
Oh dammit, of course, no we cannot support I don't think it had occurred to me that it was even possible to do so. It would be kinda possible to hack this in along the lines of your diff above, but really nasty (you would have to attempt to parse the cycle+selector to tell if together they form a valid cycle point, then implement special handling) |
Let's just disallow that format, across the board. This still remains a bug though, because the CLI currently accepts the format but handles it badly. |
@oliver-sanders - are you happy for me to block this cycle point format on the CLI? |
It already is as the result of this issue. No need for further action. |
It is not blocked though, it leads to the command failing to match tasks.
|
This is a valid ISO8601 format:
2050-01-01T00:00Z
but the tokeniser cuts the:00Z
bit off the end, which ends up with the wrong result if your system clock is not UTC or if you have non-zero minutes.We disallow this a cycle point format in workflows because
:
is not a valid character in filenames, but cycle points can be specified on the command line too and then converted to the workflow format.We have a functional test that does this, and fails for non-UTC clocks:
tests/f/workflow-state/06a-noformat.t
(for thecylc workflow-state
command).This diff seems to fix the tokeniser (don't disallow ':' in cycle point):
Alternatively we might want to detect the
:
here and raise an error instead, but I can't see any harm in allowing this user-friendly format in CLI and UI queries?The text was updated successfully, but these errors were encountered: