Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/build-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
repo: trinsic-id/okapi
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ matrix.os-artifact[1] }}
run_id: 1903152040 # Last scheduled build before the breaking 1.4.0 release
- name: Download C header
uses: dawidd6/action-download-artifact@v2.14.0
with:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/build-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
repo: trinsic-id/okapi
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ matrix.os-artifact[1] }}
run_id: 1903152040 # Last scheduled build before the breaking 1.4.0 release
- name: Build with Gradle
run: |
python ../devops/build_sdks.py --language=java
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/build-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
repo: trinsic-id/okapi
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ matrix.os-artifact[1] }}
run_id: 1903152040 # Last scheduled build before the breaking 1.4.0 release
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand All @@ -56,8 +55,8 @@ jobs:
API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
LD_LIBRARY_PATH: "${{ github.workspace }}/libs"
TEST_SERVER_ENDPOINT: ${{ secrets.TEST_SERVER_ENDPOINT }}
# TEST_SERVER_PORT: ${{ secrets.TEST_SERVER_PORT }}
# TEST_SERVER_USE_TLS: ${{ secrets.TEST_SERVER_USE_TLS }}
TEST_SERVER_PORT: ${{ secrets.TEST_SERVER_PORT }}
TEST_SERVER_USE_TLS: ${{ secrets.TEST_SERVER_USE_TLS }}
- name: Upload Unit Test Results - Python
if: always()
uses: actions/upload-artifact@v2
Expand All @@ -80,4 +79,4 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action@v1.23
with:
files: 'python_artifacts/**/*.xml'
check_name: Python Test Report
check_name: Python Test Report
11 changes: 0 additions & 11 deletions .github/workflows/build-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Download ${{ matrix.os-artifact[0] }} binaries
uses: dawidd6/action-download-artifact@v2.17.0
with:
workflow: "build-libs.yml"
path: ./libs/${{ matrix.os-artifact[1] }}
repo: trinsic-id/okapi
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ matrix.os-artifact[1] }}
run_id: 1903152040 # Last scheduled build before the breaking 1.4.0 release
- name: Build and run tests
run: |
gem install bundler
Expand All @@ -58,8 +49,6 @@ jobs:
working-directory: ruby
env:
API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
RUBY_DLL_PATH: "${{ github.workspace }}/libs/${{ matrix.os-artifact[1] }}" # Required for Ruby on Windows
LD_LIBRARY_PATH: "${{ github.workspace }}/libs/${{ matrix.os-artifact[1] }}"
TEST_SERVER_ENDPOINT: ${{ secrets.TEST_SERVER_ENDPOINT }}
TEST_SERVER_PORT: ${{ secrets.TEST_SERVER_PORT }}
TEST_SERVER_USE_TLS: ${{ secrets.TEST_SERVER_USE_TLS }}
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/release-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ jobs:
uses: ruby/setup-ruby@v1.76.0
with:
ruby-version: 2.7
- name: Download workflow artifact
uses: dawidd6/action-download-artifact@v2.14.0
with:
workflow: "build-libs.yml"
path: ./libs
branch: main
repo: trinsic-id/okapi
- uses: trinsic-id/set-version@v0.1
id: setversion
with:
Expand All @@ -53,10 +46,6 @@ jobs:
env:
API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_TOKEN }}
RUBY_DLL_PATH: "${{ github.workspace }}/libs" # Required for Ruby on Windows
DYLD_FALLBACK_LIBRARY_PATH: "${{ github.workspace }}/libs"
DYLD_LIBRARY_PATH: "${{ github.workspace }}/libs"
LD_LIBRARY_PATH: "${{ github.workspace }}/libs"
TEST_SERVER_ENDPOINT: ${{ secrets.TEST_SERVER_ENDPOINT }}
TEST_SERVER_PORT: ${{ secrets.TEST_SERVER_PORT }}
TEST_SERVER_USE_TLS: ${{ secrets.TEST_SERVER_USE_TLS }}
1 change: 0 additions & 1 deletion go/services/services_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ func TestEcosystemDemo(t *testing.T) {
}

actualCreate, err := service.CreateEcosystem(context.Background(), &sdk.CreateEcosystemRequest{
Name: "test-sdk-" + uuid.New().String(),
Description: "My ecosystem",
Uri: "https://example.com",
})
Expand Down
3 changes: 1 addition & 2 deletions java/src/test/java/trinsic/EcosystemsDemo.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public static void run() throws IOException, DidException, ExecutionException, I
var account = accountService.signIn(null).get();
var service = new ProviderService(TrinsicUtilities.getTrinsicServiceOptions(account));

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

Assertions.assertNotNull(response.getEcosystem());
Assertions.assertNotNull(response.getEcosystem().getId());
Expand Down
2 changes: 1 addition & 1 deletion python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
betterproto~=2.0.0b4
grpclib~=0.4.3rc2
grpcio-tools
trinsic-okapi~=1.4.0
trinsic-okapi~=1.4.1
4 changes: 0 additions & 4 deletions python/samples/ecosystem_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ async def ecosystem_demo():
account = await account_service.sign_in()
provider_service = ProviderService(server_config=trinsic_config(account))

ecosystem_name = f"test-sdk-{uuid.uuid4()}"
print(f"Ecosystem name={ecosystem_name}")

actual_create = await provider_service.create_ecosystem(
name=ecosystem_name,
description="My ecosystem",
uri="https://example.com",
)
Expand Down
2 changes: 1 addition & 1 deletion python/samples/vaccine_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def vaccine_demo():
account = await account_service.sign_in()
provider_service = ProviderService(server_config=trinsic_config(account))

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

Expand Down
2 changes: 1 addition & 1 deletion ruby/test/trinsic_service_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def test_ecosystem_demo
service = Trinsic::ProviderService.new(Trinsic::trinsic_server(account))

# test create ecosystem
actual_create = service.create_ecosystem(Trinsic::Provider_V1::CreateEcosystemRequest.new(:description => "My ecosystem", :name => "test-sdk-#{SecureRandom.uuid}", :uri => "https://example.com"))
actual_create = service.create_ecosystem(Trinsic::Provider_V1::CreateEcosystemRequest.new(:description => "My ecosystem", :uri => "https://example.com"))
assert(actual_create.ecosystem != nil, "Ecosystem should be created")
assert(actual_create.ecosystem.id != nil, "Id should exist")
assert(actual_create.ecosystem.id.start_with?("urn:trinsic:ecosystems:"))
Expand Down