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

chore: make testing more resilient and update docs #9278

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

matthewmcneely
Copy link
Member

Description

This PR updates testing code to make testing easier on non-Linux environments and fix some commonly failing tests. It also more thoroughly documents the t framework as well as offering guidance on other tests.

Checklist

  • Code compiles correctly and linting passes locally

@matthewmcneely matthewmcneely requested a review from a team as a code owner January 15, 2025 19:14
@matthewmcneely matthewmcneely requested review from ryanfoxtyler and mangalaman93 and removed request for a team January 15, 2025 19:14
@github-actions github-actions bot added area/testing Testing related issues area/documentation Documentation related issues. area/core internal mechanisms go Pull requests that update Go code labels Jan 15, 2025
Seeing this issue occasionally

=== RUN   TestLoaderXidmap
    client.go:222:
        	Error Trace:	/home/runner/work/dgraph/dgraph/testutil/client.go:222
        	            				/home/runner/work/dgraph/dgraph/systest/loader/loader_test.go:49
        	Error:      	Received unexpected error:
        	            	rpc error: code = Unavailable desc = connection error: desc = "error reading server preface: remote error: tls: certificate required"
        	Test:       	TestLoaderXidmap
--- FAIL: TestLoaderXidmap (0.01s)
Copy link

trunk-io bot commented Jan 15, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@matthewmcneely
Copy link
Member Author

@ryanfoxtyler The test failures are the "usual suspects"... this PR adds some improvements in resiliency (but not enough I guess!). But the docs are the most important improvements.

mangalaman93
mangalaman93 previously approved these changes Jan 16, 2025
@github-actions github-actions bot added area/enterprise Related to proprietary features area/enterprise/acl Related to Access Control Lists labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core internal mechanisms area/documentation Documentation related issues. area/enterprise/acl Related to Access Control Lists area/enterprise Related to proprietary features area/testing Testing related issues go Pull requests that update Go code
Development

Successfully merging this pull request may close these issues.

2 participants