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

feat(host): builtin http-server path routing #3924

Merged

Conversation

brooksmtownsend
Copy link
Member

@brooksmtownsend brooksmtownsend commented Jan 3, 2025

Feature or Problem

This PR refactors the builtin HTTP server for code reuse and adds an implementation for path-based routing. This uses the same link configuration and handling code as the native binary HTTP server and should be a drop-in replacement for path-based application yamls.

Related Issues

Fixes #3741

Release Information

wasmCloud 1.6.0

Consumer Impact

Testing

Unit Test(s)

Included a unit test to validate the link handling. https://github.com/wasmCloud/wasmCloud/actions/runs/12601826784/job/35123739425?pr=3924#step:4:2173

Acceptance or Integration

Marked as draft while I write an integration test for actually testing path routing.

Manual Verification

@brooksmtownsend brooksmtownsend force-pushed the feat/builtin-http-path-mode branch 2 times, most recently from 9607548 to 1c3fd27 Compare January 3, 2025 17:59
@brooksmtownsend brooksmtownsend force-pushed the feat/builtin-http-path-mode branch from 1c3fd27 to 3bdbc82 Compare January 13, 2025 17:28
@brooksmtownsend brooksmtownsend marked this pull request as ready for review January 14, 2025 15:29
@brooksmtownsend brooksmtownsend requested review from a team as code owners January 14, 2025 15:29
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>

feat(host): implement path based routing

Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
@brooksmtownsend brooksmtownsend force-pushed the feat/builtin-http-path-mode branch from 3407d2f to 3e19e9d Compare January 14, 2025 15:32
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
@brooksmtownsend
Copy link
Member Author

@rvolosatovs reintroduced the JoinSet and included an extra step in the integration test that ensures that the task is properly dropped and the address isn't being listened on after the provider stops

Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
@brooksmtownsend brooksmtownsend added this pull request to the merge queue Jan 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 17, 2025
@lachieh
Copy link
Contributor

lachieh commented Jan 17, 2025

Something is mad: https://github.com/wasmCloud/wasmCloud/actions/runs/12830733705/job/35780437640

building '/nix/store/1g5z81igslyqrhysic39n1hc7g246hrm-build-wash-oci-debian.drv'...
+ build wash:debian
+ /nix/store/zs1wfh2sh4pz6dpinw4z3zlzz4a8pk4k-buildah-wrapper-1.38.0/bin/buildah manifest create wash:debian
Error during unshare(...): Operation not permitted
Error: Process completed with exit code 1.

@brooksmtownsend brooksmtownsend added this pull request to the merge queue Jan 17, 2025
Merged via the queue into wasmCloud:main with commit faa9133 Jan 17, 2025
52 checks passed
@brooksmtownsend brooksmtownsend deleted the feat/builtin-http-path-mode branch January 17, 2025 19:18
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.

[FEATURE] Enable path-based routing mode with built-in HTTP server provider
4 participants