Skip to content
Open
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
68 changes: 68 additions & 0 deletions .github/workflows/nightly-e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: Nightly E2E Tests

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nightly + manual dispatch means a regression in examples/**, python/flink_agents/examples/**, or tools/install.sh can sit undetected for up to 24h. Would a path-filtered pull_request: trigger for those paths make sense here, with the cron staying as the safety net for transitive-dep changes? The Flink download + full build is non-trivial wall time per PR, so the nightly-only choice is defensible too — curious which trade-off you prefer.

inputs:
flink-version:
description: 'Flink version to test (e.g., 2.2.0, 2.1.1)'
required: false
default: '2.2.0'
type: string

jobs:
submit-examples-to-flink:
name: submit-examples [flink-${{ matrix.flink-version }}]
runs-on: ubuntu-latest
# Budget: download ~5m + build ~15m + cluster/submit ~5m + buffer.
timeout-minutes: 45
env:
SKIP_SPOTLESS_CHECK: true
strategy:
fail-fast: false
matrix:
flink-version: ['2.2.0']
steps:
- uses: actions/checkout@v4
- name: Install java
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/0.11.0/install.sh | sh
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Run submit-examples E2E test
env:
FLINK_VERSION: ${{ github.event.inputs.flink-version || matrix.flink-version }}
run: bash e2e-test/test-scripts/test_submit_examples_to_flink.sh
- name: Upload Flink logs on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: flink-logs-${{ matrix.flink-version }}
path: flink-logs-*.tar.gz
if-no-files-found: ignore
Loading
Loading