Page MenuHomePhorge
Feed Search

Oct 10 2022

jon requested changes to D5330: [services] Tunnelbroker - Update on using of `init` in Rust notifications library.
Oct 10 2022, 8:24 PM

Oct 7 2022

jon requested review of D5319: [Nix] Cache PATH between nix develop invocations.
Oct 7 2022, 10:20 PM
jon added 1 blocking reviewer(s) for D5246: [Nix] Add localstack-down: varun.
Oct 7 2022, 9:14 PM

Oct 6 2022

jon updated the diff for D5245: [Nix] Add localstack-up.

Another typo

Oct 6 2022, 7:31 PM
jon updated the diff for D5246: [Nix] Add localstack-down.

Fix typos

Oct 6 2022, 6:39 PM
jon added inline comments to D5246: [Nix] Add localstack-down.
Oct 6 2022, 6:39 PM
jon updated the diff for D5245: [Nix] Add localstack-up.

Remove extraneous newline

Oct 6 2022, 6:39 PM

Oct 5 2022

jon requested review of D5305: [Nix] Add rust-up to dev shell.
Oct 5 2022, 6:29 PM
jon requested review of D5304: [Docs] Update tunnelbroker configuration section.
Oct 5 2022, 6:25 PM
jon added inline comments to D5274: [Nix] Auto-generate url json configuration files.
Oct 5 2022, 5:47 PM
jon planned changes to D5275: [Nix docs] Correct port for web workflow.

Probably need to pair with someone to assert that this is working from a clean state.

Oct 5 2022, 5:38 PM
jon planned changes to D5274: [Nix] Auto-generate url json configuration files.

I don't think this is right. Can you update your test plan to include registering / logging in / playing around with / refreshing the app? (Also the landing page)

Oct 5 2022, 5:31 PM
jon updated the diff for D5246: [Nix] Add localstack-down.

Refactor into script and nix wrapper

Oct 5 2022, 5:29 PM
jon updated the diff for D5245: [Nix] Add localstack-up.

Refactor into script + nix wrapper

Oct 5 2022, 5:27 PM
jon resigned from D5233: Implement GlobalDbSingleton API for both platforms.

I'll defer to tomek for final yes. But I don't see anything wrong

Oct 5 2022, 4:13 PM
jon added a comment to D5301: Rename deviceIDTypes to deviceTypes, add comments.

defer to someone else for js

Oct 5 2022, 4:12 PM
jon accepted D5299: [services] Backup - use `anyhow::Result` short form.
Oct 5 2022, 4:10 PM

Oct 4 2022

jon added a comment to D5245: [Nix] Add localstack-up.

What downsides do you see to that approach?

Oct 4 2022, 8:18 PM
jon added a comment to D5245: [Nix] Add localstack-up.

Can we stop writing bash inline in Nix files? This has been discussed numerous times during review, not sure where we landed but it still feels like a code smell

Oct 4 2022, 5:08 PM
jon added a comment to D5293: added services secrets directory to gitignore.

Only partially related to this change, but we should avoid assuming configuration files will be co-located to the binary. Instead of defaulting to a relative directory (e.g. ./secrets/), we should really be defaulting to something like XDG_CONFIG_HOME which is usually only writable to a specific user. For linux systems which have adopted KDE, GNOME, or systemd, these values will be well-defined for users and services. https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html. The other benefit is that the file location will also not be dependent from where you run the application. (e.g. cargo run vs cargo build && cd target/debug && ./identity vs cargo install && identity)

Oct 4 2022, 4:57 PM

Sep 30 2022

jon requested review of D5275: [Nix docs] Correct port for web workflow.
Sep 30 2022, 9:38 PM
jon requested review of D5274: [Nix] Auto-generate url json configuration files.
Sep 30 2022, 9:32 PM
jon added inline comments to D5263: [services] Tunnelbroker - Using `rust::notifications` namespace for calling Rust from C++.
Sep 30 2022, 5:06 PM
jon accepted D5263: [services] Tunnelbroker - Using `rust::notifications` namespace for calling Rust from C++.

