Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(headless-client): split up the entry points for headless client and IPC service #4942

Closed
wants to merge 41 commits into from

Conversation

ReactorScram
Copy link
Collaborator

@ReactorScram ReactorScram commented May 9, 2024

Builds atop #4930 and #4943

Tasks

Edit tasklist title
Beta Give feedback Tasklist Tasks, more options

Delete tasklist

Delete tasklist block?
Are you sure? All relationships in this tasklist will be removed.
  1. Make sure the token can be read from file
    Options
  2. Make sure the token can be read from env vars
    Options

@ReactorScram ReactorScram added area/linux_client Linux client area/tauri_client The Windows and Linux Tauri GUI clients labels May 9, 2024
@ReactorScram ReactorScram self-assigned this May 9, 2024
Copy link

vercel bot commented May 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
firezone ⬜️ Ignored (Inspect) Visit Preview May 10, 2024 8:55pm

@github-actions github-actions bot added the kind/refactor Code refactoring label May 9, 2024
Copy link

github-actions bot commented May 9, 2024

Terraform Cloud Plan Output

Plan: 15 to add, 15 to change, 15 to destroy.

Terraform Cloud Plan

@ReactorScram ReactorScram changed the base branch from refactor/remove-auto-ipc to fix/windows-dns-4899 May 10, 2024 20:30
@@ -131,8 +131,9 @@ jobs:
timeout 600 docker compose -f rust/snownet-tests/docker-compose.${{ matrix.name }}.yml up --exit-code-from dialer --abort-on-container-exit

compatibility-tests:
# Tests the older, published Client and Gateway against the new infrastructure
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could not remember which way it went

# Don't run compatibility tests when called from hotfix.yml or publish.yml on `main` because
# it'll be red if there was a breaking change we're tring to publish,
# it'll be red if there was a breaking change we're trying to publish,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noticed this typo while working on this

@@ -320,7 +320,6 @@ services:
- type=registry,ref=us-east1-docker.pkg.dev/firezone-staging/cache/client:main
args:
PACKAGE: firezone-headless-client
# Add "standalone" to the command here once PR $4604 merges
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing CLI args is complicated, skipping it for now

Copy link

Performance Test Results

TCP

Test Name Received/s Sent/s Retransmits
direct-tcp-client2server 240.4 MiB (-1%) 241.8 MiB (-1%) 328 (-12%)
direct-tcp-server2client 242.4 MiB (-2%) 244.0 MiB (-2%) 134 (+1%)
relayed-tcp-client2server 227.8 MiB (+0%) 228.8 MiB (+0%) 245 (+17%)
relayed-tcp-server2client 240.9 MiB (+2%) 241.7 MiB (+2%) 253 (-39%)

UDP

Test Name Total/s Jitter Lost
direct-udp-client2server 500.0 MiB (-0%) 0.02ms (+173%) 45.05% (+6%)
direct-udp-server2client 500.0 MiB (+0%) 0.02ms (+55%) 22.09% (-6%)
relayed-udp-client2server 500.0 MiB (+0%) 0.03ms (-20%) 56.06% (+2%)
relayed-udp-server2client 499.9 MiB (-0%) 0.02ms (-22%) 45.77% (+11%)

@ReactorScram
Copy link
Collaborator Author

Closing in favor of #4953. The refactors are taking too long so I'll skip most of them for now and try to do IPC without the refactoring.

github-merge-queue bot pushed a commit that referenced this pull request May 13, 2024
Closes #4907

They're still accepted, but the binary entirely determines the behavior.
This makes the code for CLI parsing and token handling simpler with
fewer branches, so it's easier to be sure it's correct.

Replaces #4942 which isn't doing what I intended anymore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/linux_client Linux client area/tauri_client The Windows and Linux Tauri GUI clients kind/refactor Code refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant