-
Notifications
You must be signed in to change notification settings - Fork 93
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
Problem: replacement of "suite" with "workflow" breaks review. #4233
Problem: replacement of "suite" with "workflow" breaks review. #4233
Conversation
Fix: Re-write method `is_cylc8`.
cedb75c
to
5cf9ee9
Compare
suite_info = self._db_exec( | ||
user_name, suite_name, 'SELECT * FROM suite_params', [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would fail for workflows run with Cylc 8 after the bulk renaming of "suite" → "workflow"
|
||
if cylc_version and cylc_version[0] == '8': | ||
suite_info = [i[0] for i in suite_info] | ||
if 'workflow_params' in suite_info: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may cause problems with very early versions of Cylc 8 (before the renaming of "suite_params" → "workflow_param"), but should be OK from now.
I think this should be on the 7.8.x milestone? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I'm not too familiar with cylc review, how should I test?
Good question. It's on the 7.8.x branch, but needed for compatibility for the next 8 release. But we'll need a 7.8 release to get it published. |
I've been working on the basis of starting long running workflows on both Cylc 7 and Cylc 8. Then on then Cylc 7 branch run There are, according to talk at our team meeting, tests. I have no idea if these are functional on master, let alone this branch. |
It's a touch odd for the reason @hjoliver outlines: I plonked for Cylc 8 because Cylc Review works perfectly well for Cylc 7. |
The only problem I can see is that this doesn't appear to be displaying the log files in |
I have tested as described. cylc review seems to be working fine, apart from lack of log files. (My cylc 8 workflow didn't seem to run properly, but I suspect that's just because I had to set Update: I got a 500 internal server error with traceback |
I've just had a look at the testing: It's broken on branch:7.8.x. I'll take a quick look, but I don't want to spend too much time fixing it. |
I think that I've fixed this now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can now access the latest log (the symlink one) of a Cylc 8 workflow.
However, when I try to access a specific log file (one with a datetime in the filename), I get a 404 page with this traceback, both for Cylc 7 & 8 workflows:
Traceback (most recent call last):
File "~/github/cylc-7/lib/cherrypy/_cprequest.py", line 679, in respond
response.body = self.handler()
File "~/github/cylc-7/lib/cherrypy/lib/encoding.py", line 230, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "~/github/cylc-7/lib/cherrypy/_cpdispatch.py", line 60, in __call__
return self.callable(*self.args, **self.kwargs)
File "~/github/cylc-7/lib/cylc/review.py", line 666, in view
user, suite, path, path_in_tar=path_in_tar, mode=mode)
File "~/github/cylc-7/lib/cylc/review.py", line 505, in get_file
f_name = self._get_user_suite_dir(user, suite, path)
File "~/github/cylc-7/lib/cylc/review.py", line 930, in _get_user_suite_dir
return self._check_dir_access(path)
File "~/github/cylc-7/lib/cylc/review.py", line 789, in _check_dir_access
raise cherrypy.HTTPError(404)
HTTPError: (404, None)
Seeing as it happens for both 7/8, I guess this is a separate issue
I think I see the problem (the file name has a timezone appended?). I'll see if I can fix it in this issue before we merge. Might as well. |
Waiting on resolution of the last comment. |
@MetRonnie & @oliver-sanders I've double checked that the issue with failing to show files with a timezone in the name is not peculiar to this branch and have created issue #4260 so that this PR can be closed. |
(I don't think we need four reviews) |
I don't really either. I was wanting Dave to keep an eye, but I guess he can check 7.8.x periodically and raise issues. I shall merge if I don't hear any objections soon. |
@MetRonnie happy your comment above has been captured? If so please merge. |
This is a small change with no associated Issue.
Cylc Review Broken by name changes in the cylc flow database of "suite_params" → "workflow_params"
Testing is manual, I'm afraid.
Suggest @MetRonnie to review & @dpmatthews to test
See comments in code for explanation.
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.