Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(github): loosen up file matching when selecting tests to run #3021

Merged
merged 1 commit into from
Feb 24, 2024
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
134 changes: 67 additions & 67 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,106 +40,106 @@ jobs:
with:
filters: |
cmd-api-server-changed:
- './packages/cactus-cmd-api-server/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-test-cmd-api-server/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-common/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core-api/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-test-tooling/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-keychain-vault/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-cmd-api-server/**'
- './packages/cactus-test-cmd-api-server/**'
- './packages/cactus-common/**'
- './packages/cactus-core/**'
- './packages/cactus-core-api/**'
- './packages/cactus-test-tooling/**'
- './packages/cactus-plugin-keychain-vault/**'
# - './.github/workflows/ci.yaml'

plugin-ledger-connector-aries-changed:
- './packages/cactus-plugin-ledger-connector-aries/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-common/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core-api/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-test-tooling/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-ledger-connector-aries/**'
- './packages/cactus-common/**'
- './packages/cactus-core/**'
- './packages/cactus-core-api/**'
- './packages/cactus-test-tooling/**'
# - './.github/workflows/ci.yaml'

plugin-ledger-connector-besu-changed:
- './packages/cactus-plugin-ledger-connector-besu/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-test-plugin-ledger-connector-besu/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-common/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core-api/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-test-tooling/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-keychain-memory/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-ledger-connector-besu/**'
- './packages/cactus-test-plugin-ledger-connector-besu/**'
- './packages/cactus-common/**'
- './packages/cactus-core/**'
- './packages/cactus-core-api/**'
- './packages/cactus-test-tooling/**'
- './packages/cactus-plugin-keychain-memory/**'
# - './.github/workflows/ci.yaml''

plugin-ledger-connector-corda-changed:
- './packages/cactus-plugin-ledger-connector-corda/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-common/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core-api/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-test-tooling/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-ledger-connector-corda/**'
- './packages/cactus-common/**'
- './packages/cactus-core/**'
- './packages/cactus-core-api/**'
- './packages/cactus-test-tooling/**'
# - './.github/workflows/ci.yaml'

plugin-ledger-connector-fabric-changed:
- './packages/cactus-plugin-ledger-connector-fabric/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-common/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core-api/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-test-tooling/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-keychain-memory/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-ledger-connector-fabric/**'
- './packages/cactus-common/**'
- './packages/cactus-core/**'
- './packages/cactus-core-api/**'
- './packages/cactus-test-tooling/**'
- './packages/cactus-plugin-keychain-memory/**'
# - './.github/workflows/ci.yaml'

plugin-ledger-connector-ethereum-changed:
- './packages/cactus-plugin-ledger-connector-ethereum/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-common/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core-api/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-test-tooling/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-test-geth-ledger/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-keychain-memory/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-ledger-connector-ethereum/**'
- './packages/cactus-common/**'
- './packages/cactus-core/**'
- './packages/cactus-core-api/**'
- './packages/cactus-test-tooling/**'
- './packages/cactus-test-geth-ledger/**'
- './packages/cactus-plugin-keychain-memory/**'
# - './.github/workflows/ci.yaml'

plugin-ledger-connector-iroha2-changed:
- './packages/cactus-plugin-ledger-connector-iroha2/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-common/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core-api/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-test-tooling/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-keychain-memory/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-ledger-connector-iroha2/**'
- './packages/cactus-common/**'
- './packages/cactus-core/**'
- './packages/cactus-core-api/**'
- './packages/cactus-test-tooling/**'
- './packages/cactus-plugin-keychain-memory/**'
# - './.github/workflows/ci.yaml'

plugin-ledger-connector-quorum-changed:
- './packages/cactus-plugin-ledger-connector-quorum/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-test-plugin-ledger-connector-quorum/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-common/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core-api/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-test-tooling/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-keychain-memory/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-ledger-connector-quorum/**'
- './packages/cactus-test-plugin-ledger-connector-quorum/**'
- './packages/cactus-common/**'
- './packages/cactus-core/**'
- './packages/cactus-core-api/**'
- './packages/cactus-test-tooling/**'
- './packages/cactus-plugin-keychain-memory/**'
# - './.github/workflows/ci.yaml'

test-tooling-changed:
- './packages/cactus-test-tooling/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-common/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-test-tooling/**'
- './packages/cactus-common/**'
# - './.github/workflows/ci.yaml'

ghcr-corda-all-in-one-obligation-changed:
- './tools/docker/corda-all-in-one/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './tools/docker/corda-all-in-one/**'
# - './.github/workflows/ci.yaml'

ghcr-corda-all-in-one-changed:
- './tools/docker/corda-all-in-one/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './tools/docker/corda-all-in-one/**'
# - './.github/workflows/ci.yaml'

ghcr-dev-container-vscode-changed:
- './.devcontainer/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './.devcontainer/**'

plugin-htlc-coordinator-besu-changed:
- './extensions/cactus-plugin-htlc-coordinator-besu/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-htlc-eth-besu/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-htlc-eth-besu-erc20/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-ledger-connector-besu/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-test-plugin-htlc-eth-besu-erc20/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-common/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-core-api/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-test-tooling/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './packages/cactus-plugin-keychain-memory/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './extensions/cactus-plugin-htlc-coordinator-besu/**'
- './packages/cactus-plugin-htlc-eth-besu/**'
- './packages/cactus-plugin-htlc-eth-besu-erc20/**'
- './packages/cactus-plugin-ledger-connector-besu/**'
- './packages/cactus-test-plugin-htlc-eth-besu-erc20/**'
- './packages/cactus-common/**'
- './packages/cactus-core/**'
- './packages/cactus-core-api/**'
- './packages/cactus-test-tooling/**'
- './packages/cactus-plugin-keychain-memory/**'
# - './.github/workflows/ci.yaml'

build-dev:
Expand Down Expand Up @@ -407,11 +407,11 @@ jobs:
tool: 'benchmarkjs'
output-file-path: .tmp/benchmark-results/cmd-api-server/run-cmd-api-server-benchmark.ts.log
github-token: ${{ secrets.GITHUB_TOKEN }}

# Only push the benchmark results to gh-pages website if we are running on the main branch
# We do not want to clutter the benchmark results with intermediate results from PRs that could be drafts
auto-push: ${{ github.ref == 'refs/heads/main' }}

# Show alert with commit comment on detecting possible performance regression
alert-threshold: '5%'
comment-on-alert: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_weaver-asset-exchange-besu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
with:
filters: |
weaver_code_changed:
- './weaver/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/**'
- '.github/workflows/test_weaver-asset-exchange-besu.yaml'

asset-exchange-besu:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_weaver-asset-exchange-corda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
with:
filters: |
weaver_code_changed:
- './weaver/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/**'
- '.github/workflows/test_weaver-asset-exchange-corda.yaml'

asset-exchange-corda:
Expand Down Expand Up @@ -247,7 +247,7 @@ jobs:
with:
filters: |
weaver_code_changed:
- './weaver/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/**'
- '.github/workflows/test_weaver-asset-exchange-corda.yaml'

- name: Set up JDK 8
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_weaver-asset-exchange-fabric.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
with:
filters: |
weaver_code_changed:
- './weaver/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/**'
- '.github/workflows/test_weaver-asset-exchange-fabric.yaml'

asset-exchange-fabric:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_weaver-asset-transfer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
with:
filters: |
weaver_code_changed:
- './weaver/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/**'
- '.github/workflows/test_weaver-asset-transfer.yaml'

asset-transfer:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test_weaver-corda-interop-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
with:
filters: |
interop_cordapp_changed:
- './weaver/common/protos-java-kt/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/core/network/corda-interop-app/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/common/protos-java-kt/**'
- './weaver/core/network/corda-interop-app/**'
- '.github/workflows/test_weaver-corda-interop-app.yaml'

unit_test_interop_cordapp:
Expand All @@ -46,15 +46,15 @@ jobs:
with:
java-version: '8'
distribution: 'adopt'

- name: Build Protos (Local)
run: make build
working-directory: weaver/common/protos-java-kt

- name: Build Corda Interop App (Local)
run: make build-local
working-directory: weaver/core/network/corda-interop-app

- name: Run Tests (Local)
run: make test
working-directory: weaver/core/network/corda-interop-app
8 changes: 4 additions & 4 deletions .github/workflows/test_weaver-data-sharing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
with:
filters: |
weaver_code_changed:
- './weaver/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/**'
- '.github/workflows/test_weaver-data-sharing.yaml'

data-sharing:
needs: check_code_changed
if: ${{ false && needs.check_code_changed.outputs.status == 'true' }}
Expand Down Expand Up @@ -425,7 +425,7 @@ jobs:
with:
filters: |
weaver_code_changed:
- './weaver/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/**'
- '.github/workflows/test_weaver-data-sharing.yaml'

- name: Set up JDK 8
Expand Down Expand Up @@ -850,7 +850,7 @@ jobs:
with:
filters: |
weaver_code_changed:
- './weaver/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/**'
- '.github/workflows/test_weaver-data-sharing.yaml'

- name: Set up JDK 8
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/test_weaver-docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,30 @@ jobs:
with:
filters: |
relay_changed:
- './weaver/common/protos-rs/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/core/relay/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/common/protos-rs/**'
- './weaver/core/relay/**'
- '.github/workflows/test_weaver-docker-build.yaml'

fabric_driver_changed:
- './weaver/common/protos/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/common/protos-js/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/sdks/fabric/interoperation-node-sdk/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/weaver/core/drivers/fabric-driver/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/common/protos/**'
- './weaver/common/protos-js/**'
- './weaver/sdks/fabric/interoperation-node-sdk/**'
- './weaver/weaver/core/drivers/fabric-driver/**'
- '.github/workflows/test_weaver-docker-build.yaml'

corda_driver_changed:
- './weaver/common/protos/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/common/protos-java-kt/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/core/network/corda-interop-app/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/sdks/corda/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/core/drivers/corda-driver/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/common/protos/**'
- './weaver/common/protos-java-kt/**'
- './weaver/core/network/corda-interop-app/**'
- './weaver/sdks/corda/**'
- './weaver/core/drivers/corda-driver/**'
- '.github/workflows/test_weaver-docker-build.yaml'

iin_agent_changed:
- './weaver/common/protos/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/common/protos-js/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/sdks/fabric/interoperation-node-sdk/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/core/identity-management/iin-agent/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- './weaver/common/protos/**'
- './weaver/common/protos-js/**'
- './weaver/sdks/fabric/interoperation-node-sdk/**'
- './weaver/core/identity-management/iin-agent/**'
- '.github/workflows/test_weaver-docker-build.yaml'

build_docker_relay:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test_weaver-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ jobs:
with:
filters: |
interopcc_changed:
- 'weaver/common/protos-go/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- 'weaver/core/network/fabric-interop-cc/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- 'weaver/common/protos-go/**'
- 'weaver/core/network/fabric-interop-cc/**'
- '.github/workflows/test_weaver-go.yaml'

simplestate_changed:
- 'weaver/samples/fabric/simplestate/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- 'weaver/samples/fabric/simplestate/**'

simpleasset_changed:
- 'weaver/samples/fabric/simpleasset/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- 'weaver/samples/fabric/simpleasset/**'

simpleassetandinterop_changed:
- 'weaver/samples/fabric/simpleassetandinterop/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- 'weaver/samples/fabric/simpleassetandinterop/**'

simpleassettransfer_changed:
- 'weaver/samples/fabric/simpleassettransfer/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- 'weaver/samples/fabric/simpleassettransfer/**'

unit_test_interopcc:
needs: check_code_changed
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_weaver-relay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
with:
filters: |
relay_changed:
- '.weaver/common/protos/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- '.weaver/common/protos-rs/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- '.weaver/core/relay/**!(*.md|*.css|*.html|*.jpg|*.jpeg|*.png)'
- '.weaver/common/protos/**'
- '.weaver/common/protos-rs/**'
- '.weaver/core/relay/**'
- .github/workflows/test_weaver-relay.yaml'

unit_test_relay_local:
Expand Down
Loading