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-2989 A Dockerfile for local development #1381

Merged
merged 54 commits into from
Oct 16, 2023

Conversation

blink1073
Copy link
Member

@blink1073 blink1073 commented Sep 13, 2023

GODRIVER-2989

Summary

Adds a Dockerfile and a runner script.

Background & Motivation

Make it easier to test in a reproducible Linux environment.

@prestonvasquez prestonvasquez changed the base branch from master to v1 September 13, 2023 18:06
@blink1073 blink1073 changed the title GODRIVER-2924 Set up coverage reporting GODRIVER-2989 A Dockerfile for local development Sep 18, 2023
@blink1073 blink1073 marked this pull request as ready for review September 18, 2023 14:45
@blink1073 blink1073 requested a review from a team as a code owner September 18, 2023 14:45
@blink1073 blink1073 requested review from matthewdale and removed request for a team September 18, 2023 14:45
Copy link
Collaborator

@matthewdale matthewdale left a comment

Choose a reason for hiding this comment

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

Looks good 👍

Dockerfile Outdated Show resolved Hide resolved
etc/docker_entry.sh Outdated Show resolved Hide resolved
docs/CONTRIBUTING.md Outdated Show resolved Hide resolved
docs/CONTRIBUTING.md Outdated Show resolved Hide resolved
docs/CONTRIBUTING.md Outdated Show resolved Hide resolved
docs/CONTRIBUTING.md Show resolved Hide resolved
matthewdale
matthewdale previously approved these changes Sep 20, 2023
Copy link
Collaborator

@matthewdale matthewdale left a comment

Choose a reason for hiding this comment

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

Looks great 👍

Is there any chance we can switch the CI to use this as well, which would force us to keep this up-to-date?

@blink1073
Copy link
Member Author

Well, the tests don't fully pass. For me locally even with bash etc/run_docker.sh test-short I see the following failure:

go test  -tags= -timeout 60s -short ./...
ok  	go.mongodb.org/mongo-driver/benchmark	0.020s [no tests to run]
ok  	go.mongodb.org/mongo-driver/bson	0.212s
--- FAIL: TestTimeCodec (0.00s)
    --- FAIL: TestTimeCodec/UseLocalTimeZone (0.00s)
        --- FAIL: TestTimeCodec/UseLocalTimeZone/true (0.00s)
            time_codec_test.go:44:
                	Error Trace:	/src/bson/bsoncodec/time_codec_test.go:44
                	Error:      	Not equal:
                	            	expected: true
                	            	actual  : false
                	Test:       	TestTimeCodec/UseLocalTimeZone/true
                	Messages:   	Expected UTC: false, got UTC
FAIL
FAIL	go.mongodb.org/mongo-driver/bson/bsoncodec	0.040s

@blink1073 blink1073 marked this pull request as ready for review October 11, 2023 13:16
@blink1073
Copy link
Member Author

blink1073 commented Oct 11, 2023

Okay, this is ready for review again. I added a test, which meant adding a few test skips for docker-specific considerations. I also created a script to install libmongocrypt to avoid repeating code and get us closer to the goal of less code in config.yml. This will also close GODRIVER-2994.

Copy link
Collaborator

@matthewdale matthewdale left a comment

Choose a reason for hiding this comment

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

Awesome changes, looks good! 👍

@blink1073 blink1073 merged commit 6d7a981 into mongodb:v1 Oct 16, 2023
35 of 37 checks passed
@blink1073 blink1073 deleted the GODRIVER-2924 branch October 16, 2023 20:38
blink1073 added a commit to blink1073/mongo-go-driver that referenced this pull request Oct 16, 2023
Signed-off-by: Eng Zer Jun <[email protected]>
Co-authored-by: Qingyang Hu <[email protected]>
Co-authored-by: Preston Vasquez <[email protected]>
Co-authored-by: Matt Dale <[email protected]>
Co-authored-by: Eng Zer Jun <[email protected]>
(cherry picked from commit 6d7a981)
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.

5 participants