Skip to content

Commit

Permalink
Merge branch 'main' into mikhail/upstream-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
mzabaluev committed Aug 15, 2024
2 parents 185b4fb + f6e43ee commit 7bc5e2f
Show file tree
Hide file tree
Showing 1,309 changed files with 184,625 additions and 18,280 deletions.
12 changes: 12 additions & 0 deletions .backportrc.json
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"]
}
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
!**/*.errmap
!config/src/config/test_data
!aptos-move/aptos-gas-profiling/templates/
!aptos-move/aptos-release-builder/data/release.yaml
!aptos-move/aptos-release-builder/data/*.yaml
!aptos-move/aptos-release-builder/data/proposals/*
!aptos-move/framework/
!aptos-move/move-examples/hello_blockchain/
Expand Down
4 changes: 1 addition & 3 deletions .github/actions/general-lints/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ runs:

# Setup pnpm
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.2.0
uses: pnpm/action-setup@v4

# Install packages for examples and run package build, lint and tests
- name: Run ecosystem lint
Expand Down
8 changes: 0 additions & 8 deletions .github/actions/move-tests-compiler-v2/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/run-ts-sdk-e2e-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ runs:
# Run a local testnet. This installs node and pnpm too.
- uses: aptos-labs/actions/run-local-testnet@main
with:
PNPM_VERSION: 8.15.6
PNPM_VERSION: 8.3.1
DOCKER_ARTIFACT_REPO: ${{ inputs.GCP_DOCKER_ARTIFACT_REPO }}
CLI_GIT_REF: ${{ steps.get-docker-image-tag.outputs.IMAGE_TAG }}

Expand Down
19 changes: 19 additions & 0 deletions .github/actions/rust-check-merge-base/action.yaml
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
16 changes: 16 additions & 0 deletions .github/actions/rust-doc-tests/action.yaml
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
4 changes: 0 additions & 4 deletions .github/actions/rust-lints/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
9 changes: 0 additions & 9 deletions .github/actions/rust-smoke-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 3 additions & 11 deletions .github/actions/rust-targeted-unit-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
18 changes: 0 additions & 18 deletions .github/actions/rust-unit-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -45,7 +29,6 @@ runs:
- 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 --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
buildkite-test-collector < nextest_output.json || echo "Warning: buildkite-test-collector encountered an error"
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
Expand All @@ -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 }}
7 changes: 6 additions & 1 deletion .github/runs-on.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@ images:
aptos-ubuntu-x64:
platform: "linux"
arch: "x64"
ami: "ami-03b93e88e2d195770"
ami: "ami-07ce6402e4a205d44"
aptos-ubuntu-x64-latest:
platform: "linux"
arch: "x64"
owner: "058264343338" # aptos-ci AWS account id
name: "aptos-runs-on-*"
Loading

0 comments on commit 7bc5e2f

Please sign in to comment.