Skip to content

Conversation

@JFrankfurt
Copy link
Contributor

This makes independent prepare scripts run in parallel which speeds up the default yarn command--it also gives labeled logs which should make issues easier to debug.

@JFrankfurt JFrankfurt requested review from grabbou and zzmp May 19, 2023 21:58
@JFrankfurt JFrankfurt self-assigned this May 19, 2023
@vercel
Copy link

vercel bot commented May 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
interface ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2023 9:41pm
interface-node18 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2023 9:41pm

@JFrankfurt JFrankfurt temporarily deployed to false May 19, 2023 21:58 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 19, 2023 21:58 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 19, 2023 21:58 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 19, 2023 22:02 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 19, 2023 22:02 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 19, 2023 22:02 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented May 19, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.06 ⚠️

Comparison is base (8fe7c7a) 60.14% compared to head (eedef9a) 60.09%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6609      +/-   ##
==========================================
- Coverage   60.14%   60.09%   -0.06%     
==========================================
  Files         719      719              
  Lines       21155    21143      -12     
  Branches     6980     6974       -6     
==========================================
- Hits        12723    12705      -18     
- Misses       8356     8360       +4     
- Partials       76       78       +2     
Flag Coverage Δ
e2e-tests 60.56% <ø> (+0.04%) ⬆️
unit-tests 21.11% <ø> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 25 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@JFrankfurt JFrankfurt temporarily deployed to false May 19, 2023 22:06 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 19, 2023 22:06 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 19, 2023 22:06 — with GitHub Actions Inactive
@cypress
Copy link

cypress bot commented May 19, 2023

2 flaky tests on run #11209 ↗︎

0 69 8 0 Flakiness 2

Details:

feat: improve yarn prepare scripts
Project: Uniswap Interface Commit: eedef9a2a5
Status: Passed Duration: 05:28 💡
Started: May 22, 2023 9:49 PM Ended: May 22, 2023 9:54 PM
Flakiness  permit2.test.ts • 1 flaky test • e2e

View Output Video

Test Artifacts
Permit2 > swaps after handling user rejection of approvals and signatures Output Screenshots Video
Flakiness  swap/swap.test.ts • 1 flaky test • e2e

View Output Video

Test Artifacts
Swap > Swap on main page > swaps ETH for USDC Output Screenshots Video

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@@ -0,0 +1,36 @@
const { spawn } = require('child_process')

function runCommand(command, args) {
Copy link
Contributor

Choose a reason for hiding this comment

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

These will always be yarn scripts, so you can simplify this by omitting yarn:

Suggested change
function runCommand(command, args) {
function runYarnScript(command) {

if (code !== 0) {
return reject(new Error(`${command} ${args} exited with code ${code}`))
}
console.log(`${command} ${args} completed successfully`)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think yarn will itself log when a command is completed. How much of the yarn command log is duplicated here? Do you even need to log when a command is initiated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the init log is useful to remind you what is executing under the hood.

Yarn doesn't log on its own when these child processes complete individually.

@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 16:03 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 16:03 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 16:03 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 16:03 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt requested a review from zzmp May 22, 2023 16:04
@JFrankfurt JFrankfurt requested a review from cmcewen May 22, 2023 18:42

// Log errors
childProcess.stderr.on('data', (data) => {
console.error(`Error during execution of [${command}]:\n${data}`)
Copy link
Contributor

Choose a reason for hiding this comment

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

This still needs to be split and rejoined into lines like stdout.

@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 21:12 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 21:12 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 21:21 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 21:21 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 21:21 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 21:21 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 21:36 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 21:36 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 21:36 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 21:36 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 21:46 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 21:46 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 21:46 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt temporarily deployed to false May 22, 2023 21:46 — with GitHub Actions Inactive
@JFrankfurt JFrankfurt merged commit 66fcdb4 into main May 23, 2023
@JFrankfurt JFrankfurt deleted the improve-prepare branch May 23, 2023 21:07
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.

4 participants