forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
3,436 changed files
with
317,978 additions
and
40,029 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"repoOwner": "aptos-labs", | ||
"repoName": "aptos-core", | ||
|
||
"branchLabelMapping": { | ||
"^v(\\d+).(\\d+)$": "aptos-release-v$1.$2" | ||
}, | ||
"commitConflicts": true, | ||
"prTitle": "[cp][{{targetBranch}}] {{sourcePullRequest.title}}", | ||
"targetPRLabels": ["cherry-pick"], | ||
"assignees": ["thepomeranian"] | ||
} |
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
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,8 +1,8 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Questions and Help (on Stack Overflow) | ||
url: https://stackoverflow.com/questions/tagged/aptos | ||
about: Support and other Questions are handled by the team and the community on Stack Overflow. | ||
- name: Questions and Help (on Aptos Developer Discussions) | ||
url: (https://github.com/aptos-labs/aptos-developer-discussions/discussions | ||
about: Support and other Questions are handled by the team and the community on Aptos Developer Discussions. | ||
- name: Questions, Help and Chat (on Discord) | ||
url: https://discord.gg/aptosnetwork | ||
about: Contact the development team, contributors and community on Discord |
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,4 +1,4 @@ | ||
self-hosted-runner: | ||
# Labels of self-hosted runners in array of string | ||
labels: | ||
- high-perf-docker | ||
- runs-on,cpu=64,family=c7,hdd=500,image=aptos-ubuntu-x64,run-id=${{ github.run_id }} |
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 |
---|---|---|
|
@@ -13,14 +13,6 @@ runs: | |
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 # Fetch all git history for accurate target determination | ||
- uses: aptos-labs/aptos-core/.github/actions/rust-setup@main | ||
with: | ||
GIT_CREDENTIALS: ${{ inputs.GIT_CREDENTIALS }} | ||
|
||
# Install nextest | ||
- uses: taiki-e/[email protected] | ||
with: | ||
tool: nextest | ||
|
||
# Output the changed files | ||
- name: Output the changed files | ||
|
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,19 @@ | ||
name: Rust Check Merge Base | ||
description: Runs the rust merge base freshness check | ||
inputs: | ||
GIT_CREDENTIALS: | ||
description: "Optional credentials to pass to git. Useful if you need to pull private repos for dependencies" | ||
required: false | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
# The source code must be checked out by the workflow that invokes this action. | ||
- uses: aptos-labs/aptos-core/.github/actions/rust-setup@main | ||
with: | ||
GIT_CREDENTIALS: ${{ inputs.GIT_CREDENTIALS }} | ||
|
||
# Check the freshness of the merge base | ||
- name: Check the freshness of the merge base | ||
run: cargo x check-merge-base -vvv | ||
shell: bash |
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,16 @@ | ||
name: Rust Doc Tests | ||
description: Runs only the rust doc tests | ||
inputs: | ||
GIT_CREDENTIALS: | ||
description: "Optional credentials to pass to git. Useful if you need to pull private repos for dependencies" | ||
required: false | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
# The source code must be checked out by the workflow that invokes this action. | ||
|
||
# Run the rust doc tests | ||
- name: Run rust doc tests | ||
run: cargo test --profile ci --locked --doc --workspace --exclude aptos-node-checker | ||
shell: bash |
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 |
---|---|---|
|
@@ -10,10 +10,6 @@ runs: | |
steps: | ||
# The source code must be checkout out by the workflow that invokes this action. | ||
|
||
- uses: aptos-labs/aptos-core/.github/actions/rust-setup@main | ||
with: | ||
GIT_CREDENTIALS: ${{ inputs.GIT_CREDENTIALS }} | ||
|
||
# Run the pre-commit checks | ||
- uses: pre-commit/[email protected] | ||
|
||
|
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 |
---|---|---|
|
@@ -10,15 +10,6 @@ runs: | |
steps: | ||
# The source code must be checkout out by the workflow that invokes this action. | ||
|
||
- uses: aptos-labs/aptos-core/.github/actions/rust-setup@main | ||
with: | ||
GIT_CREDENTIALS: ${{ inputs.GIT_CREDENTIALS }} | ||
|
||
# Install nextest | ||
- uses: taiki-e/[email protected] | ||
with: | ||
tool: nextest | ||
|
||
# Run a postgres database | ||
- name: Run postgres database | ||
run: docker run --detach -p 5432:5432 cimg/postgres:14.2 | ||
|
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 |
---|---|---|
|
@@ -9,14 +9,6 @@ runs: | |
using: composite | ||
steps: | ||
# The source code must be checked out by the workflow that invokes this action. | ||
- uses: aptos-labs/aptos-core/.github/actions/rust-setup@main | ||
with: | ||
GIT_CREDENTIALS: ${{ inputs.GIT_CREDENTIALS }} | ||
|
||
# Install nextest | ||
- uses: taiki-e/[email protected] | ||
with: | ||
tool: nextest | ||
|
||
# Run a postgres database | ||
- name: Run postgres database | ||
|
@@ -25,18 +17,18 @@ runs: | |
|
||
# Output the changed files | ||
- name: Output the changed files | ||
run: cargo x changed-files -vv | ||
run: cargo x changed-files -vvv | ||
shell: bash | ||
|
||
# Output the affected packages | ||
- name: Output the affected packages | ||
run: cargo x affected-packages -vv | ||
run: cargo x affected-packages -vvv | ||
shell: bash | ||
|
||
# Run only the targeted rust unit tests | ||
- name: Run only the targeted unit tests | ||
run: | | ||
cargo x targeted-unit-tests -vv --profile ci --cargo-profile ci --locked --no-fail-fast --retries 3 | ||
cargo x targeted-unit-tests -vvv --profile ci --cargo-profile ci --locked --no-fail-fast --retries 3 | ||
shell: bash | ||
env: | ||
INDEXER_DATABASE_URL: postgresql://postgres@localhost/postgres | ||
|
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 |
---|---|---|
|
@@ -4,17 +4,11 @@ inputs: | |
GIT_CREDENTIALS: | ||
description: "Optional credentials to pass to git. Useful if you need to pull private repos for dependencies" | ||
required: false | ||
BUILDKITE_ANALYTICS_TOKEN: | ||
description: "The Buildkite API token" | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
# The source code must be checkout out by the workflow that invokes this action. | ||
- uses: aptos-labs/aptos-core/.github/actions/rust-setup@main | ||
with: | ||
GIT_CREDENTIALS: ${{ inputs.GIT_CREDENTIALS }} | ||
|
||
# Check the VM features | ||
- name: Check VM features | ||
|
@@ -26,16 +20,6 @@ runs: | |
run: cargo test --profile ci --locked --doc --workspace --exclude aptos-node-checker | ||
shell: bash | ||
|
||
# Install nextest | ||
- uses: taiki-e/[email protected] | ||
with: | ||
tool: nextest | ||
|
||
# Install buildkite-test-collector | ||
- name: Install buildkite-test-collector | ||
run: cargo install buildkite-test-collector | ||
shell: bash | ||
|
||
# Run a postgres database | ||
- name: Run postgres database | ||
run: docker run --detach -p 5432:5432 cimg/postgres:14.2 | ||
|
@@ -44,8 +28,7 @@ runs: | |
# Run the rust unit tests | ||
- name: Run all unit tests | ||
run: | | ||
NEXTEST_EXPERIMENTAL_LIBTEST_JSON=1 cargo nextest run --profile ci --cargo-profile ci --locked --workspace --exclude smoke-test --exclude aptos-testcases --retries 3 --no-fail-fast --message-format libtest-json > nextest_output.json || python3 .github/actions/rust-unit-tests/nextest_summary.py nextest_output.json "$GITHUB_STEP_SUMMARY" -f | ||
buildkite-test-collector < nextest_output.json || echo "Warning: buildkite-test-collector encountered an error" | ||
NEXTEST_EXPERIMENTAL_LIBTEST_JSON=1 cargo nextest run --profile ci --cargo-profile ci --locked --workspace --exclude smoke-test --exclude aptos-testcases --exclude aptos-keyless-circuit --retries 3 --no-fail-fast --message-format libtest-json > nextest_output.json || python3 .github/actions/rust-unit-tests/nextest_summary.py nextest_output.json "$GITHUB_STEP_SUMMARY" -f | ||
python3 .github/actions/rust-unit-tests/nextest_summary.py nextest_output.json "$GITHUB_STEP_SUMMARY" || echo "summary generation had an error" | ||
rm nextest_output.json | ||
shell: bash | ||
|
@@ -58,4 +41,3 @@ runs: | |
CVC5_EXE: /home/runner/bin/cvc5 | ||
DOTNET_ROOT: /home/runner/.dotnet | ||
BOOGIE_EXE: /home/runner/.dotnet/tools/boogie | ||
BUILDKITE_ANALYTICS_TOKEN: ${{ inputs.BUILDKITE_ANALYTICS_TOKEN }} |
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,10 @@ | ||
images: | ||
aptos-ubuntu-x64: | ||
platform: "linux" | ||
arch: "x64" | ||
ami: "ami-07ce6402e4a205d44" | ||
aptos-ubuntu-x64-latest: | ||
platform: "linux" | ||
arch: "x64" | ||
owner: "058264343338" # aptos-ci AWS account id | ||
name: "aptos-runs-on-*" |
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,38 @@ | ||
name: Backport to Release Branches | ||
|
||
on: | ||
pull_request_target: | ||
types: ["labeled", "closed"] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
permission-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check repository permission for user which triggered workflow | ||
uses: sushichop/action-repository-permission@13d208f5ae7a6a3fc0e5a7c2502c214983f0241c | ||
with: | ||
required-permission: write | ||
comment-not-permitted: Sorry, you don't have permission to trigger this workflow. | ||
|
||
backport: | ||
name: Backport PR | ||
needs: [permission-check] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Backport Action | ||
uses: sorenlouv/backport-github-action@ad888e978060bc1b2798690dd9d03c4036560947 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
add_original_reviewers: true | ||
|
||
- name: Info log | ||
if: ${{ success() }} | ||
run: cat ~/.backport/backport.info.log | ||
|
||
- name: Debug log | ||
if: ${{ failure() }} | ||
run: cat ~/.backport/backport.debug.log |
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
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
Oops, something went wrong.