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

GODRIVER-2916 Test against updated FaaS scripts #1343

Merged
merged 10 commits into from
Aug 11, 2023

Conversation

blink1073
Copy link
Member

GODRIVER-2916

Summary

Run against the updated scripts in mongodb-labs/drivers-evergreen-tools#331, which check for errors.

Background & Motivation

The script had been failing silently.

@blink1073
Copy link
Member Author

blink1073 commented Aug 2, 2023

@prestonvasquez I tried increasing the timeout to 600 seconds, but I am still failing with this error:

{"errorMessage":"failed to insert: server selection error: context deadline exceeded, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: dbx-go-lambda-4acd5513-shard-00-02.mez9d.mongodb.net:27017, Type: Unknown, Last error: dial tcp 174.129.50.30:27017: i/o timeout }, { Addr: dbx-go-lambda-4acd5513-shard-00-00.mez9d.mongodb.net:27017, Type: Unknown, Last error: dial tcp 34.233.50.78:27017: i/o timeout }, { Addr: dbx-go-lambda-4acd5513-shard-00-01.mez9d.mongodb.net:27017, Type: Unknown, Last error: dial tcp 3.213.195.179:27017: i/o timeout }, ] }","errorType":"wrapError"}Exiting due to FunctionError!
[2023/08/02 21:25:27.574] 

@blink1073 blink1073 changed the title GODRIVER-2916 Test against updated scripts GODRIVER-2916 Test against updated FaaS scripts Aug 3, 2023
@blink1073
Copy link
Member Author

Note: I was able to start a remote cluster and connect to it with the local makefile.

@blink1073 blink1073 marked this pull request as ready for review August 4, 2023 11:11
@blink1073 blink1073 requested a review from a team as a code owner August 4, 2023 11:11
@blink1073 blink1073 requested review from prestonvasquez and removed request for a team August 4, 2023 11:11
@@ -21,7 +21,7 @@ import (
"go.mongodb.org/mongo-driver/mongo/options"
)

const timeout = 10 * time.Second
const timeout = 600 * time.Second
Copy link
Collaborator

Choose a reason for hiding this comment

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

Optional: consider using a smaller timeout. If there is an issue with selecting a server for an operation, it would take 10 minutes for the operation to timeout.

@@ -163,7 +163,7 @@ functions:
# If this was a patch build, doing a fresh clone would not actually test the patch
cp -R ${PROJECT_DIRECTORY}/ $DRIVERS_TOOLS
else
git clone https://github.com/mongodb-labs/drivers-evergreen-tools.git $DRIVERS_TOOLS
git clone --branch DRIVERS-2384 https://github.com/blink1073/drivers-evergreen-tools.git $DRIVERS_TOOLS
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will this be updated once mongodb-labs/drivers-evergreen-tools PR #331 is merged ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I'll remove this and try a smaller timeout once that is merged.

@github-actions
Copy link

API Change Report

No changes found!

@blink1073 blink1073 merged commit d3fecf9 into mongodb:master Aug 11, 2023
18 of 22 checks passed
@blink1073 blink1073 deleted the GODRIVER-2916-2 branch August 11, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants