From e4d09106ae757405588d086e6c1764664483961c Mon Sep 17 00:00:00 2001 From: Moritz Date: Fri, 25 Oct 2024 11:15:36 +0200 Subject: [PATCH] Moving fixes --- .github/labeler.yml | 4 ++ .../workflows/benchmark_harness.yaml | 16 ++++++-- README.md | 1 + pkgs/benchmark_harness/.github/dependabot.yml | 15 -------- .../.github/workflows/no-response.yml | 37 ------------------- .../.github/workflows/publish.yaml | 17 --------- pkgs/benchmark_harness/CHANGELOG.md | 4 +- pkgs/benchmark_harness/README.md | 13 +------ pkgs/benchmark_harness/pubspec.yaml | 2 +- 9 files changed, 23 insertions(+), 86 deletions(-) rename pkgs/benchmark_harness/.github/workflows/test-package.yml => .github/workflows/benchmark_harness.yaml (84%) delete mode 100644 pkgs/benchmark_harness/.github/dependabot.yml delete mode 100644 pkgs/benchmark_harness/.github/workflows/no-response.yml delete mode 100644 pkgs/benchmark_harness/.github/workflows/publish.yaml diff --git a/.github/labeler.yml b/.github/labeler.yml index c3d5de0b9..11d45829d 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -4,6 +4,10 @@ - changed-files: - any-glob-to-any-file: '.github/**' +'package:benchmark_harness': + - changed-files: + - any-glob-to-any-file: 'pkgs/benchmark_harness/**' + 'package:boolean_selector': - changed-files: - any-glob-to-any-file: 'pkgs/boolean_selector/**' diff --git a/pkgs/benchmark_harness/.github/workflows/test-package.yml b/.github/workflows/benchmark_harness.yaml similarity index 84% rename from pkgs/benchmark_harness/.github/workflows/test-package.yml rename to .github/workflows/benchmark_harness.yaml index ff6dafde3..c3b776439 100644 --- a/pkgs/benchmark_harness/.github/workflows/test-package.yml +++ b/.github/workflows/benchmark_harness.yaml @@ -1,17 +1,27 @@ -name: Dart CI +name: package:benchmark_harness on: # Run on PRs and pushes to the default branch. push: - branches: [ master ] + branches: [ main ] + paths: + - '.github/workflows/benchmark_harness.yml' + - 'pkgs/benchmark_harness/**' pull_request: - branches: [ master ] + branches: [ main ] + paths: + - '.github/workflows/benchmark_harness.yml' + - 'pkgs/benchmark_harness/**' schedule: - cron: "0 0 * * 0" env: PUB_ENVIRONMENT: bot.github +defaults: + run: + working-directory: pkgs/benchmark_harness/ + jobs: # Check code formatting and static analysis on a single OS (linux) # against Dart dev. diff --git a/README.md b/README.md index ac4edf204..eb41aecf2 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ don't naturally belong to other topic monorepos (like | Package | Description | Version | | --- | --- | --- | +| [benchmark_harness](pkgs/benchmark_harness/) | The official Dart project benchmark harness. | [![pub package](https://img.shields.io/pub/v/benchmark_harness.svg)](https://pub.dev/packages/benchmark_harness) | | [boolean_selector](pkgs/boolean_selector/) | A flexible syntax for boolean expressions, based on a simplified version of Dart's expression syntax. | [![pub package](https://img.shields.io/pub/v/boolean_selector.svg)](https://pub.dev/packages/boolean_selector) | | [cli_config](pkgs/cli_config/) | A library to take config values from configuration files, CLI arguments, and environment variables. | [![pub package](https://img.shields.io/pub/v/cli_config.svg)](https://pub.dev/packages/cli_config) | | [coverage](pkgs/coverage/) | Coverage data manipulation and formatting. | [![pub package](https://img.shields.io/pub/v/coverage.svg)](https://pub.dev/packages/coverage) | diff --git a/pkgs/benchmark_harness/.github/dependabot.yml b/pkgs/benchmark_harness/.github/dependabot.yml deleted file mode 100644 index cde02ad6a..000000000 --- a/pkgs/benchmark_harness/.github/dependabot.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Dependabot configuration file. -# See https://docs.github.com/en/code-security/dependabot/dependabot-version-updates -version: 2 - -updates: - - package-ecosystem: github-actions - directory: / - schedule: - interval: monthly - labels: - - autosubmit - groups: - github-actions: - patterns: - - "*" diff --git a/pkgs/benchmark_harness/.github/workflows/no-response.yml b/pkgs/benchmark_harness/.github/workflows/no-response.yml deleted file mode 100644 index ab1ac4984..000000000 --- a/pkgs/benchmark_harness/.github/workflows/no-response.yml +++ /dev/null @@ -1,37 +0,0 @@ -# A workflow to close issues where the author hasn't responded to a request for -# more information; see https://github.com/actions/stale. - -name: No Response - -# Run as a daily cron. -on: - schedule: - # Every day at 8am - - cron: '0 8 * * *' - -# All permissions not specified are set to 'none'. -permissions: - issues: write - pull-requests: write - -jobs: - no-response: - runs-on: ubuntu-latest - if: ${{ github.repository_owner == 'dart-lang' }} - steps: - - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e - with: - # Don't automatically mark inactive issues+PRs as stale. - days-before-stale: -1 - # Close needs-info issues and PRs after 14 days of inactivity. - days-before-close: 14 - stale-issue-label: "needs-info" - close-issue-message: > - Without additional information we're not able to resolve this issue. - Feel free to add more info or respond to any questions above and we - can reopen the case. Thanks for your contribution! - stale-pr-label: "needs-info" - close-pr-message: > - Without additional information we're not able to resolve this PR. - Feel free to add more info or respond to any questions above. - Thanks for your contribution! diff --git a/pkgs/benchmark_harness/.github/workflows/publish.yaml b/pkgs/benchmark_harness/.github/workflows/publish.yaml deleted file mode 100644 index 27157a046..000000000 --- a/pkgs/benchmark_harness/.github/workflows/publish.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# A CI configuration to auto-publish pub packages. - -name: Publish - -on: - pull_request: - branches: [ master ] - push: - tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ] - -jobs: - publish: - if: ${{ github.repository_owner == 'dart-lang' }} - uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main - permissions: - id-token: write # Required for authentication using OIDC - pull-requests: write # Required for writing the pull request note diff --git a/pkgs/benchmark_harness/CHANGELOG.md b/pkgs/benchmark_harness/CHANGELOG.md index 900e9a350..fceecb830 100644 --- a/pkgs/benchmark_harness/CHANGELOG.md +++ b/pkgs/benchmark_harness/CHANGELOG.md @@ -1,4 +1,6 @@ -## 2.3.1-wip +## 2.3.1 + +- Move to `dart-lang/tools` monorepo. ## 2.3.0 diff --git a/pkgs/benchmark_harness/README.md b/pkgs/benchmark_harness/README.md index 13008f563..f156f2336 100644 --- a/pkgs/benchmark_harness/README.md +++ b/pkgs/benchmark_harness/README.md @@ -1,4 +1,4 @@ -[![Dart CI](https://github.com/dart-lang/benchmark_harness/actions/workflows/test-package.yml/badge.svg)](https://github.com/dart-lang/benchmark_harness/actions/workflows/test-package.yml) +[![Build Status](https://github.com/dart-lang/tools/actions/workflows/benchmark_harness.yaml/badge.svg)](https://github.com/dart-lang/tools/actions/workflows/benchmark_harness.yaml) [![pub package](https://img.shields.io/pub/v/benchmark_harness.svg)](https://pub.dev/packages/benchmark_harness) [![package publisher](https://img.shields.io/pub/publisher/benchmark_harness.svg)](https://pub.dev/packages/benchmark_harness/publisher) @@ -114,14 +114,3 @@ Template(RunTime): 0.1568472448997197 us. This is the average amount of time it takes to run `run()` 10 times for `BenchmarkBase` and once for `AsyncBenchmarkBase`. > µs is an abbreviation for microseconds. - -### Contributions - -This package is carefully curated by the Dart team to exact specifications. -Please open an issue with any proposed changes before submitting a pull -request. - -## Publishing automation - -For information about our publishing automation and release process, see -https://github.com/dart-lang/ecosystem/wiki/Publishing-automation. diff --git a/pkgs/benchmark_harness/pubspec.yaml b/pkgs/benchmark_harness/pubspec.yaml index 866697f00..0615c6b6a 100644 --- a/pkgs/benchmark_harness/pubspec.yaml +++ b/pkgs/benchmark_harness/pubspec.yaml @@ -1,5 +1,5 @@ name: benchmark_harness -version: 2.3.1-wip +version: 2.3.1 description: The official Dart project benchmark harness. repository: https://github.com/dart-lang/tools/tree/main/pkgs/benchmark_harness