diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index ce1c48a3dcf3f..0000000000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,30 +0,0 @@ -*Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.* - -*List which issues are fixed by this PR. You must list at least one issue.* - -*If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].* - -## Pre-launch Checklist - -- [ ] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. -- [ ] I read the [Tree Hygiene] wiki page, which explains my responsibilities. -- [ ] I read and followed the [Flutter Style Guide] and the [C++, Objective-C, Java style guides]. -- [ ] I listed at least one issue that this PR fixes in the description above. -- [ ] I added new tests to check the change I am making or feature I am adding, or the PR is [test-exempt]. See [testing the engine] for instructions on writing and running engine tests. -- [ ] I updated/added relevant documentation (doc comments with `///`). -- [ ] I signed the [CLA]. -- [ ] All existing and new tests are passing. - -If you need help, consider asking for advice on the #hackers-new channel on [Discord]. - - -[Contributor Guide]: https://github.com/flutter/flutter/blob/master/docs/contributing/Tree-hygiene.md#overview -[Tree Hygiene]: https://github.com/flutter/flutter/blob/master/docs/contributing/Tree-hygiene.md -[test-exempt]: https://github.com/flutter/flutter/blob/master/docs/contributing/Tree-hygiene.md#tests -[Flutter Style Guide]: https://github.com/flutter/flutter/blob/master/docs/contributing/Style-guide-for-Flutter-repo.md -[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style -[testing the engine]: https://github.com/flutter/engine/blob/main/docs/testing/Testing-the-engine.md -[CLA]: https://cla.developers.google.com/ -[flutter/tests]: https://github.com/flutter/tests -[breaking change policy]: https://github.com/flutter/flutter/blob/master/docs/contributing/Tree-hygiene.md#handling-breaking-changes -[Discord]: https://github.com/flutter/flutter/blob/master/docs/contributing/Chat.md diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 79d1163182c5b..0000000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,27 +0,0 @@ -# See Dependabot documentation for all configuration options: -# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" - time: "22:00" # 10 PM MTV - timezone: "America/Los_Angeles" - labels: - - "autosubmit" - groups: - all-github-actions: - patterns: [ "*" ] - ignore: - # ignore patch versions, just rely on minor in order to update fewer times - - dependency-name: "github/codeql-action" - update-types: ["version-update:semver-minor"] - - - package-ecosystem: "pub" - directory: "/lib/web_ui" - schedule: - interval: "daily" - labels: - - "autosubmit" diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index ed7171a963827..0000000000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 2013 The Flutter Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -# See https://github.com/actions/labeler/blob/main/README.md for docs. -'affects: desktop': - - changed-files: - - any-glob-to-any-file: - - shell/platform/darwin/common/**/* - - shell/platform/darwin/macos/**/* - - shell/platform/linux/**/* - - shell/platform/windows/**/* - -embedder: - - changed-files: - - any-glob-to-any-file: - - shell/platform/embedder - -'e: impeller': - - changed-files: - - any-glob-to-any-file: - - impeller/**/* - -platform-android: - - changed-files: - - any-glob-to-any-file: - - shell/platform/android/**/* - -platform-ios: - - changed-files: - - any-glob-to-any-file: - - shell/platform/darwin/common/**/* - - shell/platform/darwin/ios/**/* - -platform-fuchsia: - - changed-files: - - any-glob-to-any-file: - - shell/platform/fuchsia/**/* - -platform-linux: - - changed-files: - - any-glob-to-any-file: - - shell/platform/linux/**/* - -platform-macos: - - changed-files: - - any-glob-to-any-file: - - shell/platform/darwin/common/**/* - - shell/platform/darwin/macos/**/* - -platform-web: - - changed-files: - - any-glob-to-any-file: - - lib/web_ui/**/* - - '**/web_sdk/**/*' - -platform-windows: - - changed-files: - - any-glob-to-any-file: - - shell/platform/windows/**/* diff --git a/.github/release.yml b/.github/release.yml deleted file mode 100644 index be245c915e7eb..0000000000000 --- a/.github/release.yml +++ /dev/null @@ -1,25 +0,0 @@ -changelog: - exclude: - authors: - - skia-flutter-autoroll - - dependabot - categories: - - title: Impeller - labels: - - "e: impeller" - - title: Android - labels: - - platform-android - - title: iOS - labels: - - platform-ios - - title: Web - labels: - - platform-web - - title: Desktop - labels: - - platform-windows - - platform-macos - - title: Other Changes - labels: - - "*" diff --git a/.github/workflows/engine-cp.yml b/.github/workflows/engine-cp.yml deleted file mode 100644 index 5f308f5317284..0000000000000 --- a/.github/workflows/engine-cp.yml +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 2013 The Flutter Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -name: Cherry-pick Labeled Engine PR to Release Branch - -on: - pull_request_target: - branches: main - types: [labeled] - -permissions: write-all - -jobs: - cherrypick_to_release: - name: cherrypick_to_release - runs-on: ubuntu-latest - if: | - (github.event.label.name == format('cp{0} beta', ':') || github.event.label.name == format('cp{0} stable', ':')) && - (github.event.pull_request.merged == true) - steps: - - name: Get Release Channel - run: | - echo "CHANNEL=$(echo ${{ github.event.label.name }} | cut -d ':' -f 2 | xargs)" >> $GITHUB_ENV - - name: Get Release Candidate Branch - run: | - RELEASE_BRANCH=$(curl https://raw.githubusercontent.com/flutter/flutter/$CHANNEL/bin/internal/release-candidate-branch.version) - echo "RELEASE_BRANCH=$(echo $RELEASE_BRANCH | tr -d '\n')" >> $GITHUB_ENV - - name: Get Cherry Pick PR - run: | - echo "COMMIT_SHA=$(echo ${{ github.event.pull_request.merge_commit_sha }})" >> $GITHUB_ENV - - name: Checkout Flutter Engine Repo - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - with: - repository: flutteractionsbot/engine - path: engine - ref: main - persist-credentials: false - # Checkout all history commits on main branch, so that the cp commit is a known object - fetch-depth: 0 - - name: Attempt CP - id: attempt-cp - working-directory: ./engine - run: | - git config user.name "GitHub Actions Bot" - git config user.email "<>" - git remote add upstream https://github.com/flutter/engine.git - git fetch upstream $RELEASE_BRANCH - git fetch upstream main - git checkout -b cp-engine-${CHANNEL}-${COMMIT_SHA} --track upstream/$RELEASE_BRANCH - git cherry-pick $COMMIT_SHA - # TODO(xilaizhang): remove this step once the template is available on release branches. - - name: Get CP Template - run: | - curl -o PULL_REQUEST_CP_TEMPLATE.md https://raw.githubusercontent.com/flutter/flutter/master/.github/PR_TEMPLATE/PULL_REQUEST_CP_TEMPLATE.md - - name: Create PR on CP success - if: ${{ steps.attempt-cp.conclusion == 'success' }} - working-directory: ./engine - id: create-pr - run: | - git push https://${{ env.GITHUB_TOKEN }}@github.com/flutteractionsbot/engine cp-engine-${CHANNEL}-${COMMIT_SHA} - { - echo 'PR_URL<> "$GITHUB_ENV" - env: - GITHUB_TOKEN: ${{ secrets.FLUTTERACTIONSBOT_CP_TOKEN }} - PR_TITLE: ${{ github.event.pull_request.title }} - - name: Leave Comment on CP success - if: ${{ steps.create-pr.conclusion == 'success' }} - run: | - echo $PR_URL - NEW_PR_NUMBER="${PR_URL##*/}" - SUCCESS_MSG=" @${{ github.actor }} please fill out the PR description above, afterwards the release team will review this request." - gh pr comment $NEW_PR_NUMBER -R flutter/engine -b "${SUCCESS_MSG}" - env: - GITHUB_TOKEN: ${{ secrets.FLUTTERACTIONSBOT_CP_TOKEN }} - - name: Leave Comment on CP failure - if: ${{ failure() && steps.attempt-cp.conclusion == 'failure' }} - run: | - FAILURE_MSG="Failed to create CP due to merge conflicts.
" - FAILURE_MSG+="You will need to create the PR manually. See [the cherrypick wiki](https://github.com/flutter/flutter/wiki/Flutter-Cherrypick-Process) for more info." - gh pr comment ${{ github.event.pull_request.number }} -R flutter/engine -b "${FAILURE_MSG}" - env: - GITHUB_TOKEN: ${{ secrets.FLUTTERACTIONSBOT_CP_TOKEN }} diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index baa8a2d1112c4..0000000000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2013 The Flutter Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -name: "Pull Request Labeler" -on: -- pull_request_target - -# Declare default permissions as read only. -permissions: read-all - -jobs: - triage: - if: ${{ github.repository == 'flutter/engine' }} - permissions: - pull-requests: write - runs-on: ubuntu-latest - steps: - # Source available at https://github.com/actions/labeler/blob/main/README.md - - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 diff --git a/.github/workflows/third_party_scan.yml b/.github/workflows/third_party_scan.yml deleted file mode 100644 index f9bead375e7f7..0000000000000 --- a/.github/workflows/third_party_scan.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Third party deps scan -on: - # Only the default branch is supported. - branch_protection_rule: - push: - branches: [ main ] - pull_request: - types: [ labeled ] - -# Declare default permissions as read only. -permissions: read-all - -jobs: - extract-deps: - name: Extract Dependencies - runs-on: ubuntu-20.04 - if: ${{ (github.repository == 'flutter/engine' && github.event_name == 'push') || github.event.label.name == 'vulnerability scan' }} - permissions: - # Needed to upload the SARIF results to code-scanning dashboard. - security-events: write - contents: read - steps: - - name: "Checkout code" - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - with: - persist-credentials: false - - name: "setup python" - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b - with: - python-version: '3.7.7' # install the python version needed - - name: "extract deps, find commit hash, pass to osv-scanner" - run: python ci/scan_deps.py --output osv-lockfile-${{github.sha}}.json - - name: "upload osv-scanner deps" - uses: actions/upload-artifact@v4 - with: - # use github.ref in name to avoid duplicated artifacts - name: osv-lockfile-${{github.sha}} - path: osv-lockfile-${{github.sha}}.json - retention-days: 2 - vuln-scan: - name: Vulnerability scanning - needs: - extract-deps - uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v1.9.2" - with: - # Download the artifact uploaded in extract-deps step - download-artifact: osv-lockfile-${{github.sha}} - scan-args: |- - --lockfile=osv-scanner:osv-lockfile-${{github.sha}}.json - fail-on-vuln: false - # makes sure the osv-formatted vulns are uploaded - permissions: - # Needed to upload the SARIF results to code-scanning dashboard. - security-events: write - actions: read - contents: read diff --git a/README.md b/README.md index e15957a520eae..b925374d5fc81 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Flutter Engine +> [!Important] +> This repostiory is archived. The engine was migrated to [flutter/flutter/engine](https://github.com/flutter/flutter/tree/master/engine). + [![Flutter CI Status](https://flutter-dashboard.appspot.com/api/public/build-status-badge?repo=engine)](https://flutter-dashboard.appspot.com/#/build?repo=engine) Flutter is Google's SDK for crafting beautiful, fast user experiences for