diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml deleted file mode 100644 index f5005c69817..00000000000 --- a/.github/workflows/claude-code-review.yml +++ /dev/null @@ -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]') - diff --git a/.github/workflows/issues-notion-sync.yml b/.github/workflows/issues-notion-sync.yml deleted file mode 100644 index 9c662dd0d9f..00000000000 --- a/.github/workflows/issues-notion-sync.yml +++ /dev/null @@ -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 }} diff --git a/.github/workflows/maven-build-skip.yml b/.github/workflows/maven-build-skip.yml deleted file mode 100644 index 8c4fe7a9aeb..00000000000 --- a/.github/workflows/maven-build-skip.yml +++ /dev/null @@ -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"' \ No newline at end of file diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml deleted file mode 100644 index f9b29a148bb..00000000000 --- a/.github/workflows/maven-build.yml +++ /dev/null @@ -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' diff --git a/.github/workflows/maven-postgres-rdf-tests-build.yml b/.github/workflows/maven-postgres-rdf-tests-build.yml deleted file mode 100644 index b44c8bb0c98..00000000000 --- a/.github/workflows/maven-postgres-rdf-tests-build.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/maven-postgres-tests-build-skip.yml b/.github/workflows/maven-postgres-tests-build-skip.yml deleted file mode 100644 index e36bf41e804..00000000000 --- a/.github/workflows/maven-postgres-tests-build-skip.yml +++ /dev/null @@ -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"' diff --git a/.github/workflows/maven-postgres-tests-build.yml b/.github/workflows/maven-postgres-tests-build.yml deleted file mode 100644 index f918e45b531..00000000000 --- a/.github/workflows/maven-postgres-tests-build.yml +++ /dev/null @@ -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' diff --git a/.github/workflows/phylum.yml b/.github/workflows/phylum.yml deleted file mode 100644 index 832c77dfa84..00000000000 --- a/.github/workflows/phylum.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/py-nox-ci.yml b/.github/workflows/py-nox-ci.yml deleted file mode 100644 index 0fb0a3584e0..00000000000 --- a/.github/workflows/py-nox-ci.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.github/workflows/selenium-noIngestion-tests.yml b/.github/workflows/selenium-noIngestion-tests.yml deleted file mode 100644 index f14f4c790a1..00000000000 --- a/.github/workflows/selenium-noIngestion-tests.yml +++ /dev/null @@ -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 - diff --git a/.github/workflows/ui-core-components-tests.yml b/.github/workflows/ui-core-components-tests.yml deleted file mode 100644 index 3644abbbcd9..00000000000 --- a/.github/workflows/ui-core-components-tests.yml +++ /dev/null @@ -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"