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
2 changes: 1 addition & 1 deletion .github/workflows/go-test-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/make-go-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
persist-credentials: false

Expand Down
54 changes: 27 additions & 27 deletions .github/workflows/test-RFC8927-reconstitution.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,34 @@ on: [push]
permissions: {}

jobs:
test-rfc8927-reconstitution:
outputs:
status: ${{ job.status }}
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
test-rfc8927-reconstitution:
outputs:
status: ${{ job.status }}
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]

steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false

- name: set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Analyze the code with test_rfcC8927_reconstitution.py
run: ./bin/test_rfc8927_reconstitution.py
- name: Analyze the code with test_rfcC8927_reconstitution.py
run: ./bin/test_rfc8927_reconstitution.py

slack-notification:
needs: [test-rfc8927-reconstitution]
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.test-rfc8927-reconstitution.outputs.status ) && github.ref_name == github.event.repository.default_branch }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
with:
job-status: ${{ needs.test-rfc8927-reconstitution.outputs.status }}
slack-notification:
needs: [test-rfc8927-reconstitution]
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.test-rfc8927-reconstitution.outputs.status ) && github.ref_name == github.event.repository.default_branch }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
with:
job-status: ${{ needs.test-rfc8927-reconstitution.outputs.status }}
148 changes: 74 additions & 74 deletions .github/workflows/test-generated-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,89 +5,89 @@ on: [push]
permissions: {}

jobs:
test-generated-files:
outputs:
status: ${{ job.status }}
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
test-generated-files:
outputs:
status: ${{ job.status }}
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false

- name: Set up Python ${{ matrix.python-version }}.
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}.
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Verify TruthSets.
run: |
mkdir -p /tmp/truthsets
curl -X GET --output /tmp/truthsets/customers.jsonl https://raw.githubusercontent.com/Senzing/truth-sets/refs/heads/main/truthsets/demo/customers.jsonl
curl -X GET --output /tmp/truthsets/reference.jsonl https://raw.githubusercontent.com/Senzing/truth-sets/refs/heads/main/truthsets/demo/reference.jsonl
curl -X GET --output /tmp/truthsets/watchlist.jsonl https://raw.githubusercontent.com/Senzing/truth-sets/refs/heads/main/truthsets/demo/watchlist.jsonl
diff --recursive ./testdata/truthsets /tmp/truthsets
- name: Verify TruthSets.
run: |
mkdir -p /tmp/truthsets
curl -X GET --output /tmp/truthsets/customers.jsonl https://raw.githubusercontent.com/Senzing/truth-sets/refs/heads/main/truthsets/demo/customers.jsonl
curl -X GET --output /tmp/truthsets/reference.jsonl https://raw.githubusercontent.com/Senzing/truth-sets/refs/heads/main/truthsets/demo/reference.jsonl
curl -X GET --output /tmp/truthsets/watchlist.jsonl https://raw.githubusercontent.com/Senzing/truth-sets/refs/heads/main/truthsets/demo/watchlist.jsonl
diff --recursive ./testdata/truthsets /tmp/truthsets

- name: Install jtd-codegen.
run: |
curl -X GET --location --output jtd-codegen.zip https://github.com/jsontypedef/json-typedef-codegen/releases/download/v0.4.1/x86_64-unknown-linux-musl.zip
unzip jtd-codegen.zip
chmod +x jtd-codegen
./jtd-codegen --version
- name: Install jtd-codegen.
run: |
curl -X GET --location --output jtd-codegen.zip https://github.com/jsontypedef/json-typedef-codegen/releases/download/v0.4.1/x86_64-unknown-linux-musl.zip
unzip jtd-codegen.zip
chmod +x jtd-codegen
./jtd-codegen --version

- name: Verify generated C-sharp code is up-to-date.
run: |
mkdir -p /tmp/csharp/Senzing.Typedef
./jtd-codegen --csharp-system-text-namespace Senzing.Typedef --csharp-system-text-out /tmp/csharp/Senzing.Typedef --root-name senzingsdk senzingsdk-RFC8927.json
for file in /tmp/csharp/Senzing.Typedef/*; do sed -i '2i #pragma warning disable CS8601, CS8618' "$file"; done
diff --recursive ./csharp/Senzing.Typedef /tmp/csharp/Senzing.Typedef
- name: Verify generated C-sharp code is up-to-date.
run: |
mkdir -p /tmp/csharp/Senzing.Typedef
./jtd-codegen --csharp-system-text-namespace Senzing.Typedef --csharp-system-text-out /tmp/csharp/Senzing.Typedef --root-name senzingsdk senzingsdk-RFC8927.json
for file in /tmp/csharp/Senzing.Typedef/*; do sed -i '2i #pragma warning disable CS8601, CS8618' "$file"; done
diff --recursive ./csharp/Senzing.Typedef /tmp/csharp/Senzing.Typedef

- name: Verify generated Go code is up-to-date.
run: |
mkdir -p /tmp/go/typedef
./jtd-codegen --go-out /tmp/go/typedef --go-package typedef --root-name senzingsdk senzingsdk-RFC8927.json
diff ./go/typedef/typedef.go /tmp/go/typedef/typedef.go
- name: Verify generated Go code is up-to-date.
run: |
mkdir -p /tmp/go/typedef
./jtd-codegen --go-out /tmp/go/typedef --go-package typedef --root-name senzingsdk senzingsdk-RFC8927.json
diff ./go/typedef/typedef.go /tmp/go/typedef/typedef.go

- name: Verify generated Java code is up-to-date.
run: |
mkdir -p /tmp/java/src/main/java/com/senzing/typedef
./jtd-codegen --java-jackson-out /tmp/java/src/main/java/com/senzing/typedef --java-jackson-package com.senzing.typedef --root-name senzingsdk senzingsdk-RFC8927.json
diff --recursive ./java/src /tmp/java/src
- name: Verify generated Java code is up-to-date.
run: |
mkdir -p /tmp/java/src/main/java/com/senzing/typedef
./jtd-codegen --java-jackson-out /tmp/java/src/main/java/com/senzing/typedef --java-jackson-package com.senzing.typedef --root-name senzingsdk senzingsdk-RFC8927.json
diff --recursive ./java/src /tmp/java/src

- name: Verify generated Python code is up-to-date.
run: |
mkdir -p /tmp/python/senzing_typedef
./jtd-codegen --python-out /tmp/python/senzing_typedef --root-name senzingsdk senzingsdk-RFC8927.json
diff --recursive ./python /tmp/python
- name: Verify generated Python code is up-to-date.
run: |
mkdir -p /tmp/python/senzing_typedef
./jtd-codegen --python-out /tmp/python/senzing_typedef --root-name senzingsdk senzingsdk-RFC8927.json
diff --recursive ./python /tmp/python

- name: Verify generated Ruby code is up-to-date.
run: |
mkdir -p /tmp/ruby
./jtd-codegen --root-name senzingsdk --ruby-module SenzingTypedef --ruby-out /tmp/ruby --ruby-sig-module SenzingSig senzingsdk-RFC8927.json
diff --recursive ./ruby /tmp/ruby
- name: Verify generated Ruby code is up-to-date.
run: |
mkdir -p /tmp/ruby
./jtd-codegen --root-name senzingsdk --ruby-module SenzingTypedef --ruby-out /tmp/ruby --ruby-sig-module SenzingSig senzingsdk-RFC8927.json
diff --recursive ./ruby /tmp/ruby

- name: Verify generated Rust code is up-to-date.
run: |
mkdir -p /tmp/rust
./jtd-codegen --root-name senzingsdk --rust-out /tmp/rust senzingsdk-RFC8927.json
diff --recursive ./rust /tmp/rust
- name: Verify generated Rust code is up-to-date.
run: |
mkdir -p /tmp/rust
./jtd-codegen --root-name senzingsdk --rust-out /tmp/rust senzingsdk-RFC8927.json
diff --recursive ./rust /tmp/rust

- name: Verify generated Typescript code is up-to-date.
run: |
mkdir -p /tmp/typescript
./jtd-codegen --root-name senzingsdk --typescript-out /tmp/typescript senzingsdk-RFC8927.json
diff --recursive ./typescript /tmp/typescript
- name: Verify generated Typescript code is up-to-date.
run: |
mkdir -p /tmp/typescript
./jtd-codegen --root-name senzingsdk --typescript-out /tmp/typescript senzingsdk-RFC8927.json
diff --recursive ./typescript /tmp/typescript

slack-notification:
needs: [test-generated-files]
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.test-generated-files.outputs.status ) && github.ref_name == github.event.repository.default_branch }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
with:
job-status: ${{ needs.test-generated-files.outputs.status }}
slack-notification:
needs: [test-generated-files]
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.test-generated-files.outputs.status ) && github.ref_name == github.event.repository.default_branch }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
with:
job-status: ${{ needs.test-generated-files.outputs.status }}
Loading