mirror of
https://github.com/open-metadata/OpenMetadata
synced 2026-05-24 09:39:11 +00:00
Clean up dead/legacy GitHub Actions workflows (#26634)
* Remove disabled maven-build and maven-build-skip workflows
These workflows have been fully replaced by the integration-tests-* workflows.
maven-build.yml was gated by `if: false` and maven-build-skip.yml only existed
to satisfy required checks for the disabled workflow.
* Remove disabled Maven Postgres test workflows
maven-postgres-rdf-tests-build.yml and maven-postgres-tests-build.yml were
disabled (if: false / workflow_dispatch-only) and replaced by the
integration-tests-* workflows. maven-postgres-tests-build-skip.yml was their
required-check placeholder.
* Remove placeholder ui-core-components-tests workflow
The workflow only echoed "Nothing to test" with no actual test steps.
Can be re-added when tests are implemented for the core components library.
* Remove inactive claude-code-review workflow
PR trigger was commented out, making it dispatch-only and unused.
The active claude.yml workflow (triggered by @claude mentions) remains.
* Remove legacy Selenium E2E test workflow
All E2E tests have migrated to Playwright. This Selenium workflow also had
hardcoded sleep instead of health checks and no Docker cleanup step.
* Update monitor-slack-link from Python 3.9 (EOL) to 3.11
* Remove experimental py-nox-ci workflow
Manual-only experimental workflow for testing Nox as a Python CI replacement.
No longer in use — existing py-tests workflows handle Python CI.
* Revert "Update monitor-slack-link from Python 3.9 (EOL) to 3.11"
This reverts commit ea9fa04e9d.
* Remove phylum and issues-notion-sync workflows
Phylum dependency analysis and Notion issue sync are no longer in use.
This commit is contained in:
parent
7fabb76d0a
commit
5d44a496b4
11 changed files with 0 additions and 784 deletions
79
.github/workflows/claude-code-review.yml
vendored
79
.github/workflows/claude-code-review.yml
vendored
|
|
@ -1,79 +0,0 @@
|
|||
name: Claude Code Review
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
#pull_request:
|
||||
# types: [opened, synchronize]
|
||||
# Optional: Only run on specific file changes
|
||||
# paths:
|
||||
# - "src/**/*.ts"
|
||||
# - "src/**/*.tsx"
|
||||
# - "src/**/*.js"
|
||||
# - "src/**/*.jsx"
|
||||
|
||||
jobs:
|
||||
claude-review:
|
||||
# Optional: Filter by PR author
|
||||
# if: |
|
||||
# github.event.pull_request.user.login == 'external-contributor' ||
|
||||
# github.event.pull_request.user.login == 'new-developer' ||
|
||||
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
issues: read
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Run Claude Code Review
|
||||
id: claude-review
|
||||
uses: anthropics/claude-code-action@beta
|
||||
with:
|
||||
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
||||
|
||||
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
|
||||
# model: "claude-opus-4-20250514"
|
||||
|
||||
# Direct prompt for automated review (no @claude mention needed)
|
||||
direct_prompt: |
|
||||
Please review this pull request and provide feedback on:
|
||||
- Code quality and best practices
|
||||
- Potential bugs or issues
|
||||
- Performance considerations
|
||||
- Security concerns
|
||||
- Test coverage
|
||||
|
||||
Be constructive and helpful in your feedback.
|
||||
|
||||
# Optional: Use sticky comments to make Claude reuse the same comment on subsequent pushes to the same PR
|
||||
# use_sticky_comment: true
|
||||
|
||||
# Optional: Customize review based on file types
|
||||
# direct_prompt: |
|
||||
# Review this PR focusing on:
|
||||
# - For TypeScript files: Type safety and proper interface usage
|
||||
# - For API endpoints: Security, input validation, and error handling
|
||||
# - For React components: Performance, accessibility, and best practices
|
||||
# - For tests: Coverage, edge cases, and test quality
|
||||
|
||||
# Optional: Different prompts for different authors
|
||||
# direct_prompt: |
|
||||
# ${{ github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' &&
|
||||
# 'Welcome! Please review this PR from a first-time contributor. Be encouraging and provide detailed explanations for any suggestions.' ||
|
||||
# 'Please provide a thorough code review focusing on our coding standards and best practices.' }}
|
||||
|
||||
# Optional: Add specific tools for running tests or linting
|
||||
# allowed_tools: "Bash(npm run test),Bash(npm run lint),Bash(npm run typecheck)"
|
||||
|
||||
# Optional: Skip review for certain conditions
|
||||
# if: |
|
||||
# !contains(github.event.pull_request.title, '[skip-review]') &&
|
||||
# !contains(github.event.pull_request.title, '[WIP]')
|
||||
|
||||
29
.github/workflows/issues-notion-sync.yml
vendored
29
.github/workflows/issues-notion-sync.yml
vendored
|
|
@ -1,29 +0,0 @@
|
|||
name: Notion Sync
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
issues:
|
||||
types:
|
||||
[
|
||||
opened,
|
||||
edited,
|
||||
labeled,
|
||||
unlabeled,
|
||||
assigned,
|
||||
unassigned,
|
||||
milestoned,
|
||||
demilestoned,
|
||||
reopened,
|
||||
closed,
|
||||
]
|
||||
|
||||
jobs:
|
||||
notion_job:
|
||||
runs-on: ubuntu-latest
|
||||
name: Add GitHub Issues to Notion
|
||||
steps:
|
||||
- name: Add GitHub Issues to Notion
|
||||
uses: tryfabric/notion-github-action@v1
|
||||
with:
|
||||
notion-token: ${{ secrets.NOTION_TOKEN }}
|
||||
notion-db: ${{ secrets.NOTION_DATABASE }}
|
||||
36
.github/workflows/maven-build-skip.yml
vendored
36
.github/workflows/maven-build-skip.yml
vendored
|
|
@ -1,36 +0,0 @@
|
|||
# Copyright 2021 Collate
|
||||
# Licensed 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.
|
||||
|
||||
# Avoid running Maven CI on each PR opened which does not modify Java or UI code
|
||||
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-
|
||||
# of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
|
||||
name: Maven MySQL Tests CI
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [labeled, opened, synchronize, reopened]
|
||||
paths-ignore:
|
||||
- "openmetadata-service/**"
|
||||
- "openmetadata-spec/src/main/resources/json/schema/**"
|
||||
- "openmetadata-dist/**"
|
||||
- "openmetadata-clients/**"
|
||||
- "openmetadata-sdk/**"
|
||||
- "common/**"
|
||||
- "pom.xml"
|
||||
- "yarn.lock"
|
||||
- "Makefile"
|
||||
- "bootstrap/**"
|
||||
|
||||
jobs:
|
||||
maven-mysql-ci:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: 'echo "Step is not required"'
|
||||
122
.github/workflows/maven-build.yml
vendored
122
.github/workflows/maven-build.yml
vendored
|
|
@ -1,122 +0,0 @@
|
|||
# Copyright 2021 Collate
|
||||
# Licensed 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: Maven MySQL Tests CI
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "openmetadata-service/**"
|
||||
- "openmetadata-ui/**"
|
||||
- "openmetadata-spec/src/main/resources/json/schema/**"
|
||||
- "openmetadata-dist/**"
|
||||
- "openmetadata-clients/**"
|
||||
- "openmetadata-sdk/**"
|
||||
- "common/**"
|
||||
- "pom.xml"
|
||||
- "yarn.lock"
|
||||
- "Makefile"
|
||||
- "bootstrap/**"
|
||||
pull_request_target:
|
||||
types: [labeled, opened, synchronize, reopened, ready_for_review]
|
||||
paths:
|
||||
- "openmetadata-service/**"
|
||||
- "openmetadata-spec/src/main/resources/json/schema/**"
|
||||
- "openmetadata-dist/**"
|
||||
- "openmetadata-clients/**"
|
||||
- "openmetadata-sdk/**"
|
||||
- "common/**"
|
||||
- "pom.xml"
|
||||
- "yarn.lock"
|
||||
- "Makefile"
|
||||
- "bootstrap/**"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
checks: write
|
||||
|
||||
concurrency:
|
||||
group: maven-build-mysql-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
maven-mysql-ci:
|
||||
runs-on: ubuntu-latest
|
||||
# Disabled: Using new integration tests module instead (openmetadata-integration-tests)
|
||||
if: false
|
||||
steps:
|
||||
- name: Wait for the labeler
|
||||
uses: lewagon/wait-on-check-action@v1.3.4
|
||||
if: ${{ github.event_name == 'pull_request_target' }}
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
check-name: Team Label
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
wait-interval: 90
|
||||
|
||||
- name: Verify PR labels
|
||||
uses: jesusvasquez333/verify-pr-label-action@v1.4.0
|
||||
if: ${{ github.event_name == 'pull_request_target' }}
|
||||
with:
|
||||
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
valid-labels: 'safe to test'
|
||||
pull-request-number: '${{ github.event.pull_request.number }}'
|
||||
disable-reviews: true # To not auto approve changes
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Cache Maven dependencies
|
||||
id: cache-output
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.m2
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-maven-
|
||||
|
||||
- name: Set up JDK 21
|
||||
if: steps.cache-output.outputs.exit-code == 0
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Install Ubuntu dependencies
|
||||
if: steps.cache-output.outputs.exit-code == 0
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y unixodbc-dev python3-venv librdkafka-dev gcc libsasl2-dev build-essential libssl-dev libffi-dev \
|
||||
librdkafka-dev unixodbc-dev libevent-dev jq
|
||||
sudo make install_antlr_cli
|
||||
|
||||
- name: Build with Maven
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: mvn clean package -am
|
||||
|
||||
- name: Clean Up
|
||||
run: |
|
||||
cd ./docker/development
|
||||
docker compose down --remove-orphans
|
||||
sudo rm -rf ${PWD}/docker-volume
|
||||
|
||||
- name: Publish Test Report
|
||||
if: ${{ always() }}
|
||||
uses: scacap/action-surefire-report@v1
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
fail_on_test_failures: true
|
||||
report_paths: 'openmetadata-service/target/surefire-reports/TEST-*.xml'
|
||||
146
.github/workflows/maven-postgres-rdf-tests-build.yml
vendored
146
.github/workflows/maven-postgres-rdf-tests-build.yml
vendored
|
|
@ -1,146 +0,0 @@
|
|||
# Copyright 2021 Collate
|
||||
# Licensed 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: Maven Postgres RDF Tests CI
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- ".github/workflows/maven-postgres-rdf-tests-build.yml"
|
||||
- "openmetadata-service/src/main/java/org/openmetadata/service/rdf/**"
|
||||
- "openmetadata-service/src/test/java/org/openmetadata/service/resources/rdf/**"
|
||||
- "openmetadata-spec/src/main/resources/rdf/**"
|
||||
- "openmetadata-spec/src/main/resources/json/schema/api/rdf/**"
|
||||
- "openmetadata-spec/src/main/resources/json/schema/configuration/rdfConfiguration.json"
|
||||
- "openmetadata-service/src/main/java/org/openmetadata/service/resources/rdf/**"
|
||||
- "pom.xml"
|
||||
- "openmetadata-service/pom.xml"
|
||||
pull_request_target:
|
||||
types: [labeled, opened, synchronize, reopened, ready_for_review]
|
||||
paths:
|
||||
- ".github/workflows/maven-postgres-rdf-tests-build.yml"
|
||||
- "openmetadata-service/src/main/java/org/openmetadata/service/rdf/**"
|
||||
- "openmetadata-service/src/test/java/org/openmetadata/service/resources/rdf/**"
|
||||
- "openmetadata-spec/src/main/resources/rdf/**"
|
||||
- "openmetadata-spec/src/main/resources/json/schema/api/rdf/**"
|
||||
- "openmetadata-spec/src/main/resources/json/schema/configuration/rdfConfiguration.json"
|
||||
- "openmetadata-service/src/main/java/org/openmetadata/service/resources/rdf/**"
|
||||
- "pom.xml"
|
||||
- "openmetadata-service/pom.xml"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
checks: write
|
||||
|
||||
concurrency:
|
||||
group: maven-build-postgres-rdf-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
maven-postgresql-rdf-ci:
|
||||
runs-on: ubuntu-latest
|
||||
# Disabled: Using new integration tests module instead (openmetadata-integration-tests)
|
||||
if: false
|
||||
steps:
|
||||
- name: Wait for the labeler
|
||||
uses: lewagon/wait-on-check-action@v1.3.4
|
||||
if: ${{ github.event_name == 'pull_request_target' }}
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
check-name: Team Label
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
wait-interval: 90
|
||||
|
||||
- name: Verify PR labels
|
||||
uses: jesusvasquez333/verify-pr-label-action@v1.4.0
|
||||
if: ${{ github.event_name == 'pull_request_target' }}
|
||||
with:
|
||||
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
valid-labels: 'safe to test'
|
||||
pull-request-number: '${{ github.event.pull_request.number }}'
|
||||
disable-reviews: true # To not auto approve changes
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Cache Maven dependencies
|
||||
id: cache-output
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.m2
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-maven-
|
||||
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Install Ubuntu dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y unixodbc-dev python3-venv librdkafka-dev gcc libsasl2-dev build-essential libssl-dev libffi-dev \
|
||||
librdkafka-dev unixodbc-dev libevent-dev jq
|
||||
sudo make install_antlr_cli
|
||||
|
||||
- name: Build OpenMetadata dependencies
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
mvn clean install -DskipTests
|
||||
|
||||
- name: Run Postgres RDF Test Suite
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
# Run the full openmetadata-service test suite with the RDF profile enabled
|
||||
mvn -Ppostgres-rdf-tests test -pl openmetadata-service \
|
||||
-DfailIfNoTests=false
|
||||
|
||||
- name: Upload RDF Test Logs
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: rdf-test-logs
|
||||
path: |
|
||||
openmetadata-service/target/surefire-reports/
|
||||
openmetadata-service/logs/
|
||||
|
||||
- name: Publish Test Report
|
||||
if: ${{ always() }}
|
||||
uses: scacap/action-surefire-report@v1
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
fail_on_test_failures: true
|
||||
report_paths: 'openmetadata-service/target/surefire-reports/TEST-*.xml'
|
||||
|
||||
- name: Generate Job Summary
|
||||
if: always()
|
||||
run: |
|
||||
echo "## RDF Integration Tests Summary" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
if ls openmetadata-service/target/surefire-reports/TEST-*.xml >/dev/null 2>&1; then
|
||||
echo "✅ Test suite completed (RDF profile)" >> $GITHUB_STEP_SUMMARY
|
||||
else
|
||||
echo "❌ Tests failed or did not run" >> $GITHUB_STEP_SUMMARY
|
||||
fi
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
echo "### Test Configuration" >> $GITHUB_STEP_SUMMARY
|
||||
echo "- RDF Enabled: true" >> $GITHUB_STEP_SUMMARY
|
||||
echo "- Storage Type: IN_MEMORY" >> $GITHUB_STEP_SUMMARY
|
||||
echo "- Base URI: https://open-metadata.org/" >> $GITHUB_STEP_SUMMARY
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
# Copyright 2021 Collate
|
||||
# Licensed 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: Maven Postgres Tests CI
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [labeled, opened, synchronize, reopened]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
checks: write
|
||||
|
||||
jobs:
|
||||
maven-postgresql-ci:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: 'echo "Step is not required"'
|
||||
105
.github/workflows/maven-postgres-tests-build.yml
vendored
105
.github/workflows/maven-postgres-tests-build.yml
vendored
|
|
@ -1,105 +0,0 @@
|
|||
# Copyright 2021 Collate
|
||||
# Licensed 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: Maven Postgres Tests CI
|
||||
# Disabled: Integration tests (openmetadata-integration-tests) now cover the same ground
|
||||
# with full Testcontainers-based PostgreSQL testing.
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
checks: write
|
||||
|
||||
concurrency:
|
||||
group: maven-build-postgres-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
maven-postgresql-ci:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ !github.event.pull_request.draft }}
|
||||
steps:
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
tool-cache: false
|
||||
android: true
|
||||
dotnet: true
|
||||
haskell: true
|
||||
large-packages: false
|
||||
swap-storage: true
|
||||
docker-images: false
|
||||
- name: Wait for the labeler
|
||||
uses: lewagon/wait-on-check-action@v1.3.4
|
||||
if: ${{ github.event_name == 'pull_request_target' }}
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
check-name: Team Label
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
wait-interval: 90
|
||||
|
||||
- name: Verify PR labels
|
||||
uses: jesusvasquez333/verify-pr-label-action@v1.4.0
|
||||
if: ${{ github.event_name == 'pull_request_target' }}
|
||||
with:
|
||||
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
valid-labels: 'safe to test'
|
||||
pull-request-number: '${{ github.event.pull_request.number }}'
|
||||
disable-reviews: true # To not auto approve changes
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Cache Maven dependencies
|
||||
id: cache-output
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.m2
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-maven-
|
||||
|
||||
- name: Set up JDK 21
|
||||
if: steps.cache-output.outputs.exit-code == 0
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Install Ubuntu dependencies
|
||||
if: steps.cache-output.outputs.exit-code == 0
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y unixodbc-dev python3-venv librdkafka-dev gcc libsasl2-dev build-essential libssl-dev libffi-dev \
|
||||
librdkafka-dev unixodbc-dev libevent-dev jq
|
||||
sudo make install_antlr_cli
|
||||
|
||||
- name: Build with Maven
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: mvn -Ppostgres-tests clean package -am
|
||||
|
||||
- name: Clean Up
|
||||
run: |
|
||||
cd ./docker/development
|
||||
docker compose down --remove-orphans
|
||||
sudo rm -rf ${PWD}/docker-volume
|
||||
|
||||
- name: Publish Test Report
|
||||
if: ${{ always() }}
|
||||
uses: scacap/action-surefire-report@v1
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
fail_on_test_failures: true
|
||||
report_paths: 'openmetadata-service/target/surefire-reports/TEST-*.xml'
|
||||
51
.github/workflows/phylum.yml
vendored
51
.github/workflows/phylum.yml
vendored
|
|
@ -1,51 +0,0 @@
|
|||
name: Phylum Analyze
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [labeled, opened, synchronize, reopened]
|
||||
paths:
|
||||
- "ingestion/**"
|
||||
- "openmetadata-service/**"
|
||||
- "openmetadata-ui/**"
|
||||
|
||||
jobs:
|
||||
analyze_deps:
|
||||
name: Analyze dependencies with Phylum
|
||||
environment: test
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Wait for the labeler
|
||||
uses: lewagon/wait-on-check-action@v1.3.4
|
||||
if: ${{ github.event_name == 'pull_request_target' }}
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
check-name: Team Label
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
wait-interval: 90
|
||||
- name: Verify PR labels
|
||||
uses: jesusvasquez333/verify-pr-label-action@v1.4.0
|
||||
if: ${{ github.event_name == 'pull_request_target' }}
|
||||
with:
|
||||
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
valid-labels: 'safe to test'
|
||||
pull-request-number: '${{ github.event.pull_request.number }}'
|
||||
disable-reviews: true # To not auto approve changes
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
fetch-depth: 0
|
||||
- name: Analyze dependencies
|
||||
uses: phylum-dev/phylum-analyze-pr-action@v2
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
phylum_token: ${{ secrets.PHYLUM_TOKEN }}
|
||||
cmd: |
|
||||
phylum-ci -vv \
|
||||
--depfile ingestion/setup.py \
|
||||
--depfile ingestion/pyproject.toml \
|
||||
--depfile openmetadata-service/pom.xml \
|
||||
--depfile openmetadata-ui/src/main/resources/ui/yarn.lock
|
||||
68
.github/workflows/py-nox-ci.yml
vendored
68
.github/workflows/py-nox-ci.yml
vendored
|
|
@ -1,68 +0,0 @@
|
|||
name: Python Nox CI
|
||||
|
||||
# This is a temporary workflow to run format and unit tests using Nox.
|
||||
# It is intended to be manually triggered and will not run on pull requests or pushes.
|
||||
# Once this is fully tested and stable, we might replace the existing Python CI workflow with this one
|
||||
# to speed it up and simplify the process.
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Manual trigger only
|
||||
|
||||
jobs:
|
||||
format-and-unit:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
working-directory: ./ingestion
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.10", "3.11"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libkrb5-dev build-essential
|
||||
|
||||
- name: Setup JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Generate Python Data Models
|
||||
run: |
|
||||
cd ..
|
||||
make install_antlr_cli
|
||||
pip install datamodel-code-generator==0.25.6
|
||||
mkdir -p ingestion/src/metadata/generated
|
||||
python scripts/datamodel_generation.py
|
||||
antlr4 -Dlanguage=Python3 -o ingestion/src/metadata/generated/antlr \
|
||||
${PWD}/openmetadata-spec/src/main/antlr4/org/openmetadata/schema/*.g4
|
||||
|
||||
|
||||
- name: Set up Nox
|
||||
run: |
|
||||
# Install uv to speed up virtual environments installation
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
pip install nox
|
||||
|
||||
- name: Run Code Quality Checks
|
||||
if: ${{ matrix.python-version == '3.10' }}
|
||||
run: |
|
||||
nox -s lint
|
||||
|
||||
- name: Run Unit Tests
|
||||
run: |
|
||||
PYTHON_VERSIONS="${{ matrix.python-version }}" nox -s unit
|
||||
|
||||
- name: Run Unit Tests (specific plugins)
|
||||
run: |
|
||||
PYTHON_VERSIONS="${{ matrix.python-version }}" nox -s unit-plugins
|
||||
73
.github/workflows/selenium-noIngestion-tests.yml
vendored
73
.github/workflows/selenium-noIngestion-tests.yml
vendored
|
|
@ -1,73 +0,0 @@
|
|||
# Copyright 2021 Collate
|
||||
# Licensed 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.
|
||||
|
||||
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
|
||||
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
|
||||
|
||||
name: Selenium No Ingestion Java CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- '0.[0-9]+.[0-9]+'
|
||||
paths:
|
||||
- 'openmetadata-ui/src/main/resources/ui/**'
|
||||
- 'openmetadata-ui/src/test/java/org/openmetadata/catalog/selenium/pagesWithoutData/**'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: selenium-noIngestion-tests-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
tool-cache: false
|
||||
android: true
|
||||
dotnet: true
|
||||
haskell: true
|
||||
large-packages: false
|
||||
docker-images: true
|
||||
swap-storage: true
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Generating Data Models
|
||||
run: |
|
||||
sudo make install_antlr_cli
|
||||
make install_dev generate
|
||||
|
||||
- name: Maven Package
|
||||
run: mvn -DskipTests clean package
|
||||
|
||||
- name: Start Server
|
||||
run: cd ./docker/development && docker-compose up -d openmetadata-server mysql elasticsearch
|
||||
timeout-minutes: 20
|
||||
|
||||
- name: Sleep for 30 seconds
|
||||
run: sleep 30s
|
||||
shell: bash
|
||||
|
||||
- name: Run Page Tests without data
|
||||
run: mvn clean test -Dtest="org.openmetadata.catalog.selenium.pagesWithoutData.**.*.java" -DfailIfNoTests=false
|
||||
|
||||
49
.github/workflows/ui-core-components-tests.yml
vendored
49
.github/workflows/ui-core-components-tests.yml
vendored
|
|
@ -1,49 +0,0 @@
|
|||
# Copyright 2025 Collate
|
||||
# Licensed 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: UI Core Components Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
paths:
|
||||
- "openmetadata-ui-core-components/src/main/resources/ui/**"
|
||||
- ".github/workflows/ui-core-components-tests.yml"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
description: "Branch to run tests on"
|
||||
required: false
|
||||
default: "main"
|
||||
type: string
|
||||
run-coverage:
|
||||
description: "Generate coverage report"
|
||||
required: false
|
||||
default: true
|
||||
type: boolean
|
||||
skip-type-check:
|
||||
description: "Skip TypeScript type check"
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
placeholder:
|
||||
name: Placeholder - No Tests
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Placeholder step
|
||||
run: echo "Nothing to test"
|
||||
Loading…
Reference in a new issue