Skip to content

Fold ohttp-relay into rust-payjoin monorepo#1215

Merged
spacebear21 merged 6 commits intopayjoin:masterfrom
spacebear21:ohttp-relay-monorepo
Dec 9, 2025
Merged

Fold ohttp-relay into rust-payjoin monorepo#1215
spacebear21 merged 6 commits intopayjoin:masterfrom
spacebear21:ohttp-relay-monorepo

Conversation

@spacebear21
Copy link
Copy Markdown
Collaborator

Used Claude to run the git subtree command and clean up the workspace files.

Pull Request Checklist

Please confirm the following before requesting review:

@spacebear21 spacebear21 changed the title Ohttp relay monorepo Fold ohttp-relay into rust-payjoin monorepo Dec 5, 2025
@spacebear21 spacebear21 mentioned this pull request Dec 9, 2025
29 tasks
spacebear21 and others added 4 commits December 8, 2025 22:33
git-subtree-dir: ohttp-relay
git-subtree-split: 7bda6bd31f1131116affab93139764d098b032f5
Co-authored-by: Dan Gould <d@ngould.dev>
Co-authored-by: Yuval Kogman <nothingmuch@woobling.org>
Co-authored-by: benalleng <benalleng@gmail.com>
Co-authored-by: Carl Dong <accounts@carldong.me>
Co-authored-by: J. Azad EMERY <25751709+ethicnology@users.noreply.github.com>
Co-authored-by: zealsham <shammahagwor@gmail.com>
Fix lint errors emitted when running:

`cargo clippy --all-targets --keep-going --all-features -- -D warnings`
@spacebear21 spacebear21 marked this pull request as ready for review December 9, 2025 03:47
@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Dec 9, 2025

Pull Request Test Coverage Report for Build 20071170359

Details

  • 664 of 839 (79.14%) changed or added relevant lines in 8 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.3%) to 83.176%

Changes Missing Coverage Covered Lines Changed/Added Lines %
ohttp-relay/src/bootstrap/connect.rs 16 19 84.21%
ohttp-relay/src/gateway_uri.rs 97 101 96.04%
ohttp-relay/src/bootstrap/ws.rs 57 83 68.67%
ohttp-relay/src/lib.rs 122 152 80.26%
ohttp-relay/src/main.rs 0 30 0.0%
ohttp-relay/src/error.rs 0 34 0.0%
ohttp-relay/src/gateway_prober.rs 367 415 88.43%
Totals Coverage Status
Change from base Build 20071111877: -0.3%
Covered Lines: 9665
Relevant Lines: 11620

💛 - Coveralls

Copy link
Copy Markdown
Collaborator

@benalleng benalleng left a comment

Choose a reason for hiding this comment

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

Probably worth considering adding nixpkg channel as a workflow matrix so we can update it more easily in the future

Comment thread .github/workflows/rust.yml Outdated
- name: "Install nix"
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-23.11
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should probably update the nix channel here to 25.11

Copy link
Copy Markdown
Collaborator

@benalleng benalleng left a comment

Choose a reason for hiding this comment

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

Ack aaad1df

@spacebear21 spacebear21 merged commit e0c4174 into payjoin:master Dec 9, 2025
10 checks passed
# This is necessary for ohttp-relay integration tests
- name: "Add nginxWithStream to PATH"
run: |
nix build .#nginx-with-stream -o nginx
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

although -o is more stable than the usual result, i would suggest using

Suggested change
nix build .#nginx-with-stream -o nginx
echo "$( nix build .#nginx-wiith-stream --print-out-paths )/bin" >> $GITHUB_PATH

Comment on lines +119 to +123
- name: "Install nix"
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-25.11
# This is necessary for ohttp-relay integration tests
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

(these are mainly notes for tomorrow's call)

determinate nix installer is flake based, so no need to specify a channel:

https://github.com/DeterminateSystems/nix-installer-action

and we can add caching with github's caching api:

https://github.com/DeterminateSystems/magic-nix-cache-action

which would be very useful for nix build and nix flake check of our own stuff

relatedly, we probably also want https://github.com/DeterminateSystems/flake-checker-action and https://github.com/DeterminateSystems/update-flake-lock

Comment thread flake.nix
cargo-watch
rust-analyzer
dart
nginxWithStream
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this kinda slows down cold starting a devshell since it must be compiled, so hopefully we can prioritize removing it before too long by replacing with tokio-rustls-acme much like the directory

Comment thread flake.nix
doCheck = true;
dontFixup = true;
installPhase = "mkdir $out";
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this needs nginx as a native build input and the nginx.conf.template file for the flake checks to pass, opening a PR to fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants