diff --git a/.bazelrc b/.bazelrc index 5f5074a4d29f9b..fdd06093ad0072 100644 --- a/.bazelrc +++ b/.bazelrc @@ -96,3 +96,10 @@ test:ci-windows --test_env=JAVA_HOME test:ci-windows --test_env=TEST_INSTALL_BASE=C:/b/bazeltest_install_base test:ci-windows --test_env=REPOSITORY_CACHE=C:/b/bazeltest_repo_cache test:ci-windows --test_tag_filters=-no_windows,-slow + +build:remote_bitrise --jobs=100 +build:remote_bitrise --remote_download_minimal +build:remote_bitrise --noremote_upload_local_results +build:remote_bitrise --extra_execution_platforms=//:darwin_arm64 +build:remote_bitrise --xcode_version=16.2.0 +build:remote_bitrise --repo_env=XCODE_VERSION=16.2.0 diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml deleted file mode 100644 index e63ba7f89c92b0..00000000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ /dev/null @@ -1,99 +0,0 @@ -name: Bug report -description: File a bug report -labels: ["type: bug", "untriaged"] -assignees: - - sgowroji - - iancha1992 - - satyanandak -body: - - type: markdown - attributes: - value: > - **Attention:** if this is a _question_ about how to build / test / query / deploy using - Bazel, or a _discussion starter_, please start a new thread at Bazel's - [GitHub Discussions](https://github.com/bazelbuild/bazel/discussions), send it to - bazel-discuss@googlegroups.com, or discuss on [Bazel Slack](https://slack.bazel.build/) - instead! - - type: textarea - id: desc - attributes: - label: > - Description of the bug: - - type: dropdown - id: subteam - attributes: - label: Which category does this issue belong to? - description: Help us triage this issue faster and more accurately to the relevant team(s). - multiple: true - options: - - Android - - C++ Rules - - Objective-C Rules - - CLI - - Configurability - - Core - - Documentation - - External Dependency - - Java Rules - - Loading API - - Local Execution - - Performance - - Python Rules - - Remote Execution - - Rules API - - Server-Side Rules - - Starlark Integration - - Starlark Interpreter - - type: textarea - id: repro - attributes: - label: > - What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if - possible. - - type: input - id: os - attributes: - label: > - Which operating system are you running Bazel on? - - type: input - id: version - attributes: - label: > - What is the output of `bazel info release`? - - type: textarea - id: version-follow-up - attributes: - label: > - If `bazel info release` returns `development version` or `(@non-git)`, tell us how you built - Bazel. - - type: textarea - id: source - attributes: - label: > - What's the output of `git remote get-url origin; git rev-parse HEAD` ? - render: text - - type: textarea - id: bisect - attributes: - label: > - If this is a regression, please try to identify the Bazel commit where the bug was - introduced with bazelisk --bisect. - description: > - If the problem is specific to the most recent release or the Bazel@HEAD version and it - doesn't occur in earlier versions, you can use the `bazelisk --bisect=..` - command to identify the specific version or commit where the issue was introduced. For more - information, visit https://github.com/bazelbuild/bazelisk#--bisect. - - type: textarea - id: relevant-info - attributes: - label: Have you found anything relevant by searching the web? - description: > - Places to look: - - * StackOverflow: http://stackoverflow.com/questions/tagged/bazel - * GitHub issues: https://github.com/bazelbuild/bazel/issues - * Email threads on https://groups.google.com/forum/#!forum/bazel-discuss - - type: textarea - id: extras - attributes: - label: Any other information, logs, or outputs that you want to share? diff --git a/.github/ISSUE_TEMPLATE/cherry_pick_request.yml b/.github/ISSUE_TEMPLATE/cherry_pick_request.yml deleted file mode 100644 index eaacb1f8aa0713..00000000000000 --- a/.github/ISSUE_TEMPLATE/cherry_pick_request.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Cherry-pick request -description: Use this template to cherry-pick commits into a release branch -body: - - type: markdown - attributes: - value: | - **Note:** Provide commit IDs to cherry-pick into a specific release branch. Once the issue has been created, **please add this to the corresponding release milestone** to trigger the cherry-pick workflow. - - type: textarea - id: commit_ids - validations: - required: true - attributes: - label: > - Commit IDs - description: > - Please enter the commit ID(s) to be cherry-picked. E.g. 9e90a6, f1da12 - - type: dropdown - id: subteam - validations: - required: true - attributes: - label: > - Category - description: > - Which category does this issue belong to? Please select the corresponding label(s). - multiple: true - options: - - team-Android - - team-Rules-CPP - - team-Rules-ObjC - - team-CLI - - team-Configurability - - team-Core - - team-Documentation - - team-ExternalDeps - - team-Rules-Java - - team-Loading-API - - team-Local-Exec - - team-OSS - - team-Performance - - team-Rules-Python - - team-Remote-Exec - - team-Rules-API - - team-Rules-Server - - team-Starlark-Integration - - team-Starlark-Interpreter - - type: textarea - validations: - required: true - id: reviewer - attributes: - label: > - Reviewers - description: > - Please provide reviewers for the cherry-pick PR. E.g. @iancha1992, @keertk diff --git a/.github/ISSUE_TEMPLATE/doc_issue.yml b/.github/ISSUE_TEMPLATE/doc_issue.yml deleted file mode 100644 index 3cdfafb1017dbf..00000000000000 --- a/.github/ISSUE_TEMPLATE/doc_issue.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Documentation issue -description: File a documentation issue (through bazel.build's "report an issue" button) -labels: ["type: documentation (cleanup)", "untriaged", "team-Documentation"] -assignees: - - sgowroji - - iancha1992 - - satyanandak -body: - - type: input - id: link - attributes: - label: > - Page link: - - type: textarea - id: desc - attributes: - label: > - Problem description (include actual vs expected text, if applicable): - - type: textarea - id: location - attributes: - label: > - Where do you see this issue? (include link to specific section of the page, if applicable) - - type: textarea - id: extras - attributes: - label: Any other information you'd like to share? diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml deleted file mode 100644 index 2f3a1678f4ff36..00000000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ /dev/null @@ -1,87 +0,0 @@ -name: Feature request -description: Suggest a new feature -labels: ["type: feature request", "untriaged"] -assignees: - - sgowroji - - iancha1992 - - satyanandak -body: - - type: markdown - attributes: - value: > - **Attention:** if this is a _question_ about how to build / test / query / deploy using - Bazel, or a _discussion starter_, please start a new thread at Bazel's - [GitHub Discussions](https://github.com/bazelbuild/bazel/discussions), send it to - bazel-discuss@googlegroups.com, or discuss on [Bazel Slack](https://slack.bazel.build/) - instead! - - type: textarea - id: desc - attributes: - label: > - Description of the feature request: - - type: dropdown - id: subteam - attributes: - label: Which category does this issue belong to? - description: Help us triage this issue faster and more accurately to the relevant team(s). - multiple: true - options: - - Android - - C++ Rules - - Objective-C Rules - - CLI - - Configurability - - Core - - Documentation - - External Dependency - - Java Rules - - Loading API - - Local Execution - - Performance - - Python Rules - - Remote Execution - - Rules API - - Server-Side Rules - - Starlark Integration - - Starlark Interpreter - - type: textarea - id: problem - attributes: - label: > - What underlying problem are you trying to solve with this feature? - - type: input - id: os - attributes: - label: > - Which operating system are you running Bazel on? - - type: input - id: version - attributes: - label: > - What is the output of `bazel info release`? - - type: textarea - id: version-follow-up - attributes: - label: > - If `bazel info release` returns `development version` or `(@non-git)`, tell us how you built - Bazel. - - type: textarea - id: source - attributes: - label: > - What's the output of `git remote get-url origin; git rev-parse HEAD` ? - render: text - - type: textarea - id: relevant-info - attributes: - label: Have you found anything relevant by searching the web? - description: > - Places to look: - - * StackOverflow: http://stackoverflow.com/questions/tagged/bazel - * GitHub issues: https://github.com/bazelbuild/bazel/issues - * Email threads on https://groups.google.com/forum/#!forum/bazel-discuss - - type: textarea - id: extras - attributes: - label: Any other information, logs, or outputs that you want to share? diff --git a/.github/ISSUE_TEMPLATE/incompatible_change.yml b/.github/ISSUE_TEMPLATE/incompatible_change.yml deleted file mode 100644 index 46ca69ad371609..00000000000000 --- a/.github/ISSUE_TEMPLATE/incompatible_change.yml +++ /dev/null @@ -1,92 +0,0 @@ -name: Incompatible Change -description: Use this template to track the rollout of an incompatible change in Bazel -title: '[Incompatible Flag] OR [Incompatible Change Title]' -labels: ["untriaged", "incompatible-change"] -assignees: - - sgowroji - - iancha1992 - - satyanandak -body: - - type: markdown - attributes: - value: > - **Attention:** - Please read https://bazel.build/release/backward-compatibility - and https://bazel.build/contribute/breaking-changes for best practices of rolling out - incompatible changes in Bazel. - - - type: textarea - id: motivation - attributes: - label: Motivation - description: Describe the motivation behind this change. Why is this change needed? What problem does it solve? - validations: - required: true - - - type: textarea - id: description - attributes: - label: Description - description: Provide a clear and concise description of the incompatible change. Explain what the incompatible change is and what impact it will have. - validations: - required: true - - - type: input - id: incompatible_flag - attributes: - label: Incompatible Flag - description: The incompatible flag used to guard this change. If no incompatible flag is used, briefly explain why (e.g. minor incompatible change that's trivial to migrate for). - validations: - required: true - - - type: textarea - id: migration - attributes: - label: Migration Guide - description: Provide guidance on how users can migrate to the new behavior. Include examples, code snippets, or links to relevant documentation. - validations: - required: true - - - type: dropdown - id: bazel_version - attributes: - label: In which Bazel LTS version will this incompatible change be enabled? - multiple: false - options: - - Bazel 8 - - Bazel 9 - - Bazel 10 - - - type: textarea - id: additional_context - attributes: - label: Additional Context - description: Add any other context about the incompatible change here. - - - type: textarea - id: todo_list - attributes: - label: TODO List - description: > - Choose a todo list based on whether incompatible flag is used, feel free to edit based on your needs. - - - With incompatible flag (highly recommend for incompatible changes having large impact): - - \- \[ \] Implement the incompatible change at Bazel HEAD and guard it behind a flag. - - \- \[ \] Backport the incompatible flag to the latest LTS release. - - \- \[ \] Test the incompatible change with [downstream projects](https://github.com/bazelbuild/continuous-integration/blob/master/docs/downstream-testing.md#bazel-downstream-testing) and inform broken projects. - - \- \[ \] Flip the incompatible flag at Bazel HEAD. - - \- \[ \] Delete the incompatible flag and the old behavior at Bazel HEAD. - - - Without incompatible flag (good for minor incompatible changes that are trivial to migrate for): - - \- \[ \] Implement the incompatible change at Bazel HEAD. - - \- \[ \] Check the [downstream pipeline](https://github.com/bazelbuild/continuous-integration/blob/master/docs/downstream-testing.md#bazel-downstream-testing) result and inform broken projects. - diff --git a/.github/ISSUE_TEMPLATE/mirror_request.yml b/.github/ISSUE_TEMPLATE/mirror_request.yml deleted file mode 100644 index a61fcb567bdd74..00000000000000 --- a/.github/ISSUE_TEMPLATE/mirror_request.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Mirror request -description: Request to add new archives to mirror.bazel.build -labels: ["mirror request", "type: process", "P2", "team-OSS"] -assignees: - - sgowroji - - iancha1992 - - satyanandak -title: "[Mirror] " -body: - - type: markdown - attributes: - value: > - **Attention:** if the archive you're trying to mirror is from GitHub, - please use URLs in the form of `https://github.com/$USER/$REPO/releases/download/...` if available. - If you are the project maintainer, you should create and upload such an release archive. - GitHub doesn't guarantee a stable checksum of source archives in the form of `https://github.com///archive/...`, which are generated on demand. - Check [GitHub Archive Checksum Outage](https://blog.bazel.build/2023/02/15/github-archive-checksum.html) for more details. - - type: textarea - id: urls - attributes: - label: > - Please list the URLs of the archives you'd like to mirror: diff --git a/.github/ISSUE_TEMPLATE/release.md b/.github/ISSUE_TEMPLATE/release.md deleted file mode 100644 index 93d149ec4050ed..00000000000000 --- a/.github/ISSUE_TEMPLATE/release.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -name: 'Release issue (For release managers only)' -about: Communicate the progress of a release -title: 'Release X.Y.Z - $MONTH $YEAR' -labels: ['release','team-OSS','P1','type: process'] -assignees: - - iancha1992 - ---- - -# Status of Bazel X.Y.Z - -- Expected first release candidate date: [date] -- Expected release date: [date] -- [List of release blockers](link-to-milestone) - -To report a release-blocking bug, please add a comment with the text `@bazel-io flag` to the issue. A release manager will triage it and add it to the milestone. - -To cherry-pick a mainline commit into X.Y.Z, simply send a PR against the `release-X.Y.Z` branch. - -**Task list:** - - - -- [ ] Pick release baseline: [link to base commit] -- [ ] Create release candidate: X.Y.Zrc1 -- [ ] Check downstream projects -- [ ] Create [draft release announcement](https://docs.google.com/document/d/1pu2ARPweOCTxPsRR8snoDtkC9R51XWRyBXeiC6Ql5so/edit) -- [ ] Send the release announcement PR for review: [link to bazel-blog PR] -- [ ] Push the release and notify package maintainers: [link to comment notifying package maintainers] -- [ ] Update the documentation -- [ ] Push the blog post: [link to blog post] -- [ ] Update the [release page](https://github.com/bazelbuild/bazel/releases/) diff --git a/.github/advanced-issue-labeler.yml b/.github/advanced-issue-labeler.yml deleted file mode 100644 index 544de5c1241dc9..00000000000000 --- a/.github/advanced-issue-labeler.yml +++ /dev/null @@ -1,43 +0,0 @@ ---- - -policy: - - template: [bug_report.yml, feature_request.yml] - section: - - id: [subteam] - label: - - name: team-Android - keys: ['Android'] - - name: team-Rules-CPP - keys: ['C++ Rules'] - - name: team-Rules-ObjC - keys: ['Objective-C Rules'] - - name: team-CLI - keys: ['CLI'] - - name: team-Configurability - keys: ['Configurability'] - - name: team-Core - keys: ['Core'] - - name: team-Documentation - keys: ['Documentation'] - - name: team-ExternalDeps - keys: ['External Dependency'] - - name: team-Rules-Java - keys: ['Java Rules'] - - name: team-Loading-API - keys: ['Loading API'] - - name: team-Local-Exec - keys: ['Local Execution'] - - name: team-Performance - keys: ['Performance'] - - name: team-Rules-Python - keys: ['Python Rules'] - - name: team-Remote-Exec - keys: ['Remote Execution'] - - name: team-Rules-API - keys: ['Rules API'] - - name: team-Rules-Server - keys: ['Server-Side Rules'] - - name: team-Starlark-Integration - keys: ['Starlark Integration'] - - name: team-Starlark-Interpreter - keys: ['Starlark Interpreter'] \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 322a2b6ea8f9f6..00000000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,15 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "monthly" - groups: - github-actions: - patterns: - - "*" diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index 80e6e5b64cc4ce..00000000000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,120 +0,0 @@ -# Based on paths provided in the CODEOWNERS file - -# Add 'awaiting-review' to any PR opened -awaiting-review: -- changed-files: - - any-glob-to-any-file: '**/*' - -team-ExternalDeps: -- changed-files: - - any-glob-to-any-file: - - src/main/java/com/google/devtools/build/lib/bazel/bzlmod/**/* - - src/test/java/com/google/devtools/build/lib/bazel/bzlmod/**/* - - src/test/py/bazel/bzlmod/**/* - - src/main/java/com/google/devtools/build/lib/bazel/repository/**/* - - src/test/java/com/google/devtools/build/lib/bazel/repository/**/* - -team-Documentation: -- changed-files: - - any-glob-to-any-file: site/**/* - -team-Remote-Exec: -- changed-files: - - any-glob-to-any-file: - - src/main/java/com/google/devtools/build/lib/remote/**/* - - src/test/java/com/google/devtools/build/lib/remote/**/* - - src/test/py/bazel/remote/**/* - - src/test/shell/bazel/remote/**/* - - src/tools/remote/**/* - - third_party/remoteapis/build/bazel/remote/**/* - -team-Rules-Python: -- changed-files: - - any-glob-to-any-file: - - src/main/java/com/google/devtools/build/lib/bazel/rules/python/**/* - - src/main/java/com/google/devtools/build/lib/rules/python/**/* - -team-Rules-Java: -- changed-files: - - any-glob-to-any-file: - - src/java_tools/**/* - - src/main/java/com/google/devtools/build/lib/rules/java/**/* - - src/test/java/com/google/devtools/build/lib/rules/java/**/* - - src/tools/singlejar/**/* - - tools/java/**/* - - tools/jdk/**/* - -team-Android: -- changed-files: - - any-glob-to-any-file: - - src/tools/android/java/com/google/devtools/build/android/**/* - - src/test/java/com/google/devtools/build/android/**/* - - src/test/shell/bazel/android/**/* - - tools/android/**/* - - src/main/java/com/google/devtools/build/lib/starlarkbuildapi/android/**/* - -team-Configurability: -- changed-files: - - any-glob-to-any-file: - - src/main/java/com/google/devtools/build/lib/analysis/**/* - - src/test/java/com/google/devtools/build/lib/analysis/**/* - - src/main/java/com/google/devtools/build/lib/query2/cquery/**/* - - src/test/java/com/google/devtools/build/lib/query2/cquery/**/* - - src/main/java/com/google/devtools/build/lib/rules/platform/**/* - - src/test/java/com/google/devtools/build/lib/rules/platform/**/* - - tools/platforms/**/* - -team-Performance: -- changed-files: - - any-glob-to-any-file: - - src/main/java/com/google/devtools/build/lib/profiler/**/* - - src/main/java/com/google/devtools/build/lib/query2/aquery/**/* - - src/main/java/com/google/devtools/build/lib/query2/query/**/* - - src/main/java/com/google/devtools/build/lib/metrics/**/* - - src/main/java/com/google/devtools/build/lib/actions/**/* - - src/main/protobuf/analysis_v2.proto - -team-CLI: -- changed-files: - - any-glob-to-any-file: - - src/main/java/com/google/devtools/build/lib/runtime/UiStateTracker.java - - src/main/java/com/google/devtools/build/lib/runtime/UiEventHandler.java - - src/main/java/com/google/devtools/build/lib/runtime/SkymeldUiStateTracker.java - -team-Local-Exec: -- changed-files: - - any-glob-to-any-file: - - src/main/java/com/google/devtools/build/lib/sandbox/**/* - - src/main/java/com/google/devtools/build/lib/worker/**/* - - src/main/java/com/google/devtools/build/lib/dynamic/**/* - -team-Rules-CPP: -- changed-files: - - any-glob-to-any-file: - - tools/cpp/**/* - - src/main/cpp/**/* - - src/test/java/com/google/devtools/build/lib/rules/cpp/**/* - - src/main/java/com/google/devtools/build/lib/rules/cpp/**/* - - src/main/java/com/google/devtools/build/lib/starlarkbuildapi/cpp/**/* - -team-Rules-ObjC: -- changed-files: - - any-glob-to-any-file: - - src/main/java/com/google/devtools/build/lib/rules/objc/**/* - - src/main/java/com/google/devtools/build/lib/starlarkbuildapi/apple/**/* - -team-OSS: -- changed-files: - - any-glob-to-any-file: .github/**/* - -# team-Rules-Server - -# team-Starlark-Interpreter - -# team-Starlark-Integration - -# team-Rules-API - -# team-Loading-API - -# team-Core \ No newline at end of file diff --git a/.github/workflows/cherry-picker.yml b/.github/workflows/cherry-picker.yml deleted file mode 100644 index 3d7a970346d4c4..00000000000000 --- a/.github/workflows/cherry-picker.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: cherry-picker - -on: - pull_request: - types: [closed] - branches: [master] - issues: - types: [closed, milestoned] - -permissions: - contents: read - -env: - GH_TOKEN: ${{ secrets.BAZEL_IO_TOKEN }} - -jobs: - cherry-picker-on-closed: - if: github.event.action == 'closed' && github.event.sender.login == 'copybara-service[bot]' - runs-on: ubuntu-latest - steps: - - name: Harden Runner - uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 - with: - egress-policy: audit - - if: github.event.pull_request - name: Run cherrypicker on closed PR - uses: bazelbuild/continuous-integration/actions/cherry_picker@312ab25f6994b2fac89dc6910b3ebd6cb93cfa74 - with: - triggered-on: closed - pr-number: ${{ github.event.number }} - is-prod: True - - if: github.event.issue - name: Run cherrypicker on closed issue - uses: bazelbuild/continuous-integration/actions/cherry_picker@312ab25f6994b2fac89dc6910b3ebd6cb93cfa74 - with: - triggered-on: closed - pr-number: ${{ github.event.issue.number }} - is-prod: True - cherry-picker-on-milestoned: - if: github.event.action == 'milestoned' - runs-on: ubuntu-latest - steps: - - name: Harden Runner - uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 - with: - egress-policy: audit - - if: startsWith(github.event.issue.body, 'Forked from') - name: Run cherrypicker on comment - uses: bazelbuild/continuous-integration/actions/cherry_picker@312ab25f6994b2fac89dc6910b3ebd6cb93cfa74 - with: - triggered-on: commented - pr-number: ${{ github.event.issue.body }} - milestone-title: ${{ github.event.milestone.title }} - milestoned-issue-number: ${{ github.event.issue.number }} - is-prod: True - - if: startsWith(github.event.issue.body, '### Commit IDs') - name: Run cherrypicker on demand - uses: bazelbuild/continuous-integration/actions/cherry_picker@312ab25f6994b2fac89dc6910b3ebd6cb93cfa74 - with: - triggered-on: ondemand - milestone-title: ${{ github.event.milestone.title }} - milestoned-issue-number: ${{ github.event.issue.number }} - issue-title: ${{ github.event.issue.title }} - issue-body: ${{ github.event.issue.body }} - is-prod: True diff --git a/.github/workflows/issue-labeler.yml b/.github/workflows/issue-labeler.yml deleted file mode 100644 index 097d0d025b2384..00000000000000 --- a/.github/workflows/issue-labeler.yml +++ /dev/null @@ -1,37 +0,0 @@ ---- - -name: Issue labeler -on: - issues: - types: [ opened ] - -jobs: - label-issues-policy: - runs-on: ubuntu-latest - permissions: - contents: read - issues: write - - strategy: - matrix: - template: [ bug_report.yml, feature_request.yml ] - - steps: - - uses: actions/checkout@v4 - - name: Harden Runner - uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 - with: - egress-policy: audit - - - name: Parse issue form - uses: stefanbuck/github-issue-parser@c1a559d78bfb8dd05216dab9ffd2b91082ff5324 # v3.0.1 - id: issue-parser - with: - template-path: .github/ISSUE_TEMPLATE/${{ matrix.template }} - - - name: Set labels based on policy - uses: redhat-plumbers-in-action/advanced-issue-labeler@d498805e5c7c0658e336948b3363480bcfd68da6 # v3.2.0 - with: - issue-form: ${{ steps.issue-parser.outputs.jsonString }} - template: ${{ matrix.template }} - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 454567aafb6911..00000000000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: "PR Labeler" - -on: - pull_request_target: - types: ["opened", "reopened", "ready_for_review"] - -permissions: - contents: read - -jobs: - triage: - permissions: - contents: read - pull-requests: write - runs-on: ubuntu-latest - steps: - - name: Harden Runner - uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 - with: - egress-policy: audit - - - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 - if: ${{ github.event.pull_request.draft == false && github.event.pull_request.user.login != 'bazel-io' }} \ No newline at end of file diff --git a/.github/workflows/release-helper.yml b/.github/workflows/release-helper.yml deleted file mode 100644 index acfc9eeeb82d98..00000000000000 --- a/.github/workflows/release-helper.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: release-helper -on: - issue_comment: - types: [created, edited] -permissions: - contents: read - -jobs: - release-helper: - if: startsWith(github.event.comment.body, '@bazel-io ') - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - name: Harden Runner - uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 - with: - egress-policy: audit - - - name: Run helper - uses: bazelbuild/continuous-integration/actions/release-helper@312ab25f6994b2fac89dc6910b3ebd6cb93cfa74 # master - with: - token: ${{ secrets.BAZEL_IO_TOKEN }} diff --git a/.github/workflows/remove-labels.yml b/.github/workflows/remove-labels.yml deleted file mode 100644 index 1c1880d317c084..00000000000000 --- a/.github/workflows/remove-labels.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Remove PR Labels - -on: - pull_request_target: - types: ["closed"] - -permissions: - contents: read - -jobs: - remove-label: - permissions: - pull-requests: write - runs-on: ubuntu-latest - steps: - - name: Harden Runner - uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 - with: - egress-policy: audit - - - uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1.3.0 - with: - labels: | - awaiting-PR-merge - awaiting-review \ No newline at end of file diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml deleted file mode 100644 index f919e6d2714929..00000000000000 --- a/.github/workflows/scorecard.yml +++ /dev/null @@ -1,77 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. They are provided -# by a third-party and are governed by separate terms of service, privacy -# policy, and support documentation. - -name: Scorecard supply-chain security -on: - # For Branch-Protection check. Only the default branch is supported. See - # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection - branch_protection_rule: - # To guarantee Maintained check is occasionally updated. See - # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained - schedule: - - cron: '18 9 * * 4' - push: - branches: [ "master" ] - -# Declare default permissions as read only. -permissions: read-all - -jobs: - analysis: - name: Scorecard analysis - runs-on: ubuntu-latest - permissions: - # Needed to upload the results to code-scanning dashboard. - security-events: write - # Needed to publish results and get a badge (see publish_results below). - id-token: write - # Uncomment the permissions below if installing in a private repository. - # contents: read - # actions: read - - steps: - - name: Harden Runner - uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 - with: - egress-policy: audit - - - name: "Checkout code" - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - with: - persist-credentials: false - - - name: "Run analysis" - uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0 - with: - results_file: results.sarif - results_format: sarif - # (Optional) "write" PAT token. Uncomment the `repo_token` line below if: - # - you want to enable the Branch-Protection check on a *public* repository, or - # - you are installing Scorecard on a *private* repository - # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat. - # repo_token: ${{ secrets.SCORECARD_TOKEN }} - - # Public repositories: - # - Publish results to OpenSSF REST API for easy access by consumers - # - Allows the repository to include the Scorecard badge. - # - See https://github.com/ossf/scorecard-action#publishing-results. - # For private repositories: - # - `publish_results` will always be set to `false`, regardless - # of the value entered here. - publish_results: true - - # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF - # format to the repository Actions tab. - - name: "Upload artifact" - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 - with: - name: SARIF file - path: results.sarif - retention-days: 5 - - # Upload the results to GitHub's code scanning dashboard. - - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10 - with: - sarif_file: results.sarif diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index d04d06efc3e725..00000000000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,57 +0,0 @@ -# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. -# -# You can adjust the behavior by modifying this file. -# For more information, see: -# https://github.com/actions/stale -name: Mark stale issues and pull requests - -on: - workflow_dispatch: - schedule: - - cron: '0 1 * * *' - -permissions: - contents: read - -jobs: - stale: - permissions: - issues: write - pull-requests: write - name: Track and close stale issues/PRs - runs-on: ubuntu-latest - - steps: - - name: Harden Runner - uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 - with: - egress-policy: audit - - - name: Track and close stale issues/PRs - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-issue-stale: 430 - days-before-pr-stale: 430 - days-before-issue-close: 90 - days-before-pr-close: 90 - stale-issue-message: > - Thank you for contributing to the Bazel repository! - This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 - days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale. - close-issue-message: > - This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please post `@bazelbuild/triage` in a comment here and we'll take a look. Thanks! - stale-pr-message: > - Thank you for contributing to the Bazel repository! - This pull request has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next - 90 days unless any other activity occurs. If you think this PR is still relevant and should stay open, please post any comment here and the PR will no longer be marked as stale. - close-pr-message: > - This pull request has been automatically closed due to inactivity. If you're still interested in pursuing this, please post `@bazelbuild/triage` in a comment here and we'll take a look. Thanks! - stale-issue-label: 'stale' - exempt-issue-labels: 'not stale,awaiting-bazeler,untriaged,P0,P1,P2,good first issue,help wanted' - close-issue-reason: "not_planned" - stale-pr-label: 'stale' - exempt-pr-labels: 'not stale,awaiting-review,awaiting-PR-merge,P0,P1,P2' - exempt-draft-pr: true - operations-per-run: 500 - ascending: true diff --git a/.github/workflows/update-lockfiles.yml b/.github/workflows/update-lockfiles.yml deleted file mode 100644 index b4fb999d6127d9..00000000000000 --- a/.github/workflows/update-lockfiles.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: update-lockfiles - -on: - pull_request: - branches: - - "release-**" - types: - - closed - -permissions: - contents: read - -env: - GH_TOKEN: ${{ secrets.BAZEL_IO_TOKEN }} - -jobs: - update-lockfiles: - runs-on: ubuntu-latest - steps: - - name: Harden Runner - uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 - with: - egress-policy: audit - - name: Update lockfile(s) on closed PR - uses: bazelbuild/continuous-integration/actions/update-lockfile@312ab25f6994b2fac89dc6910b3ebd6cb93cfa74 - with: - release-branch: ${{ github.base_ref }} - is-prod: True - pr-number: ${{ github.event.number }} \ No newline at end of file diff --git a/BUILD b/BUILD index 38a1725ebd495e..5dca792ac82dcc 100644 --- a/BUILD +++ b/BUILD @@ -277,6 +277,18 @@ platform( ], ) +platform( + name = "darwin_arm64", + constraint_values = [ + "@platforms//os:macos", + "@platforms//cpu:arm64", + ], + exec_properties = { + "OSFamily": "Darwin", + "Arch": "arm64", + }, +) + REMOTE_PLATFORMS = ("rbe_ubuntu2004",) [ diff --git a/MODULE.bazel b/MODULE.bazel index 55cce65fc3e50e..5c2686360868f9 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -12,6 +12,7 @@ module( # Bazel module dependencies # ========================================= +bazel_dep(name = "apple_support", version = "1.17.1") bazel_dep(name = "rules_license", version = "1.0.0") bazel_dep(name = "bazel_skylib", version = "1.7.1") bazel_dep(name = "grpc", version = "1.66.0.bcr.2", repo_name = "com_github_grpc_grpc") @@ -90,7 +91,6 @@ local_path_override( # The following Bazel modules are not direct dependencies for building Bazel, # but are required for visibility from DIST_ARCHIVE_REPOS in repositories.bzl -bazel_dep(name = "apple_support", version = "1.15.1") bazel_dep(name = "c-ares", version = "1.15.0") bazel_dep(name = "rules_go", version = "0.48.0") bazel_dep(name = "rules_kotlin", version = "1.9.6") diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index cef6164d68c4d6..3851a2aa2335fd 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -14,7 +14,8 @@ "https://bcr.bazel.build/modules/abseil-cpp/20240722.0/MODULE.bazel": "88668a07647adbdc14cb3a7cd116fb23c9dda37a90a1681590b6c9d8339a5b84", "https://bcr.bazel.build/modules/abseil-cpp/20240722.0/source.json": "59af9f8a8a4817092624e21263fe1fb7d7951a3b06f0570c610c7e5a9caf5f29", "https://bcr.bazel.build/modules/apple_support/1.15.1/MODULE.bazel": "a0556fefca0b1bb2de8567b8827518f94db6a6e7e7d632b4c48dc5f865bc7c85", - "https://bcr.bazel.build/modules/apple_support/1.15.1/source.json": "517f2b77430084c541bc9be2db63fdcbb7102938c5f64c17ee60ffda2e5cf07b", + "https://bcr.bazel.build/modules/apple_support/1.17.1/MODULE.bazel": "655c922ab1209978a94ef6ca7d9d43e940cd97d9c172fb55f94d91ac53f8610b", + "https://bcr.bazel.build/modules/apple_support/1.17.1/source.json": "6b2b8c74d14e8d485528a938e44bdb72a5ba17632b9e14ef6e68a5ee96c8347f", "https://bcr.bazel.build/modules/apple_support/1.5.0/MODULE.bazel": "50341a62efbc483e8a2a6aec30994a58749bd7b885e18dd96aa8c33031e558ef", "https://bcr.bazel.build/modules/apple_support/1.8.1/MODULE.bazel": "500f7aa32c008222e360dc9a158c248c2dbaeb3b6246c19e7269981dbd61e29b", "https://bcr.bazel.build/modules/bazel_ci_rules/1.0.0/MODULE.bazel": "0f92c944b9c466066ed484cfc899cf43fca765df78caca18984c62479f7925eb", @@ -22,6 +23,7 @@ "https://bcr.bazel.build/modules/bazel_features/1.0.0/MODULE.bazel": "d7f022dc887efb96e1ee51cec7b2e48d41e36ff59a6e4f216c40e4029e1585bf", "https://bcr.bazel.build/modules/bazel_features/1.1.0/MODULE.bazel": "cfd42ff3b815a5f39554d97182657f8c4b9719568eb7fded2b9135f084bf760b", "https://bcr.bazel.build/modules/bazel_features/1.1.1/MODULE.bazel": "27b8c79ef57efe08efccbd9dd6ef70d61b4798320b8d3c134fd571f78963dbcd", + "https://bcr.bazel.build/modules/bazel_features/1.10.0/MODULE.bazel": "f75e8807570484a99be90abcd52b5e1f390362c258bcb73106f4544957a48101", "https://bcr.bazel.build/modules/bazel_features/1.11.0/MODULE.bazel": "f9382337dd5a474c3b7d334c2f83e50b6eaedc284253334cf823044a26de03e8", "https://bcr.bazel.build/modules/bazel_features/1.17.0/MODULE.bazel": "039de32d21b816b47bd42c778e0454217e9c9caac4a3cf8e15c7231ee3ddee4d", "https://bcr.bazel.build/modules/bazel_features/1.17.0/source.json": "4b0f9407970b57adb203bd6c23d6361cbcc8ab3273456ad06ca75675b1648b41", @@ -207,8 +209,8 @@ "moduleExtensions": { "@@apple_support+//crosstool:setup.bzl%apple_cc_configure_extension": { "general": { - "bzlTransitiveDigest": "ltCGFbl/LQQZXn/LEMXfKX7pGwyqNiOCHcmiQW0tmjM=", - "usagesDigest": "yAC1H7cg3wkisnNswc7hxM2fAxrH04yqn7CXVasZPgc=", + "bzlTransitiveDigest": "7ii+gFxWSxHhQPrBxfMEHhtrGvHmBTvsh+KOyGunP/s=", + "usagesDigest": "f700ASGHSlNlHWdeh4mrBuHr6boot3gLQzH9SMYrbBY=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {},