Skip to content
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
2 changes: 1 addition & 1 deletion .github/trigger_files/beam_PostCommit_Python.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"comment": "Modify this file in a trivial way to cause this test suite to run.",
"pr": "40139",
"modification": 59
"modification": 60
}
19 changes: 19 additions & 0 deletions .github/workflows/beam_PostCommit_Python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,25 @@ jobs:
PY_VER=${{ matrix.python_version }}
PY_VER_CLEAN=${PY_VER//.}
echo "py_ver_clean=$PY_VER_CLEAN" >> $GITHUB_OUTPUT
- name: Authenticate on GCP
id: auth
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093
with:
service_account: ${{ secrets.GCP_SA_EMAIL }}
credentials_json: ${{ secrets.GCP_SA_KEY }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db
- name: Activate service account in runner gcloud config
env:
CLOUDSDK_CONFIG: ${{ env.KUBELET_GCLOUD_CONFIG_PATH}}
run: |
mkdir -p "$CLOUDSDK_CONFIG"
cp "${{ steps.auth.outputs.credentials_file_path }}" \
"$CLOUDSDK_CONFIG/application_default_credentials.json"
gcloud auth activate-service-account \
"${{ secrets.GCP_SA_EMAIL }}" \
--key-file="${{ steps.auth.outputs.credentials_file_path }}"
gcloud config set project apache-beam-testing
- name: run PostCommit Python ${{ matrix.python_version }} script
uses: ./.github/actions/gradle-command-self-hosted-action
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ def test_leader_board_it(self):
self.OUTPUT_TABLE_USERS,
success_condition))
bq_users_verifier = BigqueryMatcher(
self.project, users_query, self.DEFAULT_EXPECTED_CHECKSUM)
self.project,
users_query,
self.DEFAULT_EXPECTED_CHECKSUM,
timeout_secs=300)

teams_query = (
'SELECT total_score FROM `%s.%s.%s` '
Expand All @@ -134,7 +137,10 @@ def test_leader_board_it(self):
self.OUTPUT_TABLE_TEAMS,
success_condition))
bq_teams_verifier = BigqueryMatcher(
self.project, teams_query, self.DEFAULT_EXPECTED_CHECKSUM)
self.project,
teams_query,
self.DEFAULT_EXPECTED_CHECKSUM,
timeout_secs=300)

extra_opts = {
'allow_unsafe_triggers': True,
Expand Down
Loading