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 build script errors #15493

Merged
merged 1 commit into from
Aug 6, 2022
Merged

Fix build script errors #15493

merged 1 commit into from
Aug 6, 2022

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Aug 5, 2022

There is a SES bug that results in errors being printed to the console as {}. The known workaround is to print the error stack rather than printing the error directly. This affects our build script when it is run with LavaMoat.

We used this workaround in one place in the build script already, but not in the handler for task errors. We now use it in both places.

The workaround has been moved to a function that we can use throughout the build script.

Manual Testing Steps

  • Introduce an error somewhere within a task (e.g. on this line)
  • Ensure the error is printed to the error when LavaMoat is used to run the build script (e.g. on yarn dist).

Pre-Merge Checklist

  • PR template is filled out
  • IF this PR fixes a bug, a test that would have caught the bug has been added
  • PR is linked to the appropriate GitHub issue
  • PR has been added to the appropriate release Milestone

+ If there are functional changes:

  • Manual testing complete & passed
  • "Extension QA Board" label has been applied

@Gudahtt Gudahtt marked this pull request as ready for review August 5, 2022 19:48
@Gudahtt Gudahtt requested review from a team and kumavis as code owners August 5, 2022 19:48
@Gudahtt Gudahtt requested a review from danjm August 5, 2022 19:48
There is a SES bug that results in errors being printed to the console
as `{}`[1]. The known workaround is to print the error stack rather
than printing the error directly. This affects our build script when it
is run with LavaMoat.

We used this workaround in one place in the build script already, but
not in the handler for task errors. We now use it in both places.

The workaround has been moved to a function that we can use throughout
the build script.

[1]: endojs/endo#944
@Gudahtt Gudahtt force-pushed the fix-build-script-errors branch from 6702839 to e37b756 Compare August 5, 2022 19:50
@metamaskbot
Copy link
Collaborator

Builds ready [e37b756]
Page Load Metrics (1879 ± 120 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint862981414924
domContentLoaded157624781859243117
load157624781879250120
domInteractive157624781859243117

@Gudahtt Gudahtt merged commit e3420a4 into develop Aug 6, 2022
@Gudahtt Gudahtt deleted the fix-build-script-errors branch August 6, 2022 07:33
@github-actions github-actions bot locked and limited conversation to collaborators Aug 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants