You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Maybe there is a conflict during the delete operation, so we should retry after a refresh
205
+
log.Warn("Deletion of entries of repo %v within index %v was erroneus. Trying to refresh index before trying again", repoID, b.inner.VersionedIndexName(), err)
206
+
iferr:=b.refreshIndex(ctx); err!=nil {
207
+
returnerr
208
+
}
209
+
iferr:=b.doDelete(ctx, repoID); err!=nil {
210
+
log.Error("Could not delete entries of repo %v within index %v", repoID, b.inner.VersionedIndexName())
Copy file name to clipboardExpand all lines: options/locale/locale_pt-PT.ini
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1040,6 +1040,7 @@ issue_labels_helper=Escolha um conjunto de rótulos para as questões.
1040
1040
license=Licença
1041
1041
license_helper=Escolha um ficheiro de licença.
1042
1042
license_helper_desc=Uma licença rege o que os outros podem, ou não, fazer com o seu código fonte. Não tem a certeza sobre qual a mais indicada para o seu trabalho? Veja: <a target="_blank"rel="noopener noreferrer"href="%s">Escolher uma licença.</a>
1043
+
multiple_licenses=Múltiplas licenças
1043
1044
object_format=Formato dos elementos
1044
1045
object_format_helper=Formato dos elementos do repositório. Não poderá ser alterado mais tarde. SHA1 é o mais compatível.
1045
1046
readme=README
@@ -2941,6 +2942,7 @@ dashboard.start_schedule_tasks=Iniciar tarefas de agendamento das operações
2941
2942
dashboard.sync_branch.started=Sincronização de ramos iniciada
2942
2943
dashboard.sync_tag.started=Sincronização de etiquetas iniciada
2943
2944
dashboard.rebuild_issue_indexer=Reconstruir indexador de questões
2945
+
dashboard.sync_repo_licenses=Sincronizar licenças do repositório
2944
2946
2945
2947
users.user_manage_panel=Gestão das contas de utilizadores
Copy file name to clipboardExpand all lines: tests/integration/README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,11 +56,15 @@ TEST_MYSQL_HOST=localhost:3306 TEST_MYSQL_DBNAME=test TEST_MYSQL_USERNAME=root T
56
56
## Run pgsql integration tests
57
57
Setup a pgsql database inside docker
58
58
```
59
-
docker run -e "POSTGRES_DB=test" -p 5432:5432 --rm --name pgsql postgres:latest #(just ctrl-c to stop db and clean the container)
59
+
docker run -e "POSTGRES_DB=test" -e "POSTGRES_USER=postgres" -e "POSTGRES_PASSWORD=postgres" -p 5432:5432 --rm --name pgsql postgres:latest #(just ctrl-c to stop db and clean the container)
Copy file name to clipboardExpand all lines: tests/integration/README_ZH.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ make test-sqlite
42
42
## 如何使用 mysql 数据库进行集成测试
43
43
首先在docker容器里部署一个 mysql 数据库
44
44
```
45
-
docker run -e "MYSQL_DATABASE=test" -e "MYSQL_ALLOW_EMPTY_PASSWORD=yes" -p 3306:3306 --rm --name mysql mysql:8 #(just ctrl-c to stop db and clean the container)
45
+
docker run -e "MYSQL_DATABASE=test" -e "MYSQL_ALLOW_EMPTY_PASSWORD=yes" -p 3306:3306 --rm --name mysql mysql:8 #(just ctrl-c to stop db and clean the container)
46
46
```
47
47
之后便可以基于这个数据库进行集成测试
48
48
```
@@ -52,17 +52,21 @@ TEST_MYSQL_HOST=localhost:3306 TEST_MYSQL_DBNAME=test TEST_MYSQL_USERNAME=root T
52
52
## 如何使用 pgsql 数据库进行集成测试
53
53
同上,首先在 docker 容器里部署一个 pgsql 数据库
54
54
```
55
-
docker run -e "POSTGRES_DB=test" -p 5432:5432 --rm --name pgsql postgres:14 #(just ctrl-c to stop db and clean the container)
55
+
docker run -e "POSTGRES_DB=test" -e "POSTGRES_USER=postgres" -e "POSTGRES_PASSWORD=postgres" -p 5432:5432 --rm --name pgsql postgres:latest #(just ctrl-c to stop db and clean the container)
TEST_PGSQL_HOST=localhost:5432 TEST_PGSQL_DBNAME=test TEST_PGSQL_USERNAME=postgres TEST_PGSQL_PASSWORD=postgres make test-pgsql
63
+
TEST_MINIO_ENDPOINT=localhost:9000 TEST_PGSQL_HOST=localhost:5432 TEST_PGSQL_DBNAME=postgres TEST_PGSQL_USERNAME=postgres TEST_PGSQL_PASSWORD=postgres make test-pgsql
60
64
```
61
65
62
66
## Run mssql integration tests
63
67
同上,首先在 docker 容器里部署一个 mssql 数据库
64
68
```
65
-
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_PID=Standard" -e "SA_PASSWORD=MwantsaSecurePassword1" -p 1433:1433 --rm --name mssql microsoft/mssql-server-linux:latest #(just ctrl-c to stop db and clean the container)
69
+
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_PID=Standard" -e "SA_PASSWORD=MwantsaSecurePassword1" -p 1433:1433 --rm --name mssql microsoft/mssql-server-linux:latest #(just ctrl-c to stop db and clean the container)
0 commit comments