-
Notifications
You must be signed in to change notification settings - Fork 94
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
select_autoescape #3113
select_autoescape #3113
Conversation
Kicking Travis because I think it was a flaky test. |
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.
Hmmm, kicked it twice, and failed both times with:
Test Summary Report
-------------------
./tests/hold-release/08-hold-family-inexact.t (Wstat: 0 Tests: 2 Failed: 1)
Failed test: 2
@MartinRyan , checked out your branch, and tried cylc test-battery ./tests/hold-release/08-hold-family-inexact.t
, and it failed too. I think it broke something... maybe looking at that test you might be able to adjust the parameters passed to the select_autoescape
?
Did a bit more of investigation after chatting with @MartinRyan in the channel. Here's what I did:
They don't match, and looks like the new code escapes quotes and other characters that were OK before. @MartinRyan I don't know parsec/Cylc configuration well enough, so will have to wait that others chime in to confirm what should be escaped. My guess is that we should not escape these - and perhaps we would need a custom escape function as mentioned in the Jinja2 documentation (doesn't sound fun to write one though).
And notice now the
|
actually checking the syntax for other tests I think it should be fine to use --set=HOLD_MATCH='FF' |
@kinow and @MartinRyan - for the record, you can view Jinja2-processed suite.rc files with
|
@MartinRyan - you are correct that the original inside quotes are unnecessary here. Without them it works fine because no quotes are passed in to Jinja2 (the remaining/outside quotes are "used up" by the shell interpreter on the command line). However, I think the fix in this PR should be ditched and just replaced by a Or have I missed something here? |
You haven't. This has been raised already multiple times in #2908: |
One file in conflict preventing the merge. And the change to |
@MartinRyan - you don't need to remove I think it is OK to keep the change to |
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.
(see comment above)
I reverted deletion of ext.py, but it's in conflict as it's deleted on master |
OK, you took my "revert" request more literally than I expected! I'd do an interactive rebase to remove your original "delete" commit and the "revert" one (so its as if they never happened) and force-push the result back to GitHub. |
Partly my fault as this file was removed when If it gets messy, just avoid pushing to remote as your can always reset your local branch (i.e. |
(@hjoliver beat me ☝️ ) |
(As @kinow suggests, a hard reset is an alternative to an interactive rebase with skipped commits - so long as the commits are both at the head of your branch). |
87be550
to
cf971e8
Compare
after a hard reset and force push it looks like I still need to delete ext.py |
No you can just remove your commit that modifies that file (no mods to it are needed, since the file no longer exists on master). |
I see you've made the good change, and the unnecessary one (to |
cf971e8
to
d75c355
Compare
ext.py was in the original commit of this pull request... |
d75c355
to
123bfcc
Compare
Ah, sorry, didn't realize you also modified that file in that commit. In that case, interactive rebase - it let's you edit specific commits before replaying them. |
123bfcc
to
508d79a
Compare
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.
Looks good to me 👍
Hmm, now it has 17 commits. I think you need to rebase or sort out what went wrong here. |
Looks good now ... waiting on Travis CI |
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.
Thanks @MartinRyan 👍
address bandit b701 jinja2_autoescape_false