From b53ce1013f2d22d5db59c2157068d7e2a7242349 Mon Sep 17 00:00:00 2001 From: Matt Wiley Date: Mon, 31 Mar 2025 11:22:39 -0400 Subject: [PATCH 1/3] updated: metadata file, using self-hosted runners --- .8451/metadata.yml | 13 +++++++++++++ .github/workflows/build-release.yml | 2 +- .github/workflows/codespell.disabled | 2 +- .github/workflows/deploy-to-hf-spaces.yml | 4 ++-- .github/workflows/docker-build.yaml | 14 +++++++------- .github/workflows/format-backend.yaml | 2 +- .github/workflows/format-build-frontend.yaml | 4 ++-- .github/workflows/integration-test.disabled | 6 +++--- .github/workflows/lint-backend.disabled | 2 +- .github/workflows/lint-frontend.disabled | 2 +- .github/workflows/release-pypi.yml | 2 +- 11 files changed, 33 insertions(+), 20 deletions(-) create mode 100644 .8451/metadata.yml diff --git a/.8451/metadata.yml b/.8451/metadata.yml new file mode 100644 index 000000000..6c754c80a --- /dev/null +++ b/.8451/metadata.yml @@ -0,0 +1,13 @@ +profit_stream: ai_enablement +product: openwebui +capability: ai_acceleration +component: aia_openwebui +business_domain: ai_acceleration +team: GenAI Studio Frontend +contacts: + team: + - GenAIStudio@8451.com + technical: + - matt.wiley@8451.com + product: + - katie.wright@8451.com \ No newline at end of file diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 443d90419..045d871af 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -7,7 +7,7 @@ on: jobs: release: - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: Checkout repository diff --git a/.github/workflows/codespell.disabled b/.github/workflows/codespell.disabled index b23166743..821051d08 100644 --- a/.github/workflows/codespell.disabled +++ b/.github/workflows/codespell.disabled @@ -14,7 +14,7 @@ permissions: jobs: codespell: name: Check for spelling errors - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: Checkout diff --git a/.github/workflows/deploy-to-hf-spaces.yml b/.github/workflows/deploy-to-hf-spaces.yml index 7fc66acf5..495859e2b 100644 --- a/.github/workflows/deploy-to-hf-spaces.yml +++ b/.github/workflows/deploy-to-hf-spaces.yml @@ -9,7 +9,7 @@ on: jobs: check-secret: - runs-on: ubuntu-latest + runs-on: self-hosted outputs: token-set: ${{ steps.check-key.outputs.defined }} steps: @@ -20,7 +20,7 @@ jobs: run: echo "defined=true" >> $GITHUB_OUTPUT deploy: - runs-on: ubuntu-latest + runs-on: self-hosted needs: [check-secret] if: needs.check-secret.outputs.token-set == 'true' env: diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index e61a69f33..50f91d019 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -14,7 +14,7 @@ env: jobs: build-main-image: - runs-on: ${{ matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }} + runs-on: self-hosted permissions: contents: read packages: write @@ -23,7 +23,7 @@ jobs: matrix: platform: - linux/amd64 - - linux/arm64 + # - linux/arm64 steps: # GitHub Packages requires the entire repository name to be in lowercase @@ -111,7 +111,7 @@ jobs: retention-days: 1 build-cuda-image: - runs-on: ${{ matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }} + runs-on: self-hosted permissions: contents: read packages: write @@ -211,7 +211,7 @@ jobs: retention-days: 1 build-ollama-image: - runs-on: ${{ matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }} + runs-on: self-hosted permissions: contents: read packages: write @@ -311,7 +311,7 @@ jobs: retention-days: 1 merge-main-images: - runs-on: ubuntu-latest + runs-on: self-hosted needs: [build-main-image] steps: # GitHub Packages requires the entire repository name to be in lowercase @@ -365,7 +365,7 @@ jobs: docker buildx imagetools inspect ${{ env.FULL_IMAGE_NAME }}:${{ steps.meta.outputs.version }} merge-cuda-images: - runs-on: ubuntu-latest + runs-on: self-hosted needs: [build-cuda-image] steps: # GitHub Packages requires the entire repository name to be in lowercase @@ -421,7 +421,7 @@ jobs: docker buildx imagetools inspect ${{ env.FULL_IMAGE_NAME }}:${{ steps.meta.outputs.version }} merge-ollama-images: - runs-on: ubuntu-latest + runs-on: self-hosted needs: [build-ollama-image] steps: # GitHub Packages requires the entire repository name to be in lowercase diff --git a/.github/workflows/format-backend.yaml b/.github/workflows/format-backend.yaml index 445876697..3555fdecf 100644 --- a/.github/workflows/format-backend.yaml +++ b/.github/workflows/format-backend.yaml @@ -13,7 +13,7 @@ on: jobs: build: name: 'Format Backend' - runs-on: ubuntu-latest + runs-on: self-hosted strategy: matrix: diff --git a/.github/workflows/format-build-frontend.yaml b/.github/workflows/format-build-frontend.yaml index 53d3aaa5e..473dd9898 100644 --- a/.github/workflows/format-build-frontend.yaml +++ b/.github/workflows/format-build-frontend.yaml @@ -13,7 +13,7 @@ on: jobs: build: name: 'Format & Build Frontend' - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: Checkout Repository uses: actions/checkout@v4 @@ -40,7 +40,7 @@ jobs: test-frontend: name: 'Frontend Unit Tests' - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: Checkout Repository uses: actions/checkout@v4 diff --git a/.github/workflows/integration-test.disabled b/.github/workflows/integration-test.disabled index b248df4b5..722b61f85 100644 --- a/.github/workflows/integration-test.disabled +++ b/.github/workflows/integration-test.disabled @@ -13,7 +13,7 @@ on: jobs: cypress-run: name: Run Cypress Integration Tests - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: Maximize build space uses: AdityaGarg8/remove-unwanted-software@v4.1 @@ -82,7 +82,7 @@ jobs: # pytest: # name: Run Backend Tests - # runs-on: ubuntu-latest + # runs-on: self-hosted # steps: # - uses: actions/checkout@v4 @@ -104,7 +104,7 @@ jobs: migration_test: name: Run Migration Tests - runs-on: ubuntu-latest + runs-on: self-hosted services: postgres: image: postgres diff --git a/.github/workflows/lint-backend.disabled b/.github/workflows/lint-backend.disabled index dd0bdc7fa..82177b711 100644 --- a/.github/workflows/lint-backend.disabled +++ b/.github/workflows/lint-backend.disabled @@ -8,7 +8,7 @@ jobs: name: 'Lint Backend' env: PUBLIC_API_BASE_URL: '' - runs-on: ubuntu-latest + runs-on: self-hosted strategy: matrix: node-version: diff --git a/.github/workflows/lint-frontend.disabled b/.github/workflows/lint-frontend.disabled index 2c1cd3c5a..d0fd65bda 100644 --- a/.github/workflows/lint-frontend.disabled +++ b/.github/workflows/lint-frontend.disabled @@ -8,7 +8,7 @@ jobs: name: 'Lint Frontend' env: PUBLIC_API_BASE_URL: '' - runs-on: ubuntu-latest + runs-on: self-hosted steps: - uses: actions/checkout@v4 - name: Use Bun diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index 5bf3973b3..ed304ee5c 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -8,7 +8,7 @@ on: jobs: release: - runs-on: ubuntu-latest + runs-on: self-hosted environment: name: pypi url: https://pypi.org/p/open-webui From c6b4e01ba616d93952cc8abd1fcba710bb2ce036 Mon Sep 17 00:00:00 2001 From: Matt Wiley Date: Mon, 31 Mar 2025 11:31:47 -0400 Subject: [PATCH 2/3] added: codeowners file --- .github/CODEOWNERS.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/CODEOWNERS.md diff --git a/.github/CODEOWNERS.md b/.github/CODEOWNERS.md new file mode 100644 index 000000000..7701f3e60 --- /dev/null +++ b/.github/CODEOWNERS.md @@ -0,0 +1,10 @@ +# ------------------------------------------------------------------------------------------ +# Below is the minimum CODEOWNERS file that shoul dbe used on 84.51ยบ projects. +# +# Read GitHub' Documentation on CODEOWNERS for more information: +# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners +# ------------------------------------------------------------------------------------------ + +# Default owners for everything in repo +* @mattwiley-8451 +* @philipkaufholz-8451 \ No newline at end of file From 50e69d867b13a8a6221a8328654b7b724c290ce9 Mon Sep 17 00:00:00 2001 From: Matt Wiley Date: Mon, 31 Mar 2025 11:48:14 -0400 Subject: [PATCH 3/3] update: set original workflows to workflow_dispatch only --- .github/workflows/build-release.yml | 8 ++++---- .github/workflows/deploy-to-hf-spaces.yml | 11 +++++------ .github/workflows/docker-build.yaml | 15 +++++++-------- .github/workflows/format-backend.yaml | 18 +++++++++--------- .github/workflows/format-build-frontend.yaml | 18 +++++++++--------- 5 files changed, 34 insertions(+), 36 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 045d871af..22f30984a 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -1,9 +1,9 @@ name: Release -on: - push: - branches: - - main # or whatever branch you want to use +on: workflow_dispatch + # push: + # branches: + # - main # or whatever branch you want to use jobs: release: diff --git a/.github/workflows/deploy-to-hf-spaces.yml b/.github/workflows/deploy-to-hf-spaces.yml index 495859e2b..c2531b740 100644 --- a/.github/workflows/deploy-to-hf-spaces.yml +++ b/.github/workflows/deploy-to-hf-spaces.yml @@ -1,11 +1,10 @@ name: Deploy to HuggingFace Spaces -on: - push: - branches: - - dev - - main - workflow_dispatch: +on: workflow_dispatch + # push: + # branches: + # - dev + # - main jobs: check-secret: diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index 50f91d019..616b2ebee 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -1,13 +1,12 @@ name: Create and publish Docker images with specific build args -on: - workflow_dispatch: - push: - branches: - - main - - dev - tags: - - v* +on: workflow_dispatch + # push: + # branches: + # - main + # - dev + # tags: + # - v* env: REGISTRY: ghcr.io diff --git a/.github/workflows/format-backend.yaml b/.github/workflows/format-backend.yaml index 3555fdecf..f7252f652 100644 --- a/.github/workflows/format-backend.yaml +++ b/.github/workflows/format-backend.yaml @@ -1,14 +1,14 @@ name: Python CI -on: - push: - branches: - - main - - dev - pull_request: - branches: - - main - - dev +on: workflow_dispatch + # push: + # branches: + # - main + # - dev + # pull_request: + # branches: + # - main + # - dev jobs: build: diff --git a/.github/workflows/format-build-frontend.yaml b/.github/workflows/format-build-frontend.yaml index 473dd9898..91ab39eb4 100644 --- a/.github/workflows/format-build-frontend.yaml +++ b/.github/workflows/format-build-frontend.yaml @@ -1,14 +1,14 @@ name: Frontend Build -on: - push: - branches: - - main - - dev - pull_request: - branches: - - main - - dev +on: workflow_dispatch + # push: + # branches: + # - main + # - dev + # pull_request: + # branches: + # - main + # - dev jobs: build: