Page MenuHomePhabricator

[services] Tunnelbroker - Add yarn scripts for dev-mode
ClosedPublic

Authored by max on May 25 2022, 12:19 PM.
Tags
None
Referenced Files
F2193832: D4126.diff
Thu, Jul 4, 11:35 PM
F2190924: D4126.id.diff
Thu, Jul 4, 1:07 PM
Unknown Object (File)
Tue, Jul 2, 9:33 AM
Unknown Object (File)
Fri, Jun 28, 10:17 AM
Unknown Object (File)
Wed, Jun 26, 11:30 AM
Unknown Object (File)
Wed, Jun 26, 11:30 AM
Unknown Object (File)
Wed, Jun 26, 11:30 AM
Unknown Object (File)
Wed, Jun 26, 11:28 AM

Details

Summary

To run the tunnelbroker in dev-mode we need to export COMM_SERVICES_DEV_MODE environment variable.
Following the current code approach, add the corresponding commands for the tunnelbroker to package.json.

Linear task: ENG-1101

Test Plan

Run run-tunnelbroker-service-dev-mode and check that the tools::isDevMode() is true.

Diff Detail

Repository
rCOMM Comm
Branch
add-yarn-dev-commands
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

max held this revision as a draft.
max published this revision for review.May 25 2022, 1:49 PM
max edited the summary of this revision. (Show Details)
max added reviewers: karol, tomek.
services/package.json
11

Is export really necessary here? Can we try this instead?

tomek requested changes to this revision.May 26 2022, 3:33 AM

It looks like this diff is consistent with other places where we use export. We should clarify if we really need them and replace in all the places if possible.

services/package.json
30

Deleting the newline wasn't intentional, right?

This revision now requires changes to proceed.May 26 2022, 3:33 AM
max marked 2 inline comments as done.
In D4126#116852, @palys-swm wrote:

It looks like this diff is consistent with other places where we use export. We should clarify if we really need them and replace in all the places if possible.

I think we can remove all the occurrences in the follow-up for all commands here. I'll create a task for that.

services/package.json
11

Is export really necessary here? Can we try this instead?

The code will work without export here. It was added here to be consistent with the rest of the code in this file. I think we can remove all the occurrences in the follow-up for all commands here. I'll create a task for that.

30

Deleting the newline wasn't intentional, right?

Seems that we didn't have it before and don't need to add it now, because in JSON format files it's removed by the linter.
Also, the new line for the json type files is removed by the Prettier.

max marked 2 inline comments as done.

Removed export usage and stacked on top of the D4136.

In D4126#116852, @palys-swm wrote:

It looks like this diff is consistent with other places where we use export. We should clarify if we really need them and replace in all the places if possible.

Done in D4136. This diff is now stacked on top of it.

services/package.json
11

Is export really necessary here? Can we try this instead?

In a follow-up to this comment, I've created D4136 and stacked this diff on top of it.

Just wanted to say I really appreciate the diff stacking here – this is the perfect way to handle this feedback: unrelated changes in a diff that is stacked before this one

This revision is now accepted and ready to land.May 27 2022, 2:20 AM