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
Unknown Object (File)
Tue, Dec 24, 9:20 PM
Unknown Object (File)
Nov 22 2024, 12:42 AM
Unknown Object (File)
Nov 22 2024, 12:42 AM
Unknown Object (File)
Nov 22 2024, 12:42 AM
Unknown Object (File)
Nov 22 2024, 12:42 AM
Unknown Object (File)
Nov 22 2024, 12:42 AM
Unknown Object (File)
Nov 22 2024, 12:42 AM
Unknown Object (File)
Nov 22 2024, 12:40 AM
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
Branch
arcpatch-D7021 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

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)