Skip to content

Conversation

@miparnisari
Copy link
Contributor

@miparnisari miparnisari commented May 9, 2025

C:\Users\mparn\Documents\GitHub\zed (main)
λ go test -race ./... -count=1
?       github.com/authzed/zed/cmd/zed  [no test files]
{"level":"trace","context-override-via-cli":true,"context":{"Name":"","Endpoint":"e1","APIToken":"t1","Insecure":true,"NoVerifyCA":true,"CACert":"aGk="},"time":"2025-05-08T14:58:25-07:00"}
{"level":"trace","context-override-via-cli":false,"context":{"Name":"","Endpoint":"e2","APIToken":"t2","Insecure":false,"NoVerifyCA":false,"CACert":"Ynll"},"time":"2025-05-08T14:58:25-07:00"}
--- FAIL: TestGetTokenWithCLIOverride (1.45s)
    testing.go:1267: TempDir RemoveAll cleanup: remove C:\Users\mparn\AppData\Local\Temp\TestGetTokenWithCLIOverride2482217832\001\3569675982: The process cannot access the file because it is being used by another process.
{"level":"trace","context-override-via-cli":true,"context":{"Name":"","Endpoint":"e1","APIToken":"t1","Insecure":true,"NoVerifyCA":false,"CACert":null},"time":"2025-05-08T14:58:26-07:00"}
{"level":"trace","context-override-via-cli":true,"context":{"Name":"","Endpoint":"e1","APIToken":"t1","Insecure":true,"NoVerifyCA":false,"CACert":null},"time":"2025-05-08T14:58:26-07:00"}
{"level":"error","error":"rpc error: code = Unavailable desc = ","attempt":1,"time":"2025-05-08T14:58:27-07:00","message":"retrying gRPC call"}
{"level":"trace","trailers":{"content-type":["application/grpc"]},"time":"2025-05-08T14:58:27-07:00","message":"parsed trailers"}
{"level":"debug","error":"key `io.spicedb.respmeta.dispatchedoperationscount` not found in trailer","time":"2025-05-08T14:58:27-07:00","message":"error reading dispatched operations trailer"}
{"level":"debug","error":"key `io.spicedb.respmeta.cachedoperationscount` not found in trailer","time":"2025-05-08T14:58:27-07:00","message":"error reading cached operations trailer"}
{"level":"debug","dispatch":0,"cached":0,"time":"2025-05-08T14:58:27-07:00","message":"extracted response dispatch metadata"}
FAIL
FAIL    github.com/authzed/zed/internal/client  1.994s
--- FAIL: TestBackupCreateCmdFunc (2.46s)
    --- FAIL: TestBackupCreateCmdFunc/fails_if_backup_without_progress_file_exists (1.62s)
        testing.go:1267: TempDir RemoveAll cleanup: remove C:\Users\mparn\AppData\Local\Temp\TestBackupCreateCmdFuncfails_if_backup_without_progress_file_exists952515208\001\1b5e1504-8293-4c95-989a-8297c1b66451: The process cannot access the file because it is being used by another process.
--- FAIL: TestCommandOutput (7.85s)
    --- FAIL: TestCommandOutput/prints_usage_on_invalid_command_error (1.48s)
        testing.go:1267: TempDir RemoveAll cleanup: remove C:\Users\mparn\AppData\Local\Temp\TestCommandOutputprints_usage_on_invalid_command_error3035192346\001\f737b212-2212-406e-b525-17dfe67a00c9: The process cannot access the file because it is being used by another process.
    --- FAIL: TestCommandOutput/prints_usage_on_invalid_flag_error (1.76s)
        testing.go:1267: TempDir RemoveAll cleanup: remove C:\Users\mparn\AppData\Local\Temp\TestCommandOutputprints_usage_on_invalid_flag_error4215485033\001\b9208287-4881-43cd-8e35-3c2948a7189a: The process cannot access the file because it is being used by another process.
    --- FAIL: TestCommandOutput/prints_usage_on_parameter_validation_error (1.65s)
        testing.go:1267: TempDir RemoveAll cleanup: remove C:\Users\mparn\AppData\Local\Temp\TestCommandOutputprints_usage_on_parameter_validation_error3170615837\001\69334340-df0c-4ee4-b22d-4437409ef1f0: The process cannot access the file because it is being used by another process.
    --- FAIL: TestCommandOutput/prints_correct_usage (1.47s)
        testing.go:1267: TempDir RemoveAll cleanup: remove C:\Users\mparn\AppData\Local\Temp\TestCommandOutputprints_correct_usage3136258689\001\03e53205-9fb0-4884-9162-d1169832df02: The process cannot access the file because it is being used by another process.
    --- FAIL: TestCommandOutput/does_not_print_usage_on_command_error (1.49s)
        testing.go:1267: TempDir RemoveAll cleanup: remove C:\Users\mparn\AppData\Local\Temp\TestCommandOutputdoes_not_print_usage_on_command_error900788158\001\9019e5c4-9c83-4328-8458-6d9e3134e937: The process cannot access the file because it is being used by another process.
--- FAIL: TestImportCmdHappyPath (0.01s)
    import_test.go:49:
                Error Trace:    C:/Users/mparn/Documents/GitHub/zed/internal/cmd/import_test.go:49
                Error:          Received unexpected error:
                                open happy-path-validation-schema.zed: The system cannot find the file specified.
                Test:           TestImportCmdHappyPath
--- FAIL: TestSchemaCompile (0.00s)
    --- FAIL: TestSchemaCompile/file_not_found (0.00s)
        schema_test.go:174:
                Error Trace:    C:/Users/mparn/Documents/GitHub/zed/internal/cmd/schema_test.go:174
                Error:          "failed to read schema file: open preview-test\\nonexistent.zed: The system cannot find the file specified." does not contain "no such file or directory"
                Test:           TestSchemaCompile/file_not_found
--- FAIL: TestValidate (0.00s)
    --- FAIL: TestValidate/external_schema_passes (0.00s)
        validate_test.go:287:
                Error Trace:    C:/Users/mparn/Documents/GitHub/zed/internal/cmd/validate_test.go:287
                Error:          Received unexpected error:
                                open external-schema.zed: The system cannot find the file specified.
                Test:           TestValidate/external_schema_passes
    --- FAIL: TestValidate/composable_in_validation_yaml_with_standard_fails (0.00s)
        validate_test.go:291:
                Error Trace:    C:/Users/mparn/Documents/GitHub/zed/internal/cmd/validate_test.go:291
                Error:          "open composable-schema-root.zed: The system cannot find the file specified." does not contain "Unexpected token at root level"
                Test:           TestValidate/composable_in_validation_yaml_with_standard_fails
    --- FAIL: TestValidate/assertions_fail (0.01s)
        validate_test.go:288:
                Error Trace:    C:/Users/mparn/Documents/GitHub/zed/internal/cmd/validate_test.go:288
                Error:          Not equal:
                                expected: "error:  Expected relation or permission document:1#viewer@user:maria to exist           \n  8 |   }\n  9 | assertions:\n 10 |   assertTrue:\n 11 >     - \"document:1#viewer@user:maria\"\n    >
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 12 | \n\n  Explanation:\n  ⨉ document:1 viewer (Xs)\n  └── ⨉ document:1 view (Xs)\n  \n\n\n"
                                actual  : "error:  Expected relation or permission document:1#viewer@user:maria to exist           \n  8 |   }\n  9 | assertions:\n 10 |   assertTrue:\n 11 >     - \"document:1#viewer@user:maria\"\n    >
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 12 | \n\n  Explanation:\n  \x1b[31m⨉\x1b[0m \x1b[90mdocument\x1b[0m:\x1b[90m1\x1b[0m \x1b[90mviewer\x1b[0m (Xs)\n  └── \x1b[31m⨉\x1b[0m \x1b[90mdocument\x1b[0m:\x1b[90m1\x1b[0m \x1b[90mview\x1b[0m (Xs)\n  \n\n\n"

                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -9,4 +9,4 @@
                                   Explanation:
                                -  ⨉ document:1 viewer (Xs)
                                -  └── ⨉ document:1 view (Xs)
                                +  ⨉ document:1 viewer (Xs)
                                +  └── ⨉ document:1 view (Xs)

                Test:           TestValidate/assertions_fail
    --- FAIL: TestValidate/composable_in_validation_yaml_with_composable_passes (0.00s)
        validate_test.go:287:
                Error Trace:    C:/Users/mparn/Documents/GitHub/zed/internal/cmd/validate_test.go:287
                Error:          Received unexpected error:
                                open composable-schema-root.zed: The system cannot find the file specified.
                Test:           TestValidate/composable_in_validation_yaml_with_composable_passes
    --- FAIL: TestValidate/multiple_files_passes (0.01s)
        validate_test.go:287:
                Error Trace:    C:/Users/mparn/Documents/GitHub/zed/internal/cmd/validate_test.go:287
                Error:          Received unexpected error:
                                open external-schema.zed: The system cannot find the file specified.
                Test:           TestValidate/multiple_files_passes
FAIL
FAIL    github.com/authzed/zed/internal/cmd     14.450s
--- FAIL: TestWriteRelationshipsArgs (1.75s)
    testing.go:1267: TempDir RemoveAll cleanup: remove C:\Users\mparn\AppData\Local\Temp\TestWriteRelationshipsArgs3195926403\001\spicedb-3668298210: The process cannot access the file because it is being used by another process.
{
  "writtenAt": {
    "token": "test"
  }
}
--- FAIL: TestWriteRelationshipCmdFuncFromTTY (1.88s)
    testing.go:1267: TempDir RemoveAll cleanup: remove C:\Users\mparn\AppData\Local\Temp\TestWriteRelationshipCmdFuncFromTTY4215383988\001\spicedb-1802411991: The process cannot access the file because it is being used by another process.

{
  "writtenAt": {
    "token": "test"
  }
}
{
  "writtenAt": {
    "token": "test"
  }
}
{
  "writtenAt": {
    "token": "test"
  }
}
{
  "writtenAt": {
    "token": "test"
  }
}
{
  "writtenAt": {
    "token": "test"
  }
}
{
  "writtenAt": {
    "token": "test"
  }
}
{
  "writtenAt": {
    "token": "test"
  }
}
{
  "writtenAt": {
    "token": "test"
  }
}
GhUKEzE3NDY3NDE1MTIxMDc1OTU1MDE=
GhUKEzE3NDY3NDE1MTI1NDYxNjk4MDA=
--- FAIL: TestBulkDeleteManyForcing (0.45s)
    relationship_test.go:761:
                Error Trace:    C:/Users/mparn/Documents/GitHub/zed/internal/commands/relationship_test.go:844
                                                        C:/Users/mparn/Documents/GitHub/zed/internal/commands/relationship_test.go:816
                                                        C:/Users/mparn/Documents/GitHub/zed/internal/commands/relationship_test.go:761
                Error:          Not equal:
                                expected: 0
                                actual  : 3
                Test:           TestBulkDeleteManyForcing
FAIL
FAIL    github.com/authzed/zed/internal/commands        5.132s
?       github.com/authzed/zed/internal/console [no test files]
ok      github.com/authzed/zed/internal/decode  1.242s
ok      github.com/authzed/zed/internal/grpcutil        2.273s
ok      github.com/authzed/zed/internal/printers        1.242s
ok      github.com/authzed/zed/internal/storage 1.525s
?       github.com/authzed/zed/internal/testing [no test files]
?       github.com/authzed/zed/magefiles        [no test files]
ok      github.com/authzed/zed/pkg/backupformat 1.687s
FAIL

C:\Users\mparn\Documents\GitHub\zed (main)

@miparnisari miparnisari force-pushed the windows-test-failures branch 8 times, most recently from 6aa426a to 3f10407 Compare May 9, 2025 01:45
steps:
- uses: "actions/checkout@v4"
- uses: "authzed/actions/setup-go@main"
- uses: "authzed/action-spicedb@v1"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not needed

files: []string{
filepath.Join("preview-test", "nonexistent.zed"),
},
expectErr: `no such file or directory`,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

On windows the error is The system cannot find the file specified. 🙃

@miparnisari miparnisari force-pushed the windows-test-failures branch from 3f10407 to 5938aa7 Compare May 9, 2025 17:14
@miparnisari miparnisari marked this pull request as ready for review May 9, 2025 17:25
@miparnisari miparnisari force-pushed the windows-test-failures branch from 5938aa7 to f5850af Compare May 9, 2025 17:27
@miparnisari miparnisari requested a review from tstirrat15 May 9, 2025 17:27
Copy link
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

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

LGTM

@miparnisari miparnisari enabled auto-merge May 9, 2025 17:45
@miparnisari miparnisari merged commit 8c02dd0 into main May 9, 2025
11 checks passed
@miparnisari miparnisari deleted the windows-test-failures branch May 9, 2025 17:48
@github-actions github-actions bot locked and limited conversation to collaborators May 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants