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

Don't tokenize --pre=all #43

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

wxtim
Copy link

@wxtim wxtim commented Feb 8, 2024

leading to a warning that the task was not dependent on "all".

Bug created at 1c656ef

@wxtim wxtim marked this pull request as draft February 8, 2024 12:42
a warning that the task was not dependent on "all".
@wxtim wxtim force-pushed the hilary.cylc-set-task.all-bug branch from a8586f5 to f639513 Compare February 8, 2024 12:58
@wxtim wxtim marked this pull request as ready for review February 8, 2024 12:59
for prereq in (prereqs or [])
]
_prereqs: 'Union[List[Tokens], Literal["all"]]'
if prereqs == ['all']:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No point in carrying around the extra data structure of the list.

@@ -1393,8 +1393,8 @@ async def test_set_outputs_live(
'runtime': {
'foo': {
'outputs': {
'x': 'x',
'y': 'y'
'x': 'xylophone',
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this change reveals a second bug caused by the message and the output having the same value.

I'm working on getting to the bottom of the why, but it looks to me like it's in the three satisfy_me methods.

prerequisite.satisfied seems to use a key of (cycle, name, message) (I checked on master too), but the tokens being passed to this method are looking for (cycle, name, output).

@hjoliver
Copy link
Owner

Thanks @wxtim - I'll merge this then look at the other bug you've flagged here.

@hjoliver hjoliver merged commit 6ddc09f into hjoliver:cylc-set-task Feb 15, 2024
17 of 25 checks passed
@wxtim wxtim deleted the hilary.cylc-set-task.all-bug branch February 20, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants