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

Run sass with --trace #180

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Run sass with --trace #180

merged 1 commit into from
Jun 17, 2024

Conversation

perlpunk
Copy link
Contributor

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.

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.
Copy link
Contributor

@Martchus Martchus left a 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 :-)

@perlpunk
Copy link
Contributor Author

https://openqa.opensuse.org/tests/4275646#step/openqa_webui/5 still failing because of the sed issue, otherwise passes

@perlpunk perlpunk merged commit 6f009c7 into os-autoinst:master Jun 17, 2024
4 of 5 checks passed
Comment on lines +59 to +60
script_run q{perl -pi -wE 's/\Q = (qw(sass -s)/ = (qw(sass -s --trace)/' } . $sass;
script_run qq{grep "sass -s" $sass};
Copy link
Member

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

Suggested change
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?

Comment on lines -61 to +64
get_log 'cat nohup.out' => 'openqa_nohup_out.txt';
upload_logs('nohup.out', log_name => 'openqa_nohup_out.txt');
Copy link
Member

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

@perlpunk
Copy link
Contributor Author

I created

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.

3 participants