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

Add .NET version of tcp/noise/yamux #298

Draft
wants to merge 18 commits into
base: master
Choose a base branch
from
Draft

Conversation

flcl42
Copy link

@flcl42 flcl42 commented Sep 4, 2023

Adds .NET implementation of tcp/noise/yamux stack of libp2p to the interoperability testing suite

@flcl42 flcl42 marked this pull request as ready for review September 6, 2023 10:28
Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

I will trigger a run.

multidim-interop/impl/dotnet/v1.0/.gitignore Outdated Show resolved Hide resolved
multidim-interop/impl/dotnet/v1.0/TestPlansApp.csproj Outdated Show resolved Hide resolved
@flcl42
Copy link
Author

flcl42 commented Oct 3, 2023

Let's add quic also, converting to draft

@flcl42 flcl42 marked this pull request as draft October 3, 2023 12:37
@mxinden
Copy link
Member

mxinden commented Oct 16, 2023

Approved and ran CI.

Let's add quic also, converting to draft

I am happy to merge here without QUIC already. Your call.

@flcl42 flcl42 marked this pull request as ready for review October 18, 2023 14:25
@flcl42 flcl42 requested a review from mxinden October 25, 2023 14:31
@mxinden
Copy link
Member

mxinden commented Oct 27, 2023

@flcl42 seems like dotnet is failing with all other implementations. Mind taking a look?

@flcl42
Copy link
Author

flcl42 commented Oct 27, 2023

@flcl42 seems like dotnet is failing with all other implementations. Mind taking a look?

The current implementation:

  • is not compatible with zig and rust via quic-v1
  • has flaky tests for js x dotnet, let me try to fix it again.
    Other pairs work.

If it's better to have it 100% passing, let me disable quic for now.

Copy link
Contributor

@thomaseizinger thomaseizinger Jan 13, 2024

Choose a reason for hiding this comment

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

For all other implementations, we keep the actual test within the respective libp2p repository so it can be atomically updated with the library code.

Unless there is a strong reason to not do that for .net, I'd suggest to do the same here.

Copy link
Contributor

Choose a reason for hiding this comment

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

I am assuming this needs to be reverted?

@@ -9,7 +9,7 @@ import { stringify } from 'yaml';
import { dialerStdout, dialerTimings } from './compose-stdout-helper';

const exec = util.promisify(execStd);
const timeoutSecs = 3 * 60
const timeoutSecs = 42
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this intentional?

@@ -50,7 +50,9 @@ export async function run(namespace: string, compose: ComposeSpecification, opts
const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), 1000 * timeoutSecs)
const { signal } = controller;
const { stdout, stderr } = await exec(`docker compose -f ${path.join(dir, "compose.yaml")} up ${upFlags.join(" ")}`, { signal })
const dcPath = `docker compose -f ${path.join(dir, "compose.yaml")} up ${upFlags.join(" ")}`
console.warn(dcPath)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer making this a more descriptive log line if we intend to keep it.

@flcl42 flcl42 marked this pull request as draft January 18, 2024 10:41
@flcl42
Copy link
Author

flcl42 commented Jan 18, 2024

@thomaseizinger Thanks for the remarks! Right now we are refactoring/fixing the library to fit the tests. I'll also address the suggestions in new update.

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.

3 participants