From f787ddb037887530deaadc1650d64098b6243ab4 Mon Sep 17 00:00:00 2001 From: Oscar Vestlie Date: Wed, 12 Jun 2024 19:52:10 +0000 Subject: [PATCH] DEVELOPER MODE Change-Id: Ie1dfefec4a258b6a46474495a3451fc190e12817 --- .github/config/android-arm.json | 6 +-- .github/config/raspi-2.json | 7 +-- .github/workflows/android.yaml | 73 -------------------------------- .github/workflows/coverage.yaml | 30 ------------- .github/workflows/evergreen.yaml | 60 -------------------------- .github/workflows/gradle.yaml | 34 --------------- .github/workflows/linux.yaml | 60 -------------------------- .github/workflows/pytest.yaml | 41 ------------------ .github/workflows/raspi-2.yaml | 8 ---- .github/workflows/stub.yaml | 30 ------------- .github/workflows/win32.yaml | 32 -------------- .github/workflows/xb1.yaml | 32 -------------- 12 files changed, 2 insertions(+), 411 deletions(-) delete mode 100644 .github/workflows/coverage.yaml delete mode 100644 .github/workflows/evergreen.yaml delete mode 100644 .github/workflows/gradle.yaml delete mode 100644 .github/workflows/linux.yaml delete mode 100644 .github/workflows/pytest.yaml delete mode 100644 .github/workflows/stub.yaml delete mode 100644 .github/workflows/win32.yaml delete mode 100644 .github/workflows/xb1.yaml diff --git a/.github/config/android-arm.json b/.github/config/android-arm.json index 9ca34bb905096..aec0538172def 100644 --- a/.github/config/android-arm.json +++ b/.github/config/android-arm.json @@ -3,11 +3,7 @@ "on_device_test": { "enabled": true, "tests": [ - "0", - "1", - "2", - "3", - "black_box_test" + "1" ] }, "platforms": [ diff --git a/.github/config/raspi-2.json b/.github/config/raspi-2.json index 03f722031e902..e5ebad75025db 100644 --- a/.github/config/raspi-2.json +++ b/.github/config/raspi-2.json @@ -3,12 +3,7 @@ "on_device_test": { "enabled": true, "tests": [ - "0", - "1", - "2", - "3", - "4", - "5" + "1" ] }, "platforms": [ diff --git a/.github/workflows/android.yaml b/.github/workflows/android.yaml index 852bbbcc7d76e..b68e41b600ebc 100644 --- a/.github/workflows/android.yaml +++ b/.github/workflows/android.yaml @@ -24,24 +24,6 @@ on: default: false jobs: - android-arm64: - uses: ./.github/workflows/main.yaml - permissions: - packages: write - pull-requests: write - with: - platform: android-arm64 - nightly: ${{ github.event.inputs.nightly }} - keep_artifacts: cobalt.apk - android-x86: - uses: ./.github/workflows/main.yaml - permissions: - packages: write - pull-requests: write - with: - platform: android-x86 - nightly: ${{ github.event.inputs.nightly }} - keep_artifacts: cobalt.apk android-arm: uses: ./.github/workflows/main.yaml permissions: @@ -51,58 +33,3 @@ jobs: platform: android-arm nightly: ${{ github.event.inputs.nightly }} keep_artifacts: cobalt.apk - - upload-release-artifacts: - runs-on: ubuntu-latest - needs: [ android-arm, android-arm64, android-x86 ] - permissions: - actions: write - contents: write - steps: - - name: Download arm-gold apk - uses: actions/download-artifact@v4 - with: - name: android-arm-gold - path: arm-gold - - name: Download arm-qa apk - uses: actions/download-artifact@v4 - with: - name: android-arm-qa - path: arm-qa - - name: Download arm64-gold apk - uses: actions/download-artifact@v4 - with: - name: android-arm64-gold - path: arm64-gold - - name: Download arm64-qa apk - uses: actions/download-artifact@v4 - with: - name: android-arm64-gold - path: arm64-qa - - name: Download x86-gold apk - uses: actions/download-artifact@v4 - with: - name: android-x86-gold - path: x86-gold - - name: Download x86-qa apk - uses: actions/download-artifact@v4 - with: - name: android-x86-qa - path: x86-qa - - name: 'Upload Android APKs' - uses: actions/upload-artifact@v4 - with: - name: Android APKs - path: ./* - retention-days: 90 - compression-level: 0 # We expect kept artifacts to be already compressed - if-no-files-found: error - - name: Make a release zip - run: zip -0 -r "Android APKs.zip" . -i '*.apk' - - name: Upload the APKs to a release - if: ${{ github.event_name == 'release' }} - uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2.9.0 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: "Android APKs.zip" - overwrite: true diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml deleted file mode 100644 index 834696dcd1123..0000000000000 --- a/.github/workflows/coverage.yaml +++ /dev/null @@ -1,30 +0,0 @@ -name: coverage - -on: - pull_request: - types: - - opened - - edited - - reopened - - synchronize - push: - branches: - - main - - feature/* - -jobs: - linux-coverage: - # TODO(b/286302961): Move back and re-enable this check once sharding is supported. - # Run on main branch for pushes, PRs and manual invocations. - # if: | - # ${{ github.ref == 'refs/heads/main' && - # (github.event_name == 'push' || - # github.event_name == 'pull_request' || - # (github.event_name == 'workflow_dispatch' && inputs.nightly == 'false')) }} - uses: ./.github/workflows/main.yaml - permissions: - packages: write - pull-requests: write - with: - platform: linux-coverage - nightly: ${{ github.event.inputs.nightly }} diff --git a/.github/workflows/evergreen.yaml b/.github/workflows/evergreen.yaml deleted file mode 100644 index 13005138cfd5f..0000000000000 --- a/.github/workflows/evergreen.yaml +++ /dev/null @@ -1,60 +0,0 @@ -name: evergreen - -on: - pull_request: - types: [opened, reopened, synchronize, labeled] - branches: - - main - - feature/* - push: - branches: - - main - - feature/* - schedule: - # GMT timezone. - - cron: '0 9 * * *' - workflow_dispatch: - inputs: - nightly: - description: 'Nightly workflow.' - required: true - type: boolean - default: false - -jobs: - evergreen-x64: - uses: ./.github/workflows/main.yaml - permissions: - packages: write - pull-requests: write - with: - platform: evergreen-x64 - nightly: ${{ github.event.inputs.nightly }} - run_api_leak_detector: true - evergreen-arm-hardfp: - uses: ./.github/workflows/main.yaml - permissions: - packages: write - pull-requests: write - with: - platform: evergreen-arm-hardfp - nightly: ${{ github.event.inputs.nightly }} - run_api_leak_detector: true - evergreen-arm-softfp: - uses: ./.github/workflows/main.yaml - permissions: - packages: write - pull-requests: write - with: - platform: evergreen-arm-softfp - nightly: ${{ github.event.inputs.nightly }} - run_api_leak_detector: true - evergreen-arm64: - uses: ./.github/workflows/main.yaml - permissions: - packages: write - pull-requests: write - with: - platform: evergreen-arm64 - nightly: ${{ github.event.inputs.nightly }} - run_api_leak_detector: true diff --git a/.github/workflows/gradle.yaml b/.github/workflows/gradle.yaml deleted file mode 100644 index 7dec25a395854..0000000000000 --- a/.github/workflows/gradle.yaml +++ /dev/null @@ -1,34 +0,0 @@ -name: Java Tests - -on: - pull_request: - push: - branches: - - main - - feature/* - -concurrency: - group: '${{ github.workflow }}-${{ github.event_name }}-${{ inputs.platform }} @ ${{ github.event.pull_request.number || github.sha }}' - cancel-in-progress: true - -permissions: {} - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: kaidokert/checkout@v3.5.999 - timeout-minutes: 30 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - distribution: 'zulu' - java-version: 11 - - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3 #v1.0.6 - - name: Build with Gradle - uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 #v2.4.2 - with: - arguments: test - build-root-directory: starboard/android/apk diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml deleted file mode 100644 index f144ef72f4ab3..0000000000000 --- a/.github/workflows/linux.yaml +++ /dev/null @@ -1,60 +0,0 @@ -name: linux - -on: - pull_request: - types: [opened, reopened, synchronize, labeled] - branches: - - main - - feature/* - push: - branches: - - main - - feature/* - schedule: - # GMT timezone. - - cron: '0 9 * * *' - workflow_dispatch: - inputs: - nightly: - description: 'Nightly workflow.' - required: true - type: boolean - default: false - -jobs: - linux-x64: - uses: ./.github/workflows/main.yaml - permissions: - packages: write - pull-requests: write - with: - platform: linux - nightly: ${{ github.event.inputs.nightly }} - linux-clang-3-9: - uses: ./.github/workflows/main.yaml - permissions: - packages: write - pull-requests: write - with: - platform: linux-clang-3-9 - nightly: ${{ github.event.inputs.nightly }} - modular: true - linux-gcc-6-3: - uses: ./.github/workflows/main.yaml - permissions: - packages: write - pull-requests: write - with: - platform: linux-gcc-6-3 - nightly: ${{ github.event.inputs.nightly }} - modular: true - # TODO(b/285632780): Enable blackbox tests for modular linux workflows. - linux-modular: - uses: ./.github/workflows/main.yaml - permissions: - packages: write - pull-requests: write - with: - platform: linux-modular - nightly: ${{ github.event.inputs.nightly }} - modular: true diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml deleted file mode 100644 index 9f4382462b0ac..0000000000000 --- a/.github/workflows/pytest.yaml +++ /dev/null @@ -1,41 +0,0 @@ -name: python-tests - -on: - pull_request: - push: - branches: - - main - - feature/* - -concurrency: - group: '${{ github.workflow }}-${{ github.event_name }}-${{ inputs.platform }} @ ${{ github.event.pull_request.number || github.sha }}' - cancel-in-progress: true - -permissions: {} - -jobs: - python-test: - strategy: - matrix: - os: [ubuntu-latest, windows-latest] - python-version: ['3.8', '3.11'] - fail-fast: false - runs-on: ${{ matrix.os }} - timeout-minutes: 15 - steps: - - name: Checkout - uses: kaidokert/checkout@v3.5.999 - with: - fetch-depth: 1 - persist-credentials: false - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install Pip Packages - run: pip install --require-hashes --no-deps -r ${{ github.workspace }}/docker/pytest/requirements.txt - - name: Run Tests - run: coverage run -m pytest - - name: Coverage Report - run: coverage report -m diff --git a/.github/workflows/raspi-2.yaml b/.github/workflows/raspi-2.yaml index 8613cfaf83d2c..c331b59cba63a 100644 --- a/.github/workflows/raspi-2.yaml +++ b/.github/workflows/raspi-2.yaml @@ -30,11 +30,3 @@ jobs: with: platform: raspi-2 nightly: ${{ github.event.inputs.nightly }} - raspi-2-skia: - uses: ./.github/workflows/main.yaml - permissions: - packages: write - pull-requests: write - with: - platform: raspi-2-skia - nightly: ${{ github.event.inputs.nightly }} diff --git a/.github/workflows/stub.yaml b/.github/workflows/stub.yaml deleted file mode 100644 index 17e8b74082f52..0000000000000 --- a/.github/workflows/stub.yaml +++ /dev/null @@ -1,30 +0,0 @@ -name: stub - -on: - pull_request: - types: [opened, reopened, synchronize, labeled] - branches: - - main - - feature/* - push: - branches: - - main - - feature/* - workflow_dispatch: - inputs: - nightly: - description: 'Nightly workflow.' - required: true - type: boolean - default: false - -jobs: - stub: - uses: ./.github/workflows/main.yaml - permissions: - packages: write - pull-requests: write - with: - platform: stub - nightly: ${{ github.event.inputs.nightly }} - leak_manifest_filename: "gn_built_docker_debian11_manifest" diff --git a/.github/workflows/win32.yaml b/.github/workflows/win32.yaml deleted file mode 100644 index 988cbb2ef464a..0000000000000 --- a/.github/workflows/win32.yaml +++ /dev/null @@ -1,32 +0,0 @@ -name: win32 - -on: - pull_request: - types: [opened, reopened, synchronize, labeled] - branches: - - main - - feature/* - push: - branches: - - main - - feature/* - schedule: - # GTM timezone. - - cron: '0 9 * * *' - workflow_dispatch: - inputs: - nightly: - description: 'Nightly workflow.' - required: true - type: boolean - default: false - -jobs: - win32: - uses: ./.github/workflows/main_win.yaml - permissions: - packages: write - pull-requests: write - with: - platform: win32 - nightly: ${{ github.event.inputs.nightly }} diff --git a/.github/workflows/xb1.yaml b/.github/workflows/xb1.yaml deleted file mode 100644 index d819721ee67a6..0000000000000 --- a/.github/workflows/xb1.yaml +++ /dev/null @@ -1,32 +0,0 @@ -name: xb1 - -on: - pull_request: - types: [opened, reopened, synchronize, labeled] - branches: - - main - - feature/* - push: - branches: - - main - - feature/* - schedule: - # GTM timezone. - - cron: '0 9 * * *' - workflow_dispatch: - inputs: - nightly: - description: 'Nightly workflow.' - required: true - type: boolean - default: false - -jobs: - xb1: - uses: ./.github/workflows/main_win.yaml - permissions: - packages: write - pull-requests: write - with: - platform: xb1 - nightly: ${{ github.event.inputs.nightly }}