Integration tests os.RemoveAll directory not empty #1095

Closed
opened 2025-11-02 03:48:21 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @daviian on GitHub (Sep 25, 2017).

  • Gitea version (or commit ref):
  • Git version:
  • Operating system: Windows 10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
[Macaron] 2017-09-25 20:05:38: Started GET /user2 for 
[Macaron] 2017-09-25 20:05:38: Completed /user2 200 OK in 7.9266ms
PASS
os.RemoveAll: remove integrations/indexers-pgsql/issues.bleve: directory not empty
make: *** [Makefile:190: test-pgsql] Error 1

Description

Since merging of b0f7457d9e I get this log when running integration tests in docker container.
I am using the webhippie/golang:edge image.

The full command I use is as follows:
run -i --rm -v D:\Development\go\src\code.gitea.io\gitea:/srv/app/src/code.gitea.io/gitea -w /srv/app/src/code.gitea.io/gitea --link gitea-test-db:pgsql -e TAGS="bindata" webhippie/golang:edge make build test-pgsql

Originally created by @daviian on GitHub (Sep 25, 2017). - Gitea version (or commit ref): - Git version: - Operating system: Windows 10 - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ``` [Macaron] 2017-09-25 20:05:38: Started GET /user2 for [Macaron] 2017-09-25 20:05:38: Completed /user2 200 OK in 7.9266ms PASS os.RemoveAll: remove integrations/indexers-pgsql/issues.bleve: directory not empty make: *** [Makefile:190: test-pgsql] Error 1 ``` ## Description Since merging of https://github.com/go-gitea/gitea/commit/b0f7457d9ef6e16d4a3197f7544035d5d387e201 I get this log when running integration tests in docker container. I am using the `webhippie/golang:edge` image. The full command I use is as follows: `run -i --rm -v D:\Development\go\src\code.gitea.io\gitea:/srv/app/src/code.gitea.io/gitea -w /srv/app/src/code.gitea.io/gitea --link gitea-test-db:pgsql -e TAGS="bindata" webhippie/golang:edge make build test-pgsql`
GiteaMirror added the type/testingtype/bug labels 2025-11-02 03:48:21 -06:00
Author
Owner

@ethantkoenig commented on GitHub (Sep 30, 2017):

That's strange, os.RemoveAll isn't supposed to fail for non-empty directories.

@ethantkoenig commented on GitHub (Sep 30, 2017): That's strange, [os.RemoveAll](https://golang.org/pkg/os/#RemoveAll) isn't supposed to fail for non-empty directories.
Author
Owner

@daviian commented on GitHub (Sep 30, 2017):

I guess it is https://github.com/golang/go/issues/20841

@daviian commented on GitHub (Sep 30, 2017): I guess it is https://github.com/golang/go/issues/20841
Author
Owner

@daviian commented on GitHub (Sep 30, 2017):

And because it is an issue with WSL I will close this one.

@daviian commented on GitHub (Sep 30, 2017): And because it is an issue with WSL I will close this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1095