Skip to content

Commit

Permalink
ci: allow empty MySQL password
Browse files Browse the repository at this point in the history
老大哥go那边的测试mysql的密码是空的,本地频繁项目的集成伤神,调整成跟go那边一样。
  • Loading branch information
wooln committed Jan 3, 2025
1 parent ba8f9f7 commit 05391ce
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_and_it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
--health-interval=10s
--health-timeout=5s
--health-retries=3
-e MYSQL_ROOT_PASSWORD=123456
-e MYSQL_ALLOW_EMPTY_PASSWORD=1
--entrypoint sh mysql:8.0 -c "exec docker-entrypoint.sh mysqld --default-authentication-plugin=mysql_native_password"
strategy:
matrix:
Expand All @@ -43,8 +43,8 @@ jobs:
dotnet --list-runtimes
- name: Create database
run: |
mysql -h127.0.0.1 -uroot -p123456 < /home/runner/work/client-csharp/client-csharp/sqls/barrier.mysql.sql
mysql -h127.0.0.1 -uroot -p123456 < /home/runner/work/client-csharp/client-csharp/sqls/busi.mysql.sql
mysql -h127.0.0.1 -uroot < /home/runner/work/client-csharp/client-csharp/sqls/barrier.mysql.sql
mysql -h127.0.0.1 -uroot < /home/runner/work/client-csharp/client-csharp/sqls/busi.mysql.sql
- name: Setup DTM server
run: |
wget https://github.com/dtm-labs/dtm/releases/download/v1.18.0/dtm_1.18.0_linux_amd64.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion samples/DtmOnDaprSample/appsettings.docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"AppSettings": {
"DtmUrl": "http://dtm:36789",
"BusiUrl": "http://sample:9090/api",
"BarrierConn": "Server=db;port=3306;User ID=root;Password=123456;Database=dtm_barrier",
"BarrierConn": "Server=db;port=3306;User ID=root;Password=;Database=dtm_barrier",
"MongoBarrierConn": "mongodb://mgdb:27017"
}
}
2 changes: 1 addition & 1 deletion samples/DtmSample/appsettings.docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"DtmUrl": "http://dtm:36789",
"DtmGrpcUrl": "http://dtm:36790",
"BusiUrl": "http://sample:9090/api",
"BarrierConn": "Server=db;port=3306;User ID=root;Password=123456;Database=dtm_barrier",
"BarrierConn": "Server=db;port=3306;User ID=root;Password=;Database=dtm_barrier",
"MongoBarrierConn": "mongodb://mgdb:27017"
}
}
2 changes: 1 addition & 1 deletion tests/BusiGrpcService/Services/BusiApiService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ await barrier.Call(conn, async (tx) =>
return new Empty();
}

private MySqlConnection GetBarrierConn() => new("Server=localhost;port=3306;User ID=root;Password=123456;Database=dtm_barrier");
private MySqlConnection GetBarrierConn() => new("Server=localhost;port=3306;User ID=root;Password=;Database=dtm_barrier");

private async Task<StackExchange.Redis.IDatabase> GetRedis()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Dtmgrpc.IntegrationTests/MsgGrpcTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ await branchBarrier.Call(conn, () =>

private static readonly int TransInUID = 2;

Check warning on line 112 in tests/Dtmgrpc.IntegrationTests/MsgGrpcTest.cs

View workflow job for this annotation

GitHub Actions / build on windows-latest

The field 'MsgGrpcTest.TransInUID' is assigned but its value is never used

Check warning on line 112 in tests/Dtmgrpc.IntegrationTests/MsgGrpcTest.cs

View workflow job for this annotation

GitHub Actions / build on windows-latest

The field 'MsgGrpcTest.TransInUID' is assigned but its value is never used

Check warning on line 112 in tests/Dtmgrpc.IntegrationTests/MsgGrpcTest.cs

View workflow job for this annotation

GitHub Actions / build on ubuntu-latest

The field 'MsgGrpcTest.TransInUID' is assigned but its value is never used

Check warning on line 112 in tests/Dtmgrpc.IntegrationTests/MsgGrpcTest.cs

View workflow job for this annotation

GitHub Actions / build on ubuntu-latest

The field 'MsgGrpcTest.TransInUID' is assigned but its value is never used

private MySqlConnection getBarrierMySqlConnection() => new("Server=localhost;port=3306;User ID=root;Password=123456;Database=dtm_barrier");
private MySqlConnection getBarrierMySqlConnection() => new("Server=localhost;port=3306;User ID=root;Password=;Database=dtm_barrier");

private async Task LocalAdjustBalance(DbConnection conn, int uid, long amount, string result)
{
Expand Down

0 comments on commit 05391ce

Please sign in to comment.