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

Test failing (echoMessage failure) #486

Closed
maggiechew opened this issue Apr 5, 2024 · 2 comments · Fixed by #487
Closed

Test failing (echoMessage failure) #486

maggiechew opened this issue Apr 5, 2024 · 2 comments · Fixed by #487
Assignees
Labels
bug This issue is a bug. p3 This is a minor priority issue pending-release This issue will be fixed by an approved PR that hasn't been released yet.

Comments

@maggiechew
Copy link

Describe the bug

Trying to fork to make suggestions, ran tests & was bug unrelated to changes (happens even directly after forking with no changes to main.)

echoMessage failure test - server side internal service error

Eventstream RPC client configuration must have a valid host name

  1067 |  */
  1068 | export function createRpcError(type: RpcErrorType, description: string, internalError?: CrtError, serviceError?: any) {
> 1069 |     return new RpcError({
       |            ^
  1070 |         type: type,
  1071 |         description: description,
  1072 |         internalError: internalError,

  at createRpcError (lib/eventstream_rpc.ts:1069:12)
  at Object.validateRpcClientConfig (lib/eventstream_rpc.ts:280:15)
  at Object.createClient (lib/echotestrpc.ts:24:21)
  at lib/echotestrpc.spec.ts:427:44
  at lib/echotestrpc.spec.ts:35:71
  at Object.<anonymous>.__awaiter (lib/echotestrpc.spec.ts:31:12)
  at Object.<anonymous> (lib/echotestrpc.spec.ts:426:82)

Test Suites: 1 failed, 1 total

Expected Behavior

All preexisting tests already merged into main should have be passing already; suggests tests were not run prior to merge or something else has changed.
Also over 20 skipped tests seems very extreme; suggests something needs to be addressed with tests overall.

Current Behavior

See bug description for stack trace & message.

Reproduction Steps

npm i
npm run test

Possible Solution

No response

Additional Information/Context

using VS code

SDK version used

v2 (?) latest commit 4425367

Environment details (OS name and version, etc.)

windows 11

@maggiechew maggiechew added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 5, 2024
@jmklix
Copy link
Member

jmklix commented Apr 5, 2024

This test:

test('echoMessage failure test - server side internal service error', async () => {
    let client: echo_rpc.Client = echo_rpc.createClient(makeGoodConfig());

    await client.connect();

needs to connect to the test host to be able to run successfully.

hostName: process.env.AWS_TEST_EVENT_STREAM_ECHO_SERVER_HOST ?? "",

I have made to PR to make this a conditional_test. This and all of the other skipped tests need to be skipped because they don't have the echo server environment available. These test are made to run in the CI and they do pass successfully there. Thank you for the concern over the failing test.

@jmklix jmklix added pending-release This issue will be fixed by an approved PR that hasn't been released yet. p3 This is a minor priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Apr 5, 2024
@jmklix jmklix self-assigned this Apr 5, 2024
@jmklix jmklix linked a pull request Apr 5, 2024 that will close this issue
Copy link

github-actions bot commented Apr 8, 2024

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p3 This is a minor priority issue pending-release This issue will be fixed by an approved PR that hasn't been released yet.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants