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 server extra tests #1425

Closed
wants to merge 7 commits into from
Closed

Add server extra tests #1425

wants to merge 7 commits into from

Conversation

82marbag
Copy link
Contributor

Motivation and Context

See: #1164

Description

Tests:

Testing

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates
  • I have updated CHANGELOG.next.toml if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@82marbag 82marbag requested a review from a team as a code owner May 31, 2022 14:15
@82marbag 82marbag marked this pull request as draft May 31, 2022 14:16
@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

Rust Wrk benchmark report:

Duration: 90 sec, Connections: 32, Threads: 2

Measurement Deviation Current Old
Requests/sec 3.76% 35676.94 34385.18
Total requests 3.74% 3211520 3095789
Total errors NaN% 0 0
Total successes 3.74% 3211520 3095789
Average latency ms -3.19% 0.91 0.94
Minimum latency ms 0.00% 0.03 0.03
Maximum latency ms 5.52% 21.97 20.82
Stdev latency ms -4.08% 0.47 0.49
Transfer Mb 3.74% 333.84 321.81
Connect errors NaN% 0 0
Read errors NaN% 0 0
Write errors NaN% 0 0
Status errors (not 2xx/3xx) NaN% 0 0
Timeout errors NaN% 0 0

@82marbag
Copy link
Contributor Author

Depends on #1424

@@ -660,7 +660,6 @@ class ServerProtocolTestGenerator(
FailingTest(RestJson, "RestJsonHttpWithEmptyStructurePayload", TestType.Request),
FailingTest(RestJson, "RestJsonHttpResponseCodeDefaultsToModeledCode", TestType.Response),

FailingTest(RestJson, "RestJsonWithPayloadExpectsImpliedAccept", TestType.MalformedRequest),
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is a leftover from your other PR. It's causing CI to fail here, since we're not fixing this test in this PR.

codegen-server-test/build.gradle.kts Outdated Show resolved Hide resolved
@@ -0,0 +1,126 @@
$version: "1.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't copy the contents of this file. Symlink it so that both client and server use the same model. See simple.smithy for example.

➜ file codegen-test/model/simple.smithy
codegen-test/model/simple.smithy: symbolic link to ../../codegen-server-test/model/simple.smithy

Daniele Ahmed added 6 commits June 7, 2022 10:29
Comply with content-types as described in the documentation [0]

[0] https://awslabs.github.io/smithy/1.0/spec/aws/aws-restjson1-protocol.html#content-type

Signed-off-by: Daniele Ahmed <ahmeddan@amazon.com>
Signed-off-by: Daniele Ahmed <ahmeddan@amazon.de>
Signed-off-by: Daniele Ahmed <ahmeddan@amazon.de>
Add rest-json-extras.smithy and protocol tests that are now failing in smithy-rs,
but are not correct from smithy

Closes: #1164

Signed-off-by: Daniele Ahmed <ahmeddan@amazon.de>
Signed-off-by: Daniele Ahmed <ahmeddan@amazon.de>
Signed-off-by: Daniele Ahmed <ahmeddan@amazon.de>
@github-actions
Copy link

github-actions bot commented Jun 7, 2022

A new generated diff is ready to view.

A new doc preview is ready to view.

Rust Wrk benchmark report:

Duration: 90 sec, Connections: 32, Threads: 2

Measurement Deviation Current Old
Requests/sec 2.26% 73896.42 72261.61
Total requests 2.16% 6650983 6510588
Total errors NaN% 0 0
Total successes 2.16% 6650983 6510588
Average latency ms -1.61% 0.61 0.62
Minimum latency ms 0.00% 0.02 0.02
Maximum latency ms 20.57% 21.57 17.89
Stdev latency ms 3.30% 0.94 0.91
Transfer Mb 2.16% 691.37 676.78
Connect errors NaN% 0 0
Read errors NaN% 0 0
Write errors NaN% 0 0
Status errors (not 2xx/3xx) NaN% 0 0
Timeout errors NaN% 0 0

Signed-off-by: Daniele Ahmed <ahmeddan@amazon.de>
@github-actions
Copy link

github-actions bot commented Jun 7, 2022

A new generated diff is ready to view.

A new doc preview is ready to view.

Rust Wrk benchmark report:

Duration: 90 sec, Connections: 32, Threads: 2

Measurement Deviation Current Old
Requests/sec -11.59% 71125.94 80447.19
Total requests -11.58% 6407649 7247186
Total errors NaN% 0 0
Total successes -11.58% 6407649 7247186
Average latency ms -40.20% 0.61 1.02
Minimum latency ms 0.00% 0.02 0.02
Maximum latency ms -3.57% 20 20.74
Stdev latency ms -51.96% 0.86 1.79
Transfer Mb -11.58% 666.08 753.35
Connect errors NaN% 0 0
Read errors NaN% 0 0
Write errors NaN% 0 0
Status errors (not 2xx/3xx) NaN% 0 0
Timeout errors NaN% 0 0

Base automatically changed from fix-tests to main June 13, 2022 09:17
@82marbag 82marbag closed this Jun 20, 2022
@82marbag 82marbag deleted the fix-tests-2 branch June 20, 2022 16:19
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.

2 participants