-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ci: only run bulk units for material changes #12332
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,8 +20,29 @@ on: | |
| pull_request: | ||
| name: ci | ||
| jobs: | ||
| bulk-filter: | ||
| 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' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So a bigquery change would trigger bulk units too?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Potentially, another library depends on bigquery. We could possibly get more explicit here on paths |
||
| - '**/pom.xml' | ||
| ci: | ||
| - '.github/workflows/ci.yaml' | ||
| - '.kokoro/**' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
We run |
||
| units: | ||
| runs-on: ubuntu-latest | ||
| needs: bulk-filter | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
|
|
@@ -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 | ||
|
|
@@ -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 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.