An antipattern in C++, that should be avoided, is using using.

Sep 30 2022, 5:02 PM

Sep 29 2022

jon added a comment to D5244: [Nix] Add localstack cli to dev shell.

I'm in the process of pushing up the new builds for macs to the cache

Sep 29 2022, 4:54 PM
jon added inline comments to D5263: [services] Tunnelbroker - Using `rust::notifications` namespace for calling Rust from C++.
Sep 29 2022, 4:49 PM
jon accepted D5262: [services] Tunnelbroker - Changes to use `bail` and `ensure` Anyhow macros.
Sep 29 2022, 4:43 PM
jon accepted D5261: [services] Tunnelbroker - Renaming Rust library directory from `rust-notifications` to `rust-lib`.
Sep 29 2022, 4:42 PM
jon accepted D5250: [services] Tunnelbroker - Move Rust notifications library code to the submodule.
Sep 29 2022, 4:42 PM
jon resigned from D5231: Define global singleton db C++ API..

I'll defer to tomek for approval, I don't see anything "wrong" with this though.

Sep 29 2022, 4:40 PM
jon accepted D5265: [services] Tunnelbroker - Adding of Tonic crate to cargo dependencies.
Sep 29 2022, 4:33 PM

Sep 28 2022

jon added a comment to D5244: [Nix] Add localstack cli to dev shell.

It's still taking a while to install nodejs-16.13.0, has that not been added to the cache yet for aarch64-darwin?

Sep 28 2022, 4:52 PM
jon added a comment to D5243: [Nix] Update flake.lock.

I mean that's just Identity tests and Tunnelbroker unit tests, right?

Sep 28 2022, 4:51 PM
jon requested review of D5244: [Nix] Add localstack cli to dev shell.
Sep 28 2022, 4:53 AM
jon requested review of D5246: [Nix] Add localstack-down.
Sep 28 2022, 4:52 AM
jon requested review of D5245: [Nix] Add localstack-up.
Sep 28 2022, 4:48 AM
jon requested review of D5243: [Nix] Update flake.lock.
Sep 28 2022, 4:41 AM

Sep 27 2022

jon accepted D5242: [CI] Add `rust` installation step to pre-review Android Build CI.
Sep 27 2022, 8:29 PM
jon added a comment to D5237: Use GlobalDbSingleton API on Android to update database in reponse to notifs in CommNotificationsHandler..

looks fine to me, but haven't used java in 10+ years.

Sep 27 2022, 4:25 PM
jon added a comment to D5236: Implement JNI Helper for GlobalDBSingleton.

I'll defer to others for a blocking review, but doesn't look wrong to me.

Sep 27 2022, 4:24 PM
jon added a comment to D5235: Implement C++ class to pass Java lambda (Runnable interface implementation) to C++ code).

doesn't look wrong, but not familiar enough with jni to know if it's right. LGTM

Sep 27 2022, 4:21 PM
jon accepted D5234: Use GlobalDBSingleton when touching database from the native iOS code..
Sep 27 2022, 4:18 PM
jon requested changes to D5233: Implement GlobalDbSingleton API for both platforms.
Sep 27 2022, 4:18 PM
jon accepted D5232: Modify commCoreModule to use GlobalDBSingleton instead of creating its own thread.
Sep 27 2022, 4:12 PM
jon added inline comments to D5231: Define global singleton db C++ API..
Sep 27 2022, 4:11 PM

Sep 23 2022

jon closed D5181: [CI] Add blob unit tests.
Sep 23 2022, 6:44 PM
jon committed rCOMM713480efd67b: [CI] Add blob unit tests.
Sep 23 2022, 6:44 PM
jon closed D5154: [Services] Cleanup commtest/build.rs.
Sep 23 2022, 6:42 PM
jon committed rCOMMa40ae16ccc03: [Services] Cleanup commtest/build.rs.
Sep 23 2022, 6:42 PM
jon added inline comments to D5154: [Services] Cleanup commtest/build.rs.
Sep 23 2022, 6:40 PM
jon added inline comments to D5154: [Services] Cleanup commtest/build.rs.
Sep 23 2022, 6:38 PM
jon abandoned D3831: [services] Backup - handle attachments holders.

Abandoning revision, as we likely want to do an office hours around how this data should be modeled

Sep 23 2022, 6:37 PM
jon commandeered D3831: [services] Backup - handle attachments holders.

karol left

Sep 23 2022, 6:36 PM
jon resigned from D5107: Refactor lib/facts files from JSON to JS.

looks like I was added because the initial diff made some changes to native/cpp, going to resign, as I'm not qualified to review this

Sep 23 2022, 6:17 PM

Sep 22 2022

jon accepted D5174: [services] Tunnelbroker - Add ping implementation to the `Get` handler.

We are pinging to detect when the client goes offline so this isn't an exact error in our case. It makes sense to log it only for debug purposes using the INFO.

Sep 22 2022, 11:58 PM
jon accepted D5208: [services][identity] update user's public keys in ddb during PAKE login.
Sep 22 2022, 11:56 PM
jon accepted D5207: [services] Tunnelbroker - Update sending of the `newNotifyTokenRequired` in `Get` stream request.
Sep 22 2022, 11:56 PM
jon added inline comments to D5208: [services][identity] update user's public keys in ddb during PAKE login.
Sep 22 2022, 8:33 PM
jon accepted D5200: [services][identity] change DDB schema for public keys to map.

Feel like there's probably a more elegant way to do the Option<Hashmap<,>> logic, but nothing comes to my mind.

Sep 22 2022, 8:29 PM
jon accepted D5217: [services][identity] address some nits.
Sep 22 2022, 8:21 PM
jon accepted D5209: [services][identity] update user's public keys in ddb during wallet login.
Sep 22 2022, 8:20 PM
jon added inline comments to D5206: [services] Tunnelbroker - Update handling of the `newNotifyToken` in `Get` stream request.
Sep 22 2022, 8:03 PM
jon accepted D5206: [services] Tunnelbroker - Update handling of the `newNotifyToken` in `Get` stream request.

LGTM, as long as https://phab.comm.dev/D5207 lands at the same time.

Sep 22 2022, 7:14 PM
jon resigned from D5201: [native] Throw JSError in sync functions.

LGTM, but don't consider myself familiar with C++ best practices, so I'll defer to someone else for marking this as accepted.

Sep 22 2022, 6:55 PM
jon requested changes to D5200: [services][identity] change DDB schema for public keys to map.
Sep 22 2022, 6:50 PM
jon accepted D5180: [services] Tunnelbroker - Updating Protobuf with new token request and token update.

Assuming that the new token would occupy the responseMessage field in the response, this looks good to me.

Sep 22 2022, 6:36 PM
jon accepted D5179: [services] Tunnelbroker - Add `updateSessionItemDeviceToken` database method.

We can always revisit if we want more detail than just a bool to denote success/failure. But that decision can be deferred.

Sep 22 2022, 6:32 PM
jon accepted D5175: [services] Tunnelbroker - Update device online status in `Get` handler.
Sep 22 2022, 6:29 PM
jon requested changes to D5174: [services] Tunnelbroker - Add ping implementation to the `Get` handler.
Sep 22 2022, 6:28 PM
jon accepted D5149: [services] Tunnelbroker - Update A2 (APNs) library wrapper with return of token-related errors.
Sep 22 2022, 6:27 PM
jon accepted D5145: [services] Tunnelbroker - Update FCM library wrapper with return of token-related errors.

looks like the awkwardness is for Rust + C++ compatibility, LGTM

Sep 22 2022, 6:26 PM

Sep 21 2022

jon accepted D5203: [services] Move constants to a separate file in commtest.

LGTM, I like it

Sep 21 2022, 5:45 PM
jon added inline comments to D5174: [services] Tunnelbroker - Add ping implementation to the `Get` handler.
Sep 21 2022, 5:26 PM
jon accepted D5173: [services] Tunnelbroker - Update Protobuf file with the `ping`.
Sep 21 2022, 4:55 PM
jon accepted D5204: [CI] Add `--network-timeout 180000` to `yarn` commands.

I don't know if this will protect against sockets which close (which I think is the underlying issue for most of these failures), but may as well try

Sep 21 2022, 4:52 PM

Sep 20 2022

jon closed D5163: [CI] Add identity tests to github actions.
Sep 20 2022, 7:40 PM
jon committed rCOMM953c2fd9f04c: [CI] Add identity tests to github actions.
Sep 20 2022, 7:40 PM
jon added a comment to D5164: [services] Tunnelbroker - Update `SessionItem` database entity with the `IsOnline` field.

The prompt issue was fixed with https://phab.comm.dev/D5194. For CI we need to "give permission" ahead of time to receive the comm binary cache. The default behavior is to prompt a user, but for CI, there is no user.

Sep 20 2022, 7:38 PM
jon closed D5196: [Nix] Add backwards compatible stub for older nix versions.
Sep 20 2022, 7:36 PM
jon committed rCOMM087f89aa3ef3: [Nix] Add backwards compatible stub for older nix versions.
Sep 20 2022, 7:36 PM
jon closed D5194: [CI] Auto-accept flake config.
Sep 20 2022, 7:36 PM
jon committed rCOMMdd3b8d29408e: [CI] Auto-accept flake config.
Sep 20 2022, 7:36 PM
jon added a comment to D5196: [Nix] Add backwards compatible stub for older nix versions.

Best to leave me off of these reviews

Sep 20 2022, 7:35 PM
jon updated the diff for D5163: [CI] Add identity tests to github actions.

Apply --accept-flake-config fixes, run if nix files change

Sep 20 2022, 4:37 PM
jon abandoned D4791: [CI] Add nix blob CI.

abandoning in favor of https://phab.comm.dev/D5181

Sep 20 2022, 4:17 PM
jon requested review of D5196: [Nix] Add backwards compatible stub for older nix versions.
Sep 20 2022, 4:06 PM
jon updated the test plan for D5194: [CI] Auto-accept flake config.
Sep 20 2022, 3:58 PM
jon requested review of D5194: [CI] Auto-accept flake config.
Sep 20 2022, 3:56 PM
jon closed D5183: [Nix] Fix substituters entry.
Sep 20 2022, 3:31 PM
jon committed rCOMMde241b55f4aa: [Nix] Fix substituters entry.
Sep 20 2022, 3:31 PM
jon resigned from D5158: [native/sqlite] infer db schema from `sqlite_orm`.

not familiar enough with the sqlite_orm to have meaningful feedback.

Sep 20 2022, 3:27 PM
jon accepted D5189: [services] Move common files from tests to src.

In the future, I would give the directions from the perspective of "I just did arc patch", for example:

cd services/commtest
cargo test --no-run
Sep 20 2022, 3:23 PM
jon accepted D5171: [services] Remove path imports in tests.
Sep 20 2022, 3:18 PM

Sep 19 2022

jon closed D5135: [CI] Add identity pre-commit hook.
Sep 19 2022, 11:28 PM
jon committed rCOMM6cccc466a2eb: [CI] Add identity pre-commit hook.
Sep 19 2022, 11:28 PM
jon added a comment to D5173: [services] Tunnelbroker - Update Protobuf file with the `ping`.

We currently have set(CMAKE_CXX_STANDARD 14) in the CMakeLists.txt file, however, this commit now includes C++17 extensions

Sep 19 2022, 11:26 PM
jon added inline comments to D5163: [CI] Add identity tests to github actions.
Sep 19 2022, 10:43 PM
jon accepted D5182: [services] Tunnelbroker - Add `env_logger` to the Rust library.
Sep 19 2022, 10:42 PM
jon requested review of D5183: [Nix] Fix substituters entry.
Sep 19 2022, 10:34 PM
jon closed D5157: [Nix Docs] Mention homebrew packages.
Sep 19 2022, 10:11 PM