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

tests: save smokehouse failures, improve bundle runner logging #15235

Merged
merged 2 commits into from Jul 10, 2023

Conversation

connorjclark
Copy link
Collaborator

  1. Save failing results to .tmp/smokehouse-failures. Before we did this only for CI. But it is useful locally.
  2. Use asset-saver for the above
  3. For bundle runner, set the defaults to capture info logs. in debug mode, that is now bumped to verbose

@connorjclark connorjclark requested a review from a team as a code owner July 7, 2023 20:42
@connorjclark connorjclark requested review from adamraine and removed request for a team July 7, 2023 20:42
@@ -82,7 +82,7 @@ async function runBundledLighthouse(url, config, testRunnerOptions) {

// Run Lighthouse.
try {
const logLevel = testRunnerOptions.isDebug ? 'info' : undefined;
const logLevel = testRunnerOptions.isDebug ? 'verbose' : 'info';
Copy link
Member

Choose a reason for hiding this comment

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

I can understand how verbose might be useful in debug mode, but what's wrong with undefined for normal execution?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because nothing is emitted given undefined.

cli/test/smokehouse/frontends/smokehouse-bin.js Outdated Show resolved Hide resolved
@connorjclark connorjclark changed the title tests: save smokehouse failures, and impove bundle runner logging tests: save smokehouse failures, improve bundle runner logging Jul 10, 2023
@connorjclark connorjclark merged commit fbee662 into main Jul 10, 2023
32 of 33 checks passed
@connorjclark connorjclark deleted the improve-smokehouse-failing branch July 10, 2023 20:36
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.

None yet

2 participants