Skip to content
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

edit runtime: broadcast errors not being displayed to user #2051

Open
oliver-sanders opened this issue Jan 23, 2025 · 2 comments
Open

edit runtime: broadcast errors not being displayed to user #2051

oliver-sanders opened this issue Jan 23, 2025 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@oliver-sanders
Copy link
Member

Broadcasts can fail due to invalid values, e.g:

$ cylc broadcast generic -n root -s 'run mode = simulation'
IllegalValueError: (type=option) run mode = simulation
$ echo $?
1

$ cylc broadcast generic -s 'execution retry delays = a*b'
IllegalValueError: (type=list) execution retry delays = a*b - (invalid literal for int() with base 10: 'a')
$ echo $?
1

These errors don't seem to be getting through to the UI (either in dev or production mode).

@oliver-sanders oliver-sanders added the bug Something isn't working label Jan 23, 2025
@oliver-sanders oliver-sanders added this to the 2.8.0 milestone Jan 23, 2025
@MetRonnie
Copy link
Member

I think this is cylc/cylc-flow#6429

@oliver-sanders
Copy link
Member Author

After a bit of digging, the broadcast command does not report issues back in the GraphQL errors field because it supports mixed results where some broadcasts worked and others did not.

Instead, broadcast reports back lists of cycle points / namespaces which were valid, vs ones which were not. I have put up a draft cylc-flow PR to extend this to also cover settings (the example in the OP). The Edit Runtime form will need to inspect the result returned by the broadcast mutation in order to highlight any parts of the broadcast which could not be enacted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants