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
Some data races in tests #1601
Comments
Seems a recent CircleCI build caught this data race too: |
This seems to occur at touching |
@tatsushid that's not what I'm seeing, but it's template related, seems to me like it happens when execute and parse happens at the same time. As this happens in tests only, I suggest @spf13 turn of circle ci until we find a proper fix. I don't want to throw "locks everywhere" until we know more. |
The problem is hugolib/site.go#L958, not the stdlib: _, err := s.Tmpl.New(self).Parse(string(p.Content)) It looks to me like The race detector has detected a race on this line since goroutines were added by @spf13 back in May with 3dfb475. That line went unchanged when goroutines were added. One odd bit of trivia as an aside: |
The code path that fails is executed in tests with some synthetic test data not possible in real life (me thinks), with some No one have come up with a explanation of that code, so I'm gonna remove it ... or fix it ... like today if someone not complains. |
4eb10c1a9 Set a sensible maxAge on the image cache 2c37f4f89 Update lists.md 8690c018f Update introduction.md 0458c3d88 Update index.md 150982f5e Update index.md 50dc0b6b9 Update multilingual.md 648598090 Configure image cache to use :cacheDir/images 4dfb523c3 Update introduction.md b94d42e6f Add text to social images d3253d2aa Add resources/_gen/images/ to .gitignore 8a56e1dfd Delete resources/_gen/images 1521e79b6 Update introduction.md c7110a597 Update introduction.md f7c4d220f Update introduction.md c14ecf1ff Update introduction.md c4b388c20 Fix shortcode in hugo-pipes/introduction (#1605) d9876bd68 Update introduction.md a39a532d5 Update introduction.md fa8758122 netlify: Hugo 0.90.1 50cc40570 Update Contribute to Hugo Development fc98fc82c Add .vscode dir to .gitignore (#1602) 8f8bcdefc Add frontmatter param to code-toggle shortcode (#1601) f3b432c7c Add markdownlint configuration file (#1597) 7ea3aea92 netlify: Bump to 0.90.0 e2b6f990b docs: Regenerate docs helper c02259e33 Merge commit '8d9511a08f14260cbfb73119e4afae50e5a9966d' 2e3573899 Add custom font support to images.Text 3186e6458 images: Text filter that draws text with the given options (#9239) 424f219eb tpl/transform: Optional options for highlight func 7993f17d0 Implement XML data support 1eb9d34cf Make resources.Get use a file cache for remote resources 8a0fffd56 Add remote support to resources.Get git-subtree-dir: docs git-subtree-split: 4eb10c1a9689aebf652011a6260a14bf8a3dcef4
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Not reported in regular
hugo
. Looks like a Go stdlib issue:go test -race ./...
The text was updated successfully, but these errors were encountered: