-
Notifications
You must be signed in to change notification settings - Fork 23
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
Run sass with --trace #180
Conversation
Issue: https://progress.opensuse.org/issues/162311 In case there is an error, e.g. TypeError: String can't be coerced into Integer Use --trace for backtrace. we don't get a line number or the input. Nothing. --trace will hopefully help us find the source of this sporadic error.
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 like you found the right place/file to patch :-)
https://openqa.opensuse.org/tests/4275646#step/openqa_webui/5 still failing because of the |
script_run q{perl -pi -wE 's/\Q = (qw(sass -s)/ = (qw(sass -s --trace)/' } . $sass; | ||
script_run qq{grep "sass -s" $sass}; |
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.
It's bad practice to use script_run
without checking the exit code. How about
script_run q{perl -pi -wE 's/\Q = (qw(sass -s)/ = (qw(sass -s --trace)/' } . $sass; | |
script_run qq{grep "sass -s" $sass}; | |
assert_script_run q{perl -pi -wE 's/\Q = (qw(sass -s)/ = (qw(sass -s --trace)/' } . $sass; | |
assert_script_run qq{grep "sass -s" $sass}; |
but in general I would prefer if our code can be as simple as possible resembling what users would need to do. This is quite low-level. How about a Makefile target "prepare-assets" or something that is then called here?
get_log 'cat nohup.out' => 'openqa_nohup_out.txt'; | ||
upload_logs('nohup.out', log_name => 'openqa_nohup_out.txt'); |
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.
that looks like it would be better in a separate commit
Issue: https://progress.opensuse.org/issues/162311
In case there is an error, e.g.
we don't get a line number or the input. Nothing.
--trace will hopefully help us find the source of this sporadic error.