Skip to content

Commit

Permalink
Enable isolate mode for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alex268 committed Apr 27, 2024
1 parent 3ef1860 commit 575e54c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
java: [ '8', '11', '17']

env:
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always -DYDB_DOCKER_ISOLATION=true

steps:
- uses: actions/checkout@v4
Expand All @@ -41,7 +41,7 @@ jobs:
needs: build

env:
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always -DYDB_DOCKER_ISOLATION=true

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
java: [ '8', '11', '17']

env:
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always -DYDB_DOCKER_ISOLATION=true

steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 6 additions & 0 deletions coordination/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<environmentVariables>
<YDB_DOCKER_IMAGE>cr.yandex/yc/yandex-docker-local-ydb:trunk</YDB_DOCKER_IMAGE>
<TESTCONTAINERS_REUSE_ENABLE>true</TESTCONTAINERS_REUSE_ENABLE>
</environmentVariables>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
1 change: 0 additions & 1 deletion table/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
<configuration>
<environmentVariables>
<YDB_DOCKER_IMAGE>cr.yandex/yc/yandex-docker-local-ydb:trunk</YDB_DOCKER_IMAGE>
<YDB_DOCKER_ISOLATION>true</YDB_DOCKER_ISOLATION>
<TESTCONTAINERS_REUSE_ENABLE>true</TESTCONTAINERS_REUSE_ENABLE>
</environmentVariables>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ private class ProxyRegistry extends HandlerRegistry {

@Override
public ServerMethodDefinition<?, ?> lookupMethod(String methodName, String authority) {
logger.info("lookup method {}", methodName);
if (DiscoveryServiceGrpc.getListEndpointsMethod().getFullMethodName().equals(methodName)) {
logger.info("use custom proxy for method {}", methodName);
return new DiscoveryServiceProxy(endpoint).toMethodDefinition();
}

Expand Down

0 comments on commit 575e54c

Please sign in to comment.