Page MenuHomePhabricator
Feed Advanced Search

Sep 20 2022

max closed D5165: [services] Tunnelbroker - Add `updateSessionItemIsOnline` database method.
Sep 20 2022, 6:19 AM
max committed rCOMMe4f0d2ebe260: [services] Tunnelbroker - Add `updateSessionItemIsOnline` database method (authored by max).
[services] Tunnelbroker - Add `updateSessionItemIsOnline` database method
Sep 20 2022, 6:19 AM
max closed D5164: [services] Tunnelbroker - Update `SessionItem` database entity with the `IsOnline` field.
Sep 20 2022, 6:19 AM
max committed rCOMM556c31433ce5: [services] Tunnelbroker - Update `SessionItem` database entity with the… (authored by max).
[services] Tunnelbroker - Update `SessionItem` database entity with the…
Sep 20 2022, 6:19 AM
max updated the diff for D5164: [services] Tunnelbroker - Update `SessionItem` database entity with the `IsOnline` field.

Rebase on a master changes.

Sep 20 2022, 6:01 AM
max added a comment to D5166: [services] Tunnelbroker - Add test for the `updateSessionItemIsOnline` database method.
In D5166#151293, @jon wrote:
Sep 20 2022, 5:54 AM
max updated the diff for D5166: [services] Tunnelbroker - Add test for the `updateSessionItemIsOnline` database method.

Rebased on parent changes.

Sep 20 2022, 5:51 AM
max updated the diff for D5165: [services] Tunnelbroker - Add `updateSessionItemIsOnline` database method.

Rebased on parent changes. Error message was fixed.

Sep 20 2022, 5:44 AM
max updated the diff for D5164: [services] Tunnelbroker - Update `SessionItem` database entity with the `IsOnline` field.

Rebased on changes. Default false value was added for an online status on a new session insert.

Sep 20 2022, 5:37 AM

Sep 19 2022

max planned changes to D5145: [services] Tunnelbroker - Update FCM library wrapper with return of token-related errors.
Sep 19 2022, 4:09 PM
max planned changes to D5149: [services] Tunnelbroker - Update A2 (APNs) library wrapper with return of token-related errors.
Sep 19 2022, 4:09 PM
max planned changes to D5173: [services] Tunnelbroker - Update Protobuf file with the `ping`.
Sep 19 2022, 4:08 PM
max added a comment to D5173: [services] Tunnelbroker - Update Protobuf file with the `ping`.
In D5173#151887, @jon wrote:
In D5173#151704, @max wrote:

I'm checking what's wrong with the Android and iOS builds (maybe the protobuf changes broke some old client-side API code). Requesting review to unblock it for possible comments.

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

Sep 19 2022, 4:08 PM
max added a comment to D5179: [services] Tunnelbroker - Add `updateSessionItemDeviceToken` database method.
In D5179#151896, @jon wrote:

I feel like having a test case for this would help a lot of asserting that it has the desired behavior

Sep 19 2022, 4:00 PM
max updated the test plan for D5179: [services] Tunnelbroker - Add `updateSessionItemDeviceToken` database method.
Sep 19 2022, 3:58 PM
max updated the test plan for D5184: [services] Tunnelbroker - Add test for `updateSessionItemDeviceToken` database method.
Sep 19 2022, 3:57 PM
max published D5184: [services] Tunnelbroker - Add test for `updateSessionItemDeviceToken` database method for review.
Sep 19 2022, 3:57 PM
max published D5182: [services] Tunnelbroker - Add `env_logger` to the Rust library for review.
Sep 19 2022, 3:31 PM
max published D5179: [services] Tunnelbroker - Add `updateSessionItemDeviceToken` database method for review.
Sep 19 2022, 7:09 AM
max published D5174: [services] Tunnelbroker - Add ping implementation to the `Get` handler for review.

I'm checking what's wrong with the Android and iOS builds (maybe the protobuf changes broke some old client-side API code). Requesting review to unblock it for possible comments.

Sep 19 2022, 6:40 AM
max published D5173: [services] Tunnelbroker - Update Protobuf file with the `ping` for review.

I'm checking what's wrong with the Android and iOS builds (maybe the protobuf changes broke some old client-side API code). Requesting review to unblock it for possible comments.

Sep 19 2022, 6:40 AM
max published D5175: [services] Tunnelbroker - Update device online status in `Get` handler for review.

I'm checking what's wrong with the Android and iOS builds (maybe the protobuf changes broke some old client-side API code). Requesting review to unblock it for possible comments.

Sep 19 2022, 6:39 AM
max requested review of D5164: [services] Tunnelbroker - Update `SessionItem` database entity with the `IsOnline` field.
In D5164#151290, @jon wrote:

Passed a unit test in D5166.

Unfortunately, DatabaseManager tests are being filtered out because there's a requirement on external services. I don't have integration tests yet added.

Sep 19 2022, 6:07 AM
max updated the test plan for D5164: [services] Tunnelbroker - Update `SessionItem` database entity with the `IsOnline` field.
Sep 19 2022, 6:06 AM
max added inline comments to D5165: [services] Tunnelbroker - Add `updateSessionItemIsOnline` database method.
Sep 19 2022, 6:03 AM
max closed D5151: [services] Tunnelbroker - Add device ping interval to Constants.
Sep 19 2022, 5:37 AM
max committed rCOMM6a8801a49786: [services] Tunnelbroker - Add device ping interval to Constants (authored by max).
[services] Tunnelbroker - Add device ping interval to Constants
Sep 19 2022, 5:37 AM

Sep 16 2022

max accepted D5124: [Backup] Initialize logger with tokio runtime.
Sep 16 2022, 3:46 PM
max accepted D5123: [Backup] Add logging to blob_client.

Nice catch @jon ! I should add env_logger to the Tunnelbroker Rust lib as well.

Sep 16 2022, 3:44 PM
max published D5166: [services] Tunnelbroker - Add test for the `updateSessionItemIsOnline` database method for review.
Sep 16 2022, 12:26 PM
max published D5165: [services] Tunnelbroker - Add `updateSessionItemIsOnline` database method for review.
Sep 16 2022, 12:26 PM
max published D5164: [services] Tunnelbroker - Update `SessionItem` database entity with the `IsOnline` field for review.
Sep 16 2022, 12:26 PM
max accepted D5155: [Docker] Ignore cmake build directories.
Sep 16 2022, 5:01 AM
max accepted D5156: [Backup] Remove docker context differences.
Sep 16 2022, 5:00 AM

Sep 15 2022

max closed D5064: [services] Tunnelbroker - Fix an OpenSSL crate collision.
Sep 15 2022, 4:06 PM
max committed rCOMM9ec57df50f22: [services] Tunnelbroker - Fix an OpenSSL crate collision (authored by max).
[services] Tunnelbroker - Fix an OpenSSL crate collision
Sep 15 2022, 4:06 PM
max accepted D5153: [Backup] Use only one tokio runtime.
Sep 15 2022, 11:19 AM
max planned changes to D5083: [services] Tunnelbroker - Add payload to APNs message to make it `content-available`.
Sep 15 2022, 8:16 AM
max planned changes to D5081: [services] Tunnelbroker - Add `topic` to APNs.
Sep 15 2022, 8:16 AM
max updated the summary of D5151: [services] Tunnelbroker - Add device ping interval to Constants.
Sep 15 2022, 8:14 AM
max updated the diff for D5151: [services] Tunnelbroker - Add device ping interval to Constants.

Change the interval to 3s accrording to our keyserver interval.

Sep 15 2022, 8:13 AM
max published D5151: [services] Tunnelbroker - Add device ping interval to Constants for review.
Sep 15 2022, 7:51 AM
max published D5149: [services] Tunnelbroker - Update A2 (APNs) library wrapper with return of token-related errors for review.
Sep 15 2022, 7:29 AM
max published D5145: [services] Tunnelbroker - Update FCM library wrapper with return of token-related errors for review.
Sep 15 2022, 7:08 AM
max added inline comments to D5066: [services] Tunnelbroker - Changes to handle HTTP code inside the Rust `send_notif_to_apns` function.
Sep 15 2022, 5:31 AM
max abandoned D5066: [services] Tunnelbroker - Changes to handle HTTP code inside the Rust `send_notif_to_apns` function.

Abandon due to ENG-1764: Distinguish common and wrong/expired device token errors in Rust notification library.

Sep 15 2022, 5:31 AM
max abandoned D5067: [services] Tunnelbroker - Changes to handle empty `message_id` inside the Rust `send_by_fcm_client` function.

Abandon due to ENG-1764: Distinguish common and wrong/expired device token errors in Rust notification library.

Sep 15 2022, 5:29 AM

Sep 12 2022

max added a comment to D5064: [services] Tunnelbroker - Fix an OpenSSL crate collision.

Pinging @ashoat for a final blocking review because this is a dependency change.

Sep 12 2022, 3:54 PM
max requested changes to D5122: [Services] Allow for tunnelbroker to receive command-line args.

Tunnelbroker already has ConfigManager abstraction from which we are handling options. It uses boost::program_options as well as in your solution. I think we should use the current approach instead of parsing CLI elsewhere. In this case, we have a single point of truth for options and a single place where it resides.

Sep 12 2022, 3:38 PM
max added a comment to D5064: [services] Tunnelbroker - Fix an OpenSSL crate collision.
In D5064#149334, @jon wrote:

This isn't necessary on the nix develop side, but this probably fixes the docker build as it has an older version of openssl available.

Sep 12 2022, 11:56 AM
max added inline comments to D5064: [services] Tunnelbroker - Fix an OpenSSL crate collision.
Sep 12 2022, 11:55 AM
max accepted D5114: [Services] Remove Arc usage.

That makes sense! We don't need an arc in lazy_static here.

Sep 12 2022, 11:14 AM
max closed D5065: [services] Tunnelbroker - Add secrets handling for notifications in config file.
Sep 12 2022, 6:13 AM
max committed rCOMM894c578dc400: [services] Tunnelbroker - Add secrets handling for notifications in config file (authored by max).
[services] Tunnelbroker - Add secrets handling for notifications in config file
Sep 12 2022, 6:13 AM
max planned changes to D5067: [services] Tunnelbroker - Changes to handle empty `message_id` inside the Rust `send_by_fcm_client` function.
Sep 12 2022, 2:45 AM
max planned changes to D5066: [services] Tunnelbroker - Changes to handle HTTP code inside the Rust `send_notif_to_apns` function.
Sep 12 2022, 2:42 AM

Sep 8 2022

max published D5083: [services] Tunnelbroker - Add payload to APNs message to make it `content-available` for review.
Sep 8 2022, 7:52 AM
max updated the summary of D5065: [services] Tunnelbroker - Add secrets handling for notifications in config file.
Sep 8 2022, 6:23 AM
max updated the diff for D5065: [services] Tunnelbroker - Add secrets handling for notifications in config file.

Adding topic for APNS configuration, because it's mandatory in production mode.

Sep 8 2022, 6:23 AM
max published D5081: [services] Tunnelbroker - Add `topic` to APNs for review.
Sep 8 2022, 6:17 AM

Sep 6 2022

max accepted D5077: [Nix] Remove /usr/bin/ from PATH.

Rubber stamped! I'm commenting on this line every time to fix the Clang conflict in Nix while using Clang from XCode.

Sep 6 2022, 11:19 AM
max published D5076: [native] Increasing `pod-patch` version for review.
Sep 6 2022, 10:19 AM
max published D5067: [services] Tunnelbroker - Changes to handle empty `message_id` inside the Rust `send_by_fcm_client` function for review.
Sep 6 2022, 6:57 AM
max published D5066: [services] Tunnelbroker - Changes to handle HTTP code inside the Rust `send_notif_to_apns` function for review.
Sep 6 2022, 6:45 AM
max published D5065: [services] Tunnelbroker - Add secrets handling for notifications in config file for review.
Sep 6 2022, 6:06 AM
max closed D4807: [services] Tunnelbroker - Update CMakeLists and Cargo build with the CXX integration updates.
Sep 6 2022, 5:21 AM
max committed rCOMM13f2e1f40883: [services] Tunnelbroker - Update CMakeLists and Cargo build with the CXX… (authored by max).
[services] Tunnelbroker - Update CMakeLists and Cargo build with the CXX…
Sep 6 2022, 5:21 AM
max updated the diff for D4807: [services] Tunnelbroker - Update CMakeLists and Cargo build with the CXX integration updates.

Rebase and merge.

Sep 6 2022, 5:14 AM
max closed D4894: [services] Tunnelbroker - Rust FCM push notifications library wrapper.
Sep 6 2022, 5:10 AM
max committed rCOMMec5b4c00245d: [services] Tunnelbroker - Rust FCM push notifications library wrapper (authored by max).
[services] Tunnelbroker - Rust FCM push notifications library wrapper
Sep 6 2022, 5:10 AM
max published D5064: [services] Tunnelbroker - Fix an OpenSSL crate collision for review.
Sep 6 2022, 5:08 AM
max updated the diff for D4894: [services] Tunnelbroker - Rust FCM push notifications library wrapper.

Rebase and merge.

Sep 6 2022, 5:01 AM
max closed D4540: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper.
Sep 6 2022, 4:59 AM
max committed rCOMM4a74cf9cecb5: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper (authored by max).
[services] Tunnelbroker - Rust APNS push notifications A2 library wrapper
Sep 6 2022, 4:59 AM
max added a comment to D4540: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper.

Android build error is unrelated to this diff (it doesn't touch any Android stuff), it fails with the downloading timeout.

Sep 6 2022, 4:57 AM
max updated the diff for D4540: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper.

Rebase on master and merge.

Sep 6 2022, 4:37 AM
max added inline comments to D4540: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper.
Sep 6 2022, 4:35 AM

Sep 2 2022

max requested review of D4894: [services] Tunnelbroker - Rust FCM push notifications library wrapper.
Sep 2 2022, 4:07 AM
max requested review of D4540: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper.
Sep 2 2022, 3:57 AM
max requested review of D4894: [services] Tunnelbroker - Rust FCM push notifications library wrapper.
Sep 2 2022, 3:44 AM

Sep 1 2022

max added a comment to D4540: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper.
In D4540#146009, @atul wrote:
In D4540#146008, @max wrote:
In D4540#145965, @jon wrote:

Android build fail isn't related to this diff:

You should be able to click on the gate, then select "restart build" on the right hand side.

Oh, I thought the state in phabricator will not update on this (it's linked to some unique id of the build run). That's cool, thanks!

The tricky thing here is if you restart a job from the Buildkite UI it won't be reflected in Phabricator, but if you restart a build from Phabricator (via Harbormaster) it will be reflected

Sep 1 2022, 12:00 PM
max added a comment to D4540: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper.
In D4540#145965, @jon wrote:

Android build fail isn't related to this diff:

You should be able to click on the gate, then select "restart build" on the right hand side.

Sep 1 2022, 11:53 AM
max added inline comments to D4894: [services] Tunnelbroker - Rust FCM push notifications library wrapper.
Sep 1 2022, 10:08 AM
max updated the diff for D4807: [services] Tunnelbroker - Update CMakeLists and Cargo build with the CXX integration updates.

Rebased on parent changes.

Sep 1 2022, 10:05 AM
max added a comment to D4540: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper.

Android build fail isn't related to this diff:

error An unexpected error occurred: "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz: Request failed \"503 Service Unavailable\"".
Sep 1 2022, 10:02 AM
max updated the diff for D4894: [services] Tunnelbroker - Rust FCM push notifications library wrapper.

Removing of wraping result in Ok.

Sep 1 2022, 10:00 AM
max updated the diff for D4540: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper.

Removing of wraping result in Ok.

Sep 1 2022, 9:57 AM

Aug 31 2022

max accepted D4998: [Services] Update blob to reference new directory.
Aug 31 2022, 5:01 PM
max accepted D4993: [Shared/docs] Update `yarn codegen-grpc`.
Aug 31 2022, 5:01 PM
max accepted D4992: [Shared] Copy protos to shared/protos, adjust CMake.
Aug 31 2022, 4:59 PM
max updated the test plan for D4540: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper.
Aug 31 2022, 4:48 PM
max updated the test plan for D4894: [services] Tunnelbroker - Rust FCM push notifications library wrapper.
Aug 31 2022, 4:46 PM
max updated the diff for D4807: [services] Tunnelbroker - Update CMakeLists and Cargo build with the CXX integration updates.

Rebase on the parent changes.

Aug 31 2022, 4:40 PM
max added inline comments to D4894: [services] Tunnelbroker - Rust FCM push notifications library wrapper.
Aug 31 2022, 4:37 PM
max updated the diff for D4894: [services] Tunnelbroker - Rust FCM push notifications library wrapper.

Use Anyhow and Result instead of bool.
Removing unwrap().
Using snake_case in Rust code, export to C++ as a camelCase.
Simplify the code.

Aug 31 2022, 4:33 PM
max added inline comments to D4540: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper.
Aug 31 2022, 12:24 PM
max updated subscribers of D4540: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper.

Removing @varun and @ashoat because of the vacation.

Aug 31 2022, 12:23 PM
max removed reviewers for D4540: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper: varun, ashoat.
Aug 31 2022, 12:23 PM
max added a comment to D4540: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper.
In D4540#142224, @varun wrote:

Can we create an Error type for this library and avoid panicking? It's fine in the lazy_static block, but I don't like the use of unwrap elsewhere

Edit: Alternatively we can use anyhow. See this example: https://cxx.rs/binding/result.html#returning-result-from-rust-to-c

Aug 31 2022, 12:22 PM
max updated the diff for D4540: [services] Tunnelbroker - Rust APNS push notifications A2 library wrapper.

Using Anyhow and Result instead of bool as a return.
Remove unwrap()ing.
Using snake_case in Rust code, export to C++ as a camelCase.
Simplify the code.

Aug 31 2022, 12:16 PM