Skip to content
Merged
Changes from 3 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
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,29 @@ on:
pull_request:
name: ci
jobs:
bulk-filter:
Comment thread
chingor13 marked this conversation as resolved.
runs-on: ubuntu-latest
permissions:
pull-requests: read
# Set job outputs to values from filter step
outputs:
src: ${{ steps.filter.outputs.src }}
ci: ${{ steps.filter.outputs.ci }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
src:
- '**/*.java'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So a bigquery change would trigger bulk units too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So a bigquery change would trigger bulk units too?

Potentially, another library depends on bigquery. We could possibly get more explicit here on paths

- '**/pom.xml'
ci:
- '.github/workflows/ci.yaml'
- '.kokoro/**'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this filter is only for units, why do we want kokoro changes to trigger it?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I see that units and integration tests share the same scripts in .kokoro. Maybe we can split them, but that's for a different PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this filter is only for units, why do we want kokoro changes to trigger it?

We run .kokoro/build.sh and use helpers in .kokoro/ folder

units:
runs-on: ubuntu-latest
needs: bulk-filter
strategy:
fail-fast: false
matrix:
Expand All @@ -42,11 +63,13 @@ jobs:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-unified-${{ steps.date.outputs.week_of_year }}
- run: .kokoro/build.sh
if: ${{ needs.bulk-filter.outputs.src == 'true' || needs.bulk-filter.outputs.ci == 'true' }}
env:
JOB_TYPE: test
JOB_NAME: units-${{matrix.java}}
units-8-runtime:
runs-on: ubuntu-latest
needs: bulk-filter
name: "units (8)"
steps:
- name: Get current week within the year
Expand All @@ -73,6 +96,7 @@ jobs:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-unified-${{ steps.date.outputs.week_of_year }}
- run: .kokoro/build.sh
if: ${{ needs.bulk-filter.outputs.src == 'true' || needs.bulk-filter.outputs.ci == 'true' }}
shell: bash
env:
JOB_TYPE: test
Expand Down
Loading