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

Test source #3 #3

Closed
wants to merge 4 commits into from
Closed
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
42 changes: 14 additions & 28 deletions .github/workflows/cancel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,22 @@

name: Cancel

on: [push, pull_request]
on:
workflow_run:
workflows:
- "Build python source distribution and wheels"
- "Java Tests"
- "Python tests"
types: ['requested']

jobs:

cancel_build_wheels:
name: 'Cancel Previous Runs of python source distribution and wheels build'
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Get build_wheels workflow id
run: |
WORKFLOW_ID=$(curl "Authorization: token ${{ github.token }}" https://api.github.com/repos/${{ github.repository }}/actions/workflows/build_wheels.yml | jq '.id')
echo "Workflow id: ${WORKFLOW_ID}"
echo "::set-env name=WORKFLOW_ID::${WORKFLOW_ID}"
- uses: styfle/cancel-workflow-action@0.3.2
with:
workflow_id: ${{ env.WORKFLOW_ID }}
access_token: ${{ github.token }}

cancel_java_tests:
name: 'Cancel Previous Runs of Java Tests'
cancel-duplicate-workflow-runs:
name: "Cancel duplicate workflow runs"
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Get java_tests workflow id
run: |
WORKFLOW_ID=$(curl "Authorization: token ${{ github.token }}" https://api.github.com/repos/${{ github.repository }}/actions/workflows/java_tests.yml | jq '.id')
echo "Workflow id: ${WORKFLOW_ID}"
echo "::set-env name=WORKFLOW_ID::${WORKFLOW_ID}"
- uses: styfle/cancel-workflow-action@0.3.2
- uses: potiuk/cancel-workflow-runs@v2.0.1
name: "Cancel duplicate workflow runs"
with:
workflow_id: ${{ env.WORKFLOW_ID }}
access_token: ${{ github.token }}
cancelMode: duplicates
token: ${{ secrets.GITHUB_TOKEN }}
sourceRunId: ${{ github.event.workflow_run.id }}
2 changes: 0 additions & 2 deletions sdks/python/apache_beam/testing/load_tests/pardo_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
import logging
import os
import time
from typing import Tuple

import apache_beam as beam
from apache_beam import pvalue
Expand All @@ -89,7 +88,6 @@
from apache_beam.testing.load_tests.load_test_metrics_utils import MeasureLatency
from apache_beam.testing.load_tests.load_test_metrics_utils import MeasureTime
from apache_beam.testing.synthetic_pipeline import SyntheticSource
from apache_beam.transforms import userstate


class ParDoTest(LoadTest):
Expand Down