-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1718 from freedomofpress/proxy-rusting
Implement proxy v2 architecture, in Rust
- Loading branch information
Showing
231 changed files
with
42,302 additions
and
36,915 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,12 +25,6 @@ jobs: | |
- proxy | ||
debian_version: | ||
- bookworm | ||
# bookworm jobs are failing and will be | ||
# replaced with proxy v2 shortly, so skip | ||
# https://github.com/freedomofpress/securedrop-client/issues/1681 | ||
exclude: | ||
- component: proxy | ||
debian_version: bookworm | ||
runs-on: ubuntu-latest | ||
container: debian:${{ matrix.debian_version }} | ||
steps: | ||
|
@@ -41,13 +35,20 @@ jobs: | |
run: | | ||
# We want to run tests as a regular user, similar to Qubes VMs | ||
useradd --create-home --shell /bin/bash user | ||
- name: Install Rust-specific dependencies | ||
run: apt-get install --yes build-essential curl libssl-dev pkg-config | ||
if: ${{ matrix.component == 'proxy' }} | ||
- uses: actions/checkout@v4 | ||
# Install Rust 1.74.1, keep in sync with rust-toolchain.toml | ||
- uses: dtolnay/[email protected] | ||
if: ${{ matrix.component == 'proxy' }} | ||
- name: Install dependencies | ||
run: | | ||
sudo -u user poetry -C ${{ matrix.component }} install | ||
- name: Run test | ||
run: | | ||
sudo chown -R user:user . | ||
sudo -u user make -C ${{ matrix.component }} test | ||
sudo -u user PATH=$PATH:$HOME/.cargo/bin make -C ${{ matrix.component }} test | ||
# Run the various `make test-...` commands for the client. | ||
# TODO: these should be consolidated into one when feasible | ||
|
@@ -71,6 +72,7 @@ jobs: | |
run: | | ||
# We want to run tests as a regular user, similar to Qubes VMs | ||
useradd --create-home --shell /bin/bash user | ||
sudo -u user bash -c "mkdir ~/Downloads" | ||
- name: Install dependencies | ||
run: | | ||
make -C client ci-install-deps | ||
|
Oops, something went wrong.