-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into Instrument-await-using-await-tree
- Loading branch information
Showing
168 changed files
with
7,260 additions
and
2,161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[profile.default] | ||
retries = 0 | ||
slow-timeout = { period = "10s" } | ||
slow-timeout = { period = "10s", terminate-after = 3 } | ||
status-level = "all" | ||
final-status-level = "slow" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
# Check for updates to GitHub Actions every day | ||
interval: "daily" | ||
# Allow up to 10 open pull requests for update github-actions | ||
# 5 by default | ||
# see https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#open-pull-requests-limit | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: "cargo" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
labels: | ||
- "dependencies" | ||
open-pull-requests-limit: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: Build Xline | ||
env: | ||
CI_RUST_TOOLCHAIN: 1.74.0 | ||
on: | ||
workflow_call: | ||
inputs: | ||
additional_setup_commands: | ||
description: "Additional commands to run after initial setup, before running the script" | ||
required: false | ||
default: "" | ||
type: string | ||
docker_xline_image: | ||
description: "Docker image to use for building" | ||
required: true | ||
type: string | ||
binaries: | ||
description: "Comma-separated list of binaries" | ||
required: true | ||
type: string | ||
script_name: | ||
description: "Name of the script to run" | ||
required: true | ||
type: string | ||
uploadLogs: | ||
description: "Boolean to decide if logs should be uploaded" | ||
required: false | ||
default: false | ||
type: boolean | ||
uploadBenchmark: | ||
description: "Boolean to decide if benchmark output should be uploaded" | ||
required: false | ||
default: false | ||
type: boolean | ||
jobs: | ||
build_and_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure sccache | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | ||
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | ||
- name: Prepare release binaries | ||
id: prepare_binaries | ||
run: | | ||
IFS=',' read -ra binary_array <<< "${{ inputs.binaries }}" | ||
release_bin="" | ||
for binary in "${binary_array[@]}"; do | ||
release_bin+="--bin $binary " | ||
done | ||
release_bin="${release_bin::-1}" | ||
echo "::set-output name=release_bin::$release_bin" | ||
- name: Build xline | ||
run: | | ||
docker run -q --rm -v $(pwd):/xline \ | ||
-e SCCACHE_GHA_ENABLED=on \ | ||
-e ACTIONS_CACHE_URL=${ACTIONS_CACHE_URL} \ | ||
-e ACTIONS_RUNTIME_TOKEN=${ACTIONS_RUNTIME_TOKEN} \ | ||
${{ inputs.docker_xline_image }} \ | ||
cargo build --release ${{ steps.prepare_binaries.outputs.release_bin }} | ||
- run: | | ||
cd scripts | ||
cp ../target/release/{${{ inputs.binaries }}} . | ||
${{ inputs.additional_setup_commands }} | ||
bash ./${{ inputs.script_name }} | ||
- name: Upload logs | ||
if: ${{ inputs.uploadLogs }} && (failure() || cancelled()) | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Xline logs | ||
path: scripts/logs | ||
|
||
- name: Upload benchmark output | ||
if: ${{ inputs.uploadBenchmark }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: benchmark-output | ||
path: scripts/out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
|
||
jobs: | ||
assignme: | ||
name: /assignme | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.event.comment.body, '/assignme') | ||
|
||
steps: | ||
- uses: xt0rted/slash-command-action@v2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
command: assignme | ||
reaction: "true" | ||
reaction-type: "rocket" | ||
permission-level: read | ||
|
||
- uses: actions-ecosystem/action-add-assignees@v1 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
assignees: ${{ github.actor }} | ||
|
||
contributing-agreement: | ||
name: /contributing-agreement | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.event.comment.body, '/contributing-agreement') | ||
|
||
steps: | ||
- uses: xt0rted/slash-command-action@v2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
command: contributing-agreement | ||
reaction: "true" | ||
reaction-type: "rocket" | ||
permission-level: read | ||
|
||
- uses: peter-evans/create-or-update-comment@v4 | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
Contributing Agreements: | ||
- [pull request](https://github.com/xline-kv/Xline/blob/master/CONTRIBUTING.md#pull-requests) | ||
- [merge policy](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/about-pull-request-merges#rebase-and-merge-your-commits) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
|
||
# https://github.com/marketplace/actions/create-or-update-comment | ||
|
||
jobs: | ||
welcome: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: peter-evans/create-or-update-comment@v4 | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
👋 Thanks for opening this issue! | ||
Reply with the following command on its own line to get help or engage: | ||
- `/contributing-agreement` : to print Contributing Agreements. | ||
- `/assignme` : to assign this issue to you. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.