Page MenuHomePhabricator

[keyserver] Use `build:debug` instead of `build` in `postinstall`
ClosedPublic

Authored by atul on Mar 9 2023, 10:09 AM.
Tags
None
Referenced Files
F3543563: D7021.id23591.diff
Thu, Dec 26, 11:17 AM
F3543549: D7021.id23592.diff
Thu, Dec 26, 11:08 AM
F3543474: D7021.id23577.diff
Thu, Dec 26, 11:03 AM
F3543350: D7021.id23613.diff
Thu, Dec 26, 10:26 AM
F3543334: D7021.id23582.diff
Thu, Dec 26, 10:10 AM
F3543070: D7021.id23614.diff
Thu, Dec 26, 9:25 AM
Unknown Object (File)
Wed, Dec 25, 9:46 PM
Unknown Object (File)
Tue, Dec 24, 9:20 PM
Subscribers

Details

Summary

Context: https://linear.app/comm/issue/ENG-3213#comment-706a284f

Should reduce yarn cleaninstall time by a significant-ish amount.

Test Plan

Didn't do any thorough profiling, but things appear to
A. be faster
B. be continuing to work as expected

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Mar 9 2023, 10:10 AM
This revision is now accepted and ready to land.Mar 9 2023, 10:18 AM

fix yarn build:debug to include install-ci-deps step

keyserver/addons/rust-node-addon/package.json
36 ↗(On Diff #23582)

we probably don't need the install-ci-deps part here now

keyserver/addons/rust-node-addon/package.json
36 ↗(On Diff #23582)

true

don't install ci-deps for non-debug

This revision was landed with ongoing or failed builds.Mar 9 2023, 11:40 AM
This revision was automatically updated to reflect the committed changes.

Did we make sure this passed keyserver Docker build before landing? Just want to make that sure that running build:debug before we run build doesn't break build (doubt it)

Did we make sure this passed keyserver Docker build before landing?

Yeah was tested as part of https://phab.comm.dev/B17218 before the last revision of the diff. The last revision of the diff just removed yarn install-ci-deps from yarn build... which isn't used anywhere

Ah, but we probably DO want yarn build on prod. As @varun said:

yeah we can use debug by default on dev machines

But we should still do release for prod. I'll revert this.

This revision is now accepted and ready to land.Mar 9 2023, 12:07 PM

JK, I shouldn't have just searched yarn build... should've considered that yarn scripts can be invoked via yarn workspace blah command.

5c8986.png (78×864 px, 17 KB)