From febc8d1b5234cab39e039d1c61d706d5987ed65a Mon Sep 17 00:00:00 2001 From: curquiza Date: Tue, 7 Mar 2023 14:55:09 +0100 Subject: [PATCH] Clean CI file names --- ...l_benchmarks.yml => benchmarks-manual.yml} | 2 +- ...exing.yml => benchmarks-push-indexing.yml} | 2 +- ...geo.yml => benchmarks-push-search-geo.yml} | 2 +- ...s.yml => benchmarks-push-search-songs.yml} | 2 +- ...ki.yml => benchmarks-push-search-wiki.yml} | 2 +- .../workflows/create-issue-dependencies.yml | 28 ------------------- .github/workflows/dependency-issue.yml | 24 ++++++++++++++++ .../workflows/{flaky.yml => flaky-tests.yml} | 0 ...-brew-pkg.yml => publish-apt-brew-pkg.yml} | 2 +- .github/workflows/publish-binaries.yml | 4 +-- .github/workflows/publish-docker-images.yml | 5 ++-- .../workflows/{rust.yml => test-suite.yml} | 2 +- 12 files changed, 35 insertions(+), 40 deletions(-) rename .github/workflows/{manual_benchmarks.yml => benchmarks-manual.yml} (99%) rename .github/workflows/{push_benchmarks_indexing.yml => benchmarks-push-indexing.yml} (98%) rename .github/workflows/{push_benchmarks_search_geo.yml => benchmarks-push-search-geo.yml} (98%) rename .github/workflows/{push_benchmarks_search_songs.yml => benchmarks-push-search-songs.yml} (98%) rename .github/workflows/{push_benchmarks_search_wiki.yml => benchmarks-push-search-wiki.yml} (98%) delete mode 100644 .github/workflows/create-issue-dependencies.yml create mode 100644 .github/workflows/dependency-issue.yml rename .github/workflows/{flaky.yml => flaky-tests.yml} (100%) rename .github/workflows/{publish-deb-brew-pkg.yml => publish-apt-brew-pkg.yml} (97%) rename .github/workflows/{rust.yml => test-suite.yml} (99%) diff --git a/.github/workflows/manual_benchmarks.yml b/.github/workflows/benchmarks-manual.yml similarity index 99% rename from .github/workflows/manual_benchmarks.yml rename to .github/workflows/benchmarks-manual.yml index 76c6fe0fe..44793fc17 100644 --- a/.github/workflows/manual_benchmarks.yml +++ b/.github/workflows/benchmarks-manual.yml @@ -1,4 +1,4 @@ -name: Benchmarks +name: Benchmarks (manual) on: workflow_dispatch: diff --git a/.github/workflows/push_benchmarks_indexing.yml b/.github/workflows/benchmarks-push-indexing.yml similarity index 98% rename from .github/workflows/push_benchmarks_indexing.yml rename to .github/workflows/benchmarks-push-indexing.yml index 12f9f6eda..a966570e6 100644 --- a/.github/workflows/push_benchmarks_indexing.yml +++ b/.github/workflows/benchmarks-push-indexing.yml @@ -1,4 +1,4 @@ -name: Benchmarks indexing (push) +name: Benchmarks of indexing (push) on: push: diff --git a/.github/workflows/push_benchmarks_search_geo.yml b/.github/workflows/benchmarks-push-search-geo.yml similarity index 98% rename from .github/workflows/push_benchmarks_search_geo.yml rename to .github/workflows/benchmarks-push-search-geo.yml index 02661061f..1b5cacfd1 100644 --- a/.github/workflows/push_benchmarks_search_geo.yml +++ b/.github/workflows/benchmarks-push-search-geo.yml @@ -1,4 +1,4 @@ -name: Benchmarks search geo (push) +name: Benchmarks of search for geo (push) on: push: diff --git a/.github/workflows/push_benchmarks_search_songs.yml b/.github/workflows/benchmarks-push-search-songs.yml similarity index 98% rename from .github/workflows/push_benchmarks_search_songs.yml rename to .github/workflows/benchmarks-push-search-songs.yml index 92684a907..02cd10472 100644 --- a/.github/workflows/push_benchmarks_search_songs.yml +++ b/.github/workflows/benchmarks-push-search-songs.yml @@ -1,4 +1,4 @@ -name: Benchmarks search songs (push) +name: Benchmarks of search for songs (push) on: push: diff --git a/.github/workflows/push_benchmarks_search_wiki.yml b/.github/workflows/benchmarks-push-search-wiki.yml similarity index 98% rename from .github/workflows/push_benchmarks_search_wiki.yml rename to .github/workflows/benchmarks-push-search-wiki.yml index 0f6511337..455aaa95d 100644 --- a/.github/workflows/push_benchmarks_search_wiki.yml +++ b/.github/workflows/benchmarks-push-search-wiki.yml @@ -1,4 +1,4 @@ -name: Benchmarks search wikipedia articles (push) +name: Benchmarks of search for Wikipedia articles (push) on: push: diff --git a/.github/workflows/create-issue-dependencies.yml b/.github/workflows/create-issue-dependencies.yml deleted file mode 100644 index 3ad1be910..000000000 --- a/.github/workflows/create-issue-dependencies.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Create issue to upgrade dependencies -on: - schedule: - # Run the first of the month, every 3 month - - cron: '0 0 1 */3 *' - workflow_dispatch: - -jobs: - create-issue: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Create an issue - uses: actions-ecosystem/action-create-issue@v1 - with: - github_token: ${{ secrets.MEILI_BOT_GH_PAT }} - title: Upgrade dependencies - body: | - This issue is about updating Meilisearch dependencies: - - [ ] Cargo toml dependencies of Meilisearch; but also the main engine-team repositories that Meilisearch depends on (charabia, heed...) - - [ ] If new Rust versions have been released, update the Rust version in the Clippy job of this [GitHub Action file](./.github/workflows/rust.yml) - - ⚠️ To avoid last minute bugs, this issue should only be done at the beginning of the sprint! - - The GitHub action dependencies are managed by [Dependabot](./.github/dependabot.yml) - labels: | - dependencies - maintenance diff --git a/.github/workflows/dependency-issue.yml b/.github/workflows/dependency-issue.yml new file mode 100644 index 000000000..941cc4e53 --- /dev/null +++ b/.github/workflows/dependency-issue.yml @@ -0,0 +1,24 @@ +name: Create issue to upgrade dependencies + +on: + schedule: + # Run the first of the month, every 3 month + - cron: '0 0 1 */3 *' + workflow_dispatch: + +jobs: + create-issue: + runs-on: ubuntu-latest + env: + ISSUE_TEMPLATE: issue-template.md + GH_TOKEN: ${{ secrets.MEILI_BOT_GH_PAT }} + steps: + - uses: actions/checkout@v3 + - name: Download the issue template + run: curl -s https://raw.githubusercontent.com/meilisearch/engine-team/main/issue-templates/dependency-issue.md > $ISSUE_TEMPLATE + - name: Create issue + run: | + gh issue create \ + --title 'Upgrade dependencies' \ + --label 'dependencies,maintenance' \ + --body-file $ISSUE_TEMPLATE diff --git a/.github/workflows/flaky.yml b/.github/workflows/flaky-tests.yml similarity index 100% rename from .github/workflows/flaky.yml rename to .github/workflows/flaky-tests.yml diff --git a/.github/workflows/publish-deb-brew-pkg.yml b/.github/workflows/publish-apt-brew-pkg.yml similarity index 97% rename from .github/workflows/publish-deb-brew-pkg.yml rename to .github/workflows/publish-apt-brew-pkg.yml index a382df3ed..e24d8ccf1 100644 --- a/.github/workflows/publish-deb-brew-pkg.yml +++ b/.github/workflows/publish-apt-brew-pkg.yml @@ -1,4 +1,4 @@ -name: Publish to APT repository & Homebrew +name: Publish to APT & Homebrew on: release: diff --git a/.github/workflows/publish-binaries.yml b/.github/workflows/publish-binaries.yml index 151b522fd..02253a375 100644 --- a/.github/workflows/publish-binaries.yml +++ b/.github/workflows/publish-binaries.yml @@ -1,3 +1,5 @@ +name: Publish binaries to GitHub release + on: workflow_dispatch: schedule: @@ -5,8 +7,6 @@ on: release: types: [published] -name: Publish binaries to release - jobs: check-version: name: Check the version validity diff --git a/.github/workflows/publish-docker-images.yml b/.github/workflows/publish-docker-images.yml index 39bab4d0d..9ceeaaaa4 100644 --- a/.github/workflows/publish-docker-images.yml +++ b/.github/workflows/publish-docker-images.yml @@ -1,4 +1,5 @@ ---- +name: Publish images to Docker Hub + on: push: # Will run for every tag pushed except `latest` @@ -12,8 +13,6 @@ on: - cron: '0 23 * * *' # Every day at 11:00pm workflow_dispatch: -name: Publish tagged images to Docker Hub - jobs: docker: runs-on: docker diff --git a/.github/workflows/rust.yml b/.github/workflows/test-suite.yml similarity index 99% rename from .github/workflows/rust.yml rename to .github/workflows/test-suite.yml index 14417f25c..69deade9d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/test-suite.yml @@ -1,4 +1,4 @@ -name: Rust +name: Test suite on: workflow_dispatch: