Title: CI: test/go/postgres is flakey · Issue #1626 · coder/coder · GitHub
Open Graph Title: CI: test/go/postgres is flakey · Issue #1626 · coder/coder
X Title: CI: test/go/postgres is flakey · Issue #1626 · coder/coder
Description: Overview In PRs that don't touch the data layer (for example A FE-only PR #1623), we're seeing that test/go/postgres often fails. Truncated Log The full log is too long, please see the actual action run. === Failed === FAIL: cli TestTTL/...
Open Graph Description: Overview In PRs that don't touch the data layer (for example A FE-only PR #1623), we're seeing that test/go/postgres often fails. Truncated Log The full log is too long, please see the actual actio...
X Description: Overview In PRs that don't touch the data layer (for example A FE-only PR #1623), we're seeing that test/go/postgres often fails. Truncated Log The full log is too long, please see the actu...
Opengraph URL: https://github.com/coder/coder/issues/1626
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CI: test/go/postgres is flakey","articleBody":"## Overview\r\n\r\nIn PRs that don't touch the data layer (for example A FE-only PR #1623), we're seeing that `test/go/postgres` often fails.\r\n\r\n## Truncated Log\r\n\r\nThe full log is too long, please see the actual action run.\r\n\r\n> === Failed\r\n> === FAIL: cli TestTTL/ShowOK (2.00s)\r\n> t.go:56: 2022-05-20 15:25:54.871 [DEBUG]\t\u003ccoderd.go:372>\tPOST /api/v2/users/first\r\n> t.go:56: 2022-05-20 15:25:54.904 [DEBUG]\t\u003ccoderd.go:372>\tPOST /api/v2/users/login\r\n> t.go:56: 2022-05-20 15:25:54.919 [DEBUG]\t\u003ccoderd.go:372>\tPOST /api/v2/files\r\n> t.go:56: 2022-05-20 15:25:54.932 [DEBUG]\t\u003ccoderd.go:372>\tPOST /api/v2/organizations/d0d2209f-c686-4baf-b53f-956c0454ca64/templateversions\r\n> t.go:56: 2022-05-20 15:25:54.989 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:128>\tconnected\r\n> t.go:56: 2022-05-20 15:25:55.012 [DEBUG]\t\u003ccoderd.go:372>\tGET /api/v2/templateversions/8f5d7b3c-10e8-4f14-a801-81c689ab668c\r\n> t.go:56: 2022-05-20 15:25:55.036 [DEBUG]\t\u003ccoderd.go:372>\tGET /api/v2/templateversions/8f5d7b3c-10e8-4f14-a801-81c689ab668c\r\n> t.go:56: 2022-05-20 15:25:55.048 [DEBUG]\t(provisionerd-cranky_gauss6)\t\u003cprovisionerdaemons.go:142>\tlocked job from database\t{\"id\": \"5e425b34-7615-473a-bb7c-378590f051b6\"}\r\n> t.go:56: 2022-05-20 15:25:55.054 [INFO]\t(provisionerd)\t\u003cprovisionerd.go:239>\tacquired job\t{\"initiator_username\": \"testuser\", \"provisioner\": \"echo\", \"id\": \"5e425b34-7615-473a-bb7c-378590f051b6\"}\r\n> t.go:56: 2022-05-20 15:25:55.0[62](https://github.com/coder/coder/runs/6527419095?check_suite_focus=true#step:10:63) [DEBUG]\t\u003ccoderd.go:372>\tGET /api/v2/templateversions/8f5d7b3c-10e8-4f14-a801-81c689ab668c\r\n> t.go:56: 2022-05-20 15:25:55.073 [INFO]\t(provisionerd)\t\u003cprovisionerd.go:353>\tunpacking template source archive\t{\"size_bytes\": 3072}\r\n> t.go:56: 2022-05-20 15:25:55.075 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:403>\textracted file\t{\"size_bytes\": 2, \"path\": \"/tmp/TestTTLShowOK2129889090/001/0.parse.protobuf\", \"mode\": \"-rw-------\"}\r\n> t.go:56: 2022-05-20 15:25:55.079 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:403>\textracted file\t{\"size_bytes\": 2, \"path\": \"/tmp/TestTTLShowOK2129889090/001/0.provision.protobuf\", \"mode\": \"-rw-------\"}\r\n> t.go:56: 2022-05-20 15:25:55.080 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:403>\textracted file\t{\"size_bytes\": 2, \"path\": \"/tmp/TestTTLShowOK2129889090/001/0.provision.dry.protobuf\", \"mode\": \"-rw-------\"}\r\n> t.go:56: 2022-05-20 15:25:55.082 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:413>\tacquired job is template import\r\n> t.go:56: 2022-05-20 15:25:55.086 [DEBUG]\t\u003ccoderd.go:372>\tGET /api/v2/templateversions/8f5d7b3c-10e8-4f14-a801-81c689ab668c\r\n> t.go:56: 2022-05-20 15:25:55.091 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:206>\tskipping acquire; job is already running\r\n> t.go:56: 2022-05-20 15:25:55.111 [DEBUG]\t\u003ccoderd.go:372>\tGET /api/v2/templateversions/8f5d7b3c-10e8-4f14-a801-81c689ab668c\r\n> t.go:56: 2022-05-20 15:25:55.134 [INFO]\t(provisionerd)\t\u003cprovisionerd.go:640>\tparse complete\t{\"parameter_schemas\": null}\r\n> t.go:56: 2022-05-20 15:25:55.140 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:206>\tskipping acquire; job is already running\r\n> t.go:56: 2022-05-20 15:25:55.142 [DEBUG]\t\u003ccoderd.go:372>\tGET /api/v2/templateversions/8f5d7b3c-10e8-4f14-a801-81c689ab668c\r\n> t.go:56: 2022-05-20 15:25:55.166 [DEBUG]\t\u003ccoderd.go:372>\tGET /api/v2/templateversions/8f5d7b3c-10e8-4f14-a801-81c689ab668c\r\n> t.go:56: 2022-05-20 15:25:55.187 [DEBUG]\t\u003ccoderd.go:372>\tGET /api/v2/templateversions/8f5d7b3c-10e8-4f14-a801-81c689ab668c\r\n> t.go:56: 2022-05-20 15:25:55.195 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:206>\tskipping acquire; job is already running\r\n> t.go:56: 2022-05-20 15:25:55.206 [INFO]\t(provisionerd)\t\u003cprovisionerd.go:722>\tparse dry-run provision successful\t{\"resource_count\": 0, \"resources\": null, \"state_length\": 0}\r\n> t.go:56: 2022-05-20 15:25:55.213 [DEBUG]\t\u003ccoderd.go:372>\tGET /api/v2/templateversions/8f5d7b3c-10e8-4f14-a801-81c689ab668c\r\n> t.go:56: 2022-05-20 15:25:55.243 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:206>\tskipping acquire; job is already running\r\n> t.go:56: 2022-05-20 15:25:55.244 [DEBUG]\t\u003ccoderd.go:372>\tGET /api/v2/templateversions/8f5d7b3c-10e8-4f14-a801-81c689ab668c\r\n> t.go:56: 2022-05-20 15:25:55.242 [INFO]\t(provisionerd)\t\u003cprovisionerd.go:722>\tparse dry-run provision successful\t{\"resource_count\": 0, \"resources\": null, \"state_length\": 0}\r\n> t.go:56: 2022-05-20 15:25:55.269 [DEBUG]\t\u003ccoderd.go:372>\tGET /api/v2/templateversions/8f5d7b3c-10e8-4f14-a801-81c689ab668c\r\n> t.go:56: 2022-05-20 15:25:55.290 [DEBUG]\t\u003ccoderd.go:372>\tGET /api/v2/templateversions/8f5d7b3c-10e8-4f14-a801-81c689ab668c\r\n> t.go:56: 2022-05-20 15:25:55.290 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:206>\tskipping acquire; job is already running\r\n> t.go:56: 2022-05-20 15:25:55.332 [DEBUG]\t\u003ccoderd.go:372>\tGET /api/v2/templateversions/8f5d7b3c-10e8-4f14-a801-81c689ab668c\r\n> t.go:56: 2022-05-20 15:25:55.342 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:206>\tskipping acquire; job is already running\r\n> t.go:56: 2022-05-20 15:25:55.339 [DEBUG]\t(provisionerd-cranky_gauss6)\t\u003cprovisionerdaemons.go:527>\tmarked import job as completed\t{\"job_id\": \"5e425b34-7615-473a-bb7c-378590f051b6\"}\r\n> t.go:56: 2022-05-20 15:25:55.350 [DEBUG]\t\u003ccoderd.go:372>\tPOST /api/v2/organizations/d0d2209f-c686-4baf-b53f-956c0454ca64/templates\r\n> t.go:56: 2022-05-20 15:25:55.375 [INFO]\t(provisionerd)\t\u003cprovisionerd.go:451>\tcompleted job\t{\"id\": \"5e425b34-7615-473a-bb7c-378590f051b6\"}\r\n> t.go:56: 2022-05-20 15:25:55.375 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:315>\tcleaned up work directory\t{\"error\": null}\r\n> t.go:56: 2022-05-20 15:25:55.382 [DEBUG]\t\u003cprovisionerdaemons.go:88>\tdrpc server error ...\r\n> \"error\": stream closed\r\n> \tstorj.io/drpc/drpcstream.(*Stream).sendPacket:268\r\n> \tstorj.io/drpc/drpcstream.(*Stream).CloseSend:501\r\n> \tstorj.io/drpc/drpcserver.(*Server).handleRPC:126\r\n> \tstorj.io/drpc/drpcserver.(*Server).ServeOne:66\r\n> \tstorj.io/drpc/drpcserver.(*Server).Serve.func2:112\r\n> \tstorj.io/drpc/drpcctx.(*Tracker).track:52\r\n> t.go:56: 2022-05-20 15:25:55.411 [DEBUG]\t\u003ccoderd.go:372>\tPOST /api/v2/organizations/d0d2209f-c686-4baf-b53f-956c0454ca64/workspaces\r\n> t.go:56: 2022-05-20 15:25:55.455 [DEBUG]\t\u003ccoderd.go:372>\tPUT /api/v2/workspaces/418ac39d-f91c-4dfa-a594-ed4453eb81e7/ttl\r\n> t.go:56: 2022-05-20 15:25:55.510 [DEBUG]\t(provisionerd-cranky_gauss6)\t\u003cprovisionerdaemons.go:142>\tlocked job from database\t{\"id\": \"4436132f-47b5-4bc8-8856-de2465dd049a\"}\r\n> t.go:56: 2022-05-20 15:25:55.530 [DEBUG]\t\u003ccoderd.go:372>\tGET /api/v2/users/me/organizations\r\n> t.go:56: 2022-05-20 15:25:55.566 [DEBUG]\t\u003ccoderd.go:372>\tGET /api/v2/organizations/d0d2209f-c686-4baf-b53f-956c0454ca64/workspaces/me/nostalgic-bassi\r\n> t.go:56: 2022-05-20 15:25:55.595 [INFO]\t(provisionerd)\t\u003cprovisionerd.go:239>\tacquired job\t{\"initiator_username\": \"testuser\", \"provisioner\": \"echo\", \"id\": \"4436132f-47b5-4bc8-8856-de2465dd049a\"}\r\n> t.go:56: 2022-05-20 15:25:55.599 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:206>\tskipping acquire; job is already running\r\n> t.go:56: 2022-05-20 15:25:55.625 [INFO]\t(provisionerd)\t\u003cprovisionerd.go:353>\tunpacking template source archive\t{\"size_bytes\": 3072}\r\n> t.go:56: 2022-05-20 15:25:55.628 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:403>\textracted file\t{\"size_bytes\": 2, \"path\": \"/tmp/TestTTLShowOK2129889090/001/0.parse.protobuf\", \"mode\": \"-rw-------\"}\r\n> t.go:56: 2022-05-20 15:25:55.629 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:403>\textracted file\t{\"size_bytes\": 2, \"path\": \"/tmp/TestTTLShowOK2129889090/001/0.provision.protobuf\", \"mode\": \"-rw-------\"}\r\n> t.go:56: 2022-05-20 15:25:55.[63](https://github.com/coder/coder/runs/6527419095?check_suite_focus=true#step:10:64)0 [INFO]\t(provisionerd)\t\u003cprovisionerd.go:910>\tfailing running job\t{\"error_message\": \"provisioner daemon was shutdown gracefully\", \"job_id\": \"4436132f-47b5-4bc8-8856-de2465dd049a\"}\r\n> t.go:56: 2022-05-20 15:25:55.632 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:403>\textracted file\t{\"size_bytes\": 2, \"path\": \"/tmp/TestTTLShowOK2129889090/001/0.provision.dry.protobuf\", \"mode\": \"-rw-------\"}\r\n> t.go:56: 2022-05-20 15:25:55.633 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:418>\tacquired job is workspace provision\t{\"workspace_name\": \"nostalgic-bassi\", \"state_length\": 0, \"parameters\": null}\r\n> t.go:56: 2022-05-20 15:25:55.691 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:931>\tmarked running job as failed\r\n> t.go:56: 2022-05-20 15:25:55.694 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:206>\tskipping acquire; job is already running\r\n> t.go:56: 2022-05-20 15:25:55.695 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:905>\tjob has already been marked as failed\t{\"error_messsage\": \"write log: context canceled\"}\r\n> t.go:56: 2022-05-20 15:25:55.698 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:905>\tjob has already been marked as failed\t{\"error_messsage\": \"write log: context canceled\"}\r\n> t.go:56: 2022-05-20 15:25:55.704 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:315>\tcleaned up work directory\t{\"error\": null}\r\n> t.go:56: 2022-05-20 15:25:55.712 [DEBUG]\t(provisionerd)\t\u003cprovisionerd.go:1000>\tclosing server with error\t{\"error\": null}\r\n> testing.go:1312: race detected during execution of test\r\n> --- FAIL: TestTTL/ShowOK (2.00s)\r\n> \r\n\r\n\r\n## Full Action Attempt\r\n\r\nhttps://github.com/coder/coder/actions/runs/2359166491/attempts/1\r\n\r\n## Impact\r\n\r\nThis check is required (as it should be). We don't want to get into bad habits of either ignoring a failing CI check, or having it constantly fail and hold up PRs (especially those that don't touch the data layer). Lastly, we want to be certain it's catching true positives in the data layer.","author":{"url":"https://github.com/greyscaled","@type":"Person","name":"greyscaled"},"datePublished":"2022-05-20T15:46:41Z","url":"https://github.com/coder/coder/issues/1626"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:654b4b4e-85f4-2cfe-ea7e-c6ed567014ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D298:1D86C4:215885C:2A513D2:6B01749B |
| html-safe-nonce | 81d5d0b38850f1eee006ec4716229949b11a7e3378f574a3e636ab369a4911fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjk4OjFEODZDNDoyMTU4ODVDOjJBNTEzRDI6NkIwMTc0OUIiLCJ2aXNpdG9yX2lkIjoiNzA2MDA2NjA2MTg0NDA1MTA5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8a31b40399d8e91bb244432ec17f2a0b92a10950d9505d5739f2c7d0260ab3b0 |
| hovercard-subject-tag | issue:1243336923 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/1626/issue_layout |
| twitter:image | https://opengraph.githubassets.com/73034d1903606e4c1eff2524a70ea8839629f45dfcec038d766853643cf9b899/coder/coder/issues/1626 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/73034d1903606e4c1eff2524a70ea8839629f45dfcec038d766853643cf9b899/coder/coder/issues/1626 |
| og:image:alt | Overview In PRs that don't touch the data layer (for example A FE-only PR #1623), we're seeing that test/go/postgres often fails. Truncated Log The full log is too long, please see the actual actio... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | greyscaled |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width