Skip to content

Commit 34d38b5

Browse files
make java, python, ruby, go not specify anonymous ecosystems (#491)
1 parent 2896069 commit 34d38b5

File tree

11 files changed

+7
-38
lines changed

11 files changed

+7
-38
lines changed

.github/workflows/build-golang.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
repo: trinsic-id/okapi
3737
github_token: ${{ secrets.GITHUB_TOKEN }}
3838
name: ${{ matrix.os-artifact[1] }}
39-
run_id: 1903152040 # Last scheduled build before the breaking 1.4.0 release
4039
- name: Download C header
4140
uses: dawidd6/[email protected]
4241
with:

.github/workflows/build-java.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
repo: trinsic-id/okapi
4747
github_token: ${{ secrets.GITHUB_TOKEN }}
4848
name: ${{ matrix.os-artifact[1] }}
49-
run_id: 1903152040 # Last scheduled build before the breaking 1.4.0 release
5049
- name: Build with Gradle
5150
run: |
5251
python ../devops/build_sdks.py --language=java

.github/workflows/build-python.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
repo: trinsic-id/okapi
4040
github_token: ${{ secrets.GITHUB_TOKEN }}
4141
name: ${{ matrix.os-artifact[1] }}
42-
run_id: 1903152040 # Last scheduled build before the breaking 1.4.0 release
4342
- name: Set up Python ${{ matrix.python-version }}
4443
uses: actions/setup-python@v2
4544
with:
@@ -56,8 +55,8 @@ jobs:
5655
API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
5756
LD_LIBRARY_PATH: "${{ github.workspace }}/libs"
5857
TEST_SERVER_ENDPOINT: ${{ secrets.TEST_SERVER_ENDPOINT }}
59-
# TEST_SERVER_PORT: ${{ secrets.TEST_SERVER_PORT }}
60-
# TEST_SERVER_USE_TLS: ${{ secrets.TEST_SERVER_USE_TLS }}
58+
TEST_SERVER_PORT: ${{ secrets.TEST_SERVER_PORT }}
59+
TEST_SERVER_USE_TLS: ${{ secrets.TEST_SERVER_USE_TLS }}
6160
- name: Upload Unit Test Results - Python
6261
if: always()
6362
uses: actions/upload-artifact@v2
@@ -80,4 +79,4 @@ jobs:
8079
uses: EnricoMi/[email protected]
8180
with:
8281
files: 'python_artifacts/**/*.xml'
83-
check_name: Python Test Report
82+
check_name: Python Test Report

.github/workflows/build-ruby.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,6 @@ jobs:
3939
uses: actions/setup-python@v2
4040
with:
4141
python-version: 3.9
42-
- name: Download ${{ matrix.os-artifact[0] }} binaries
43-
uses: dawidd6/[email protected]
44-
with:
45-
workflow: "build-libs.yml"
46-
path: ./libs/${{ matrix.os-artifact[1] }}
47-
repo: trinsic-id/okapi
48-
github_token: ${{ secrets.GITHUB_TOKEN }}
49-
name: ${{ matrix.os-artifact[1] }}
50-
run_id: 1903152040 # Last scheduled build before the breaking 1.4.0 release
5142
- name: Build and run tests
5243
run: |
5344
gem install bundler
@@ -58,8 +49,6 @@ jobs:
5849
working-directory: ruby
5950
env:
6051
API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
61-
RUBY_DLL_PATH: "${{ github.workspace }}/libs/${{ matrix.os-artifact[1] }}" # Required for Ruby on Windows
62-
LD_LIBRARY_PATH: "${{ github.workspace }}/libs/${{ matrix.os-artifact[1] }}"
6352
TEST_SERVER_ENDPOINT: ${{ secrets.TEST_SERVER_ENDPOINT }}
6453
TEST_SERVER_PORT: ${{ secrets.TEST_SERVER_PORT }}
6554
TEST_SERVER_USE_TLS: ${{ secrets.TEST_SERVER_USE_TLS }}

.github/workflows/release-ruby.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ jobs:
2424
uses: ruby/[email protected]
2525
with:
2626
ruby-version: 2.7
27-
- name: Download workflow artifact
28-
uses: dawidd6/[email protected]
29-
with:
30-
workflow: "build-libs.yml"
31-
path: ./libs
32-
branch: main
33-
repo: trinsic-id/okapi
3427
- uses: trinsic-id/[email protected]
3528
id: setversion
3629
with:
@@ -53,10 +46,6 @@ jobs:
5346
env:
5447
API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
5548
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_TOKEN }}
56-
RUBY_DLL_PATH: "${{ github.workspace }}/libs" # Required for Ruby on Windows
57-
DYLD_FALLBACK_LIBRARY_PATH: "${{ github.workspace }}/libs"
58-
DYLD_LIBRARY_PATH: "${{ github.workspace }}/libs"
59-
LD_LIBRARY_PATH: "${{ github.workspace }}/libs"
6049
TEST_SERVER_ENDPOINT: ${{ secrets.TEST_SERVER_ENDPOINT }}
6150
TEST_SERVER_PORT: ${{ secrets.TEST_SERVER_PORT }}
6251
TEST_SERVER_USE_TLS: ${{ secrets.TEST_SERVER_USE_TLS }}

go/services/services_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ func TestEcosystemDemo(t *testing.T) {
286286
}
287287

288288
actualCreate, err := service.CreateEcosystem(context.Background(), &sdk.CreateEcosystemRequest{
289-
Name: "test-sdk-" + uuid.New().String(),
290289
Description: "My ecosystem",
291290
Uri: "https://example.com",
292291
})

java/src/test/java/trinsic/EcosystemsDemo.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ public static void run() throws IOException, DidException, ExecutionException, I
2020
var account = accountService.signIn(null).get();
2121
var service = new ProviderService(TrinsicUtilities.getTrinsicServiceOptions(account));
2222

23-
var ecosystemName = "test-sdk-" + java.util.UUID.randomUUID();
24-
var response = service.createEcosystem(ProviderOuterClass.CreateEcosystemRequest.newBuilder().setName(ecosystemName).setDescription("My ecosystem").setUri("https://example.com").build()).get();
23+
var response = service.createEcosystem(ProviderOuterClass.CreateEcosystemRequest.newBuilder().setDescription("My ecosystem").setUri("https://example.com").build()).get();
2524

2625
Assertions.assertNotNull(response.getEcosystem());
2726
Assertions.assertNotNull(response.getEcosystem().getId());

python/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
betterproto~=2.0.0b4
22
grpclib~=0.4.3rc2
33
grpcio-tools
4-
trinsic-okapi~=1.4.0
4+
trinsic-okapi~=1.4.1

python/samples/ecosystem_demo.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ async def ecosystem_demo():
1111
account = await account_service.sign_in()
1212
provider_service = ProviderService(server_config=trinsic_config(account))
1313

14-
ecosystem_name = f"test-sdk-{uuid.uuid4()}"
15-
print(f"Ecosystem name={ecosystem_name}")
16-
1714
actual_create = await provider_service.create_ecosystem(
18-
name=ecosystem_name,
1915
description="My ecosystem",
2016
uri="https://example.com",
2117
)

python/samples/vaccine_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async def vaccine_demo():
3333
account = await account_service.sign_in()
3434
provider_service = ProviderService(server_config=trinsic_config(account))
3535

36-
ecosystem = await provider_service.create_ecosystem(name=f"test-sdk-{uuid.uuid4()}")
36+
ecosystem = await provider_service.create_ecosystem()
3737
ecosystem_id = ecosystem.ecosystem.id
3838
# }
3939

0 commit comments

Comments
 (0)