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

Fix #500 by using uuid to generate the random filename #502

Merged
merged 3 commits into from
Dec 1, 2020

Conversation

PJHRobles
Copy link
Contributor

Fix #500 by using a more robust random filename generation

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

thanks very much @PJHRobles this is great! elegant, simple solution 👍

would you mind updating the other dependency in LHCI to match this version requirement? I believe its in the server package.json

rerunning yarn to consolidate would be much appreciated too.

@PJHRobles
Copy link
Contributor Author

Not sure what happened on the mac tests, STDOUT and STDERR doesn't show anything.

FAIL packages/cli/test/upload.test.js (9.152s)
  ● Lighthouse CI upload CLI › should upload for a build

    Server failed to start
    STDOUT: 
    STDERR:

      107 |     await waitForCondition(() => stdout.includes('listening'), 'Server failed to start');
      108 |   } catch (err) {
    > 109 |     throw new Error(`${err.message}\nSTDOUT: ${stdout}\nSTDERR: ${stderr}`);
          |           ^
      110 |   }
      111 | 
      112 |   const port = stdout.match(/port (\d+)/)[1];

Are these perhaps flaky tests?

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

thanks @PJHRobles it's possible it's just a flake, I kicked off a restart.

Looks like the @types/uuid package version and the yarn.lock didn't get updated with the server change, but LGTM other than that! :)

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

thanks @PJHRobles!

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.

Flags file cleanup failure
2 participants