Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dearb patching #1

Closed
wants to merge 200 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
200 commits
Select commit Hold shift + click to select a range
2340a1a
[Aptos Data Client] Split up tests.
JoshLind May 24, 2023
c522f80
Add support for setting installation path to CLI install script (#8446)
banool May 31, 2023
3fe9436
Add check for empty vector during event emission (#8448)
alnoki May 31, 2023
cf26cc4
[devnet] Fix devnet update message link (#8375)
perryjrandall May 31, 2023
c320d2a
[doc] add aptos db restore tool page
areshand May 26, 2023
ee328dd
[docs] add aptos-stdlib to docs site refs (#8452)
davidiw May 31, 2023
f2b84c8
supply-properties (#8388)
rahxephon89 May 31, 2023
4beb914
[CLI][Rest] added default custom header (#8368)
0xmigo May 31, 2023
82cebdf
[revert] Revert added symlink (#8456)
perryjrandall May 31, 2023
40dc32c
[Executor] Move block gas limit to state computer (#8441)
danielxiangzl Jun 1, 2023
943c21d
[Aptos Node] Bump cargo version of aptos-node to 1.5
JoshLind May 30, 2023
7367f15
[storage] explicitly request a valid target version in db restore
areshand May 31, 2023
846e5b9
[storage] reuse previous test
areshand May 24, 2023
d1e15cd
fix flush error when running tests concurrently (#8453)
gelash Jun 1, 2023
55a27cc
[aptos-ledger] added fetching and update get public key method (#8342)
0xmigo Jun 1, 2023
931f810
Add get-latest-cli action (#8447)
banool Jun 1, 2023
1c84db6
Added a typescript client for the Ambassador token example (#8200)
junkil-park Jun 1, 2023
133347e
[helm][fullnode] add lookup for all workloads (#8382)
rustielin Jun 1, 2023
f893f46
[Python SDK] Added custom header and bump version to 0.6.2 (#8442)
0xmigo Jun 1, 2023
ccb3b91
Text review and sidebar changes for the DB restore doc (#8455)
saharct Jun 1, 2023
b2d3839
[CLI] Bump CLI version to 2.0.0 (#8416)
alnoki Jun 1, 2023
875f553
Add env variable to save logs (#8445)
bchocho Jun 1, 2023
e6c4a47
Update token v2 docs (#8438)
movekevin Jun 1, 2023
aad9fa0
[State Sync] Add latency monitor.
JoshLind May 22, 2023
59320ad
[State Sync] Rename subscription terminology to optimistic fetch.
JoshLind May 26, 2023
189ca63
Add missing word to docs' dictionary (#8464)
movekevin Jun 1, 2023
da31920
[Faucet] Make outstanding txn wait duration configurable, update defa…
banool Jun 1, 2023
41d03c4
[Python SDK] Fix linting (#8467)
0xmigo Jun 1, 2023
dc30dcd
update changelog (#8473)
0xmigo Jun 1, 2023
c9cb442
[Storage Service] Small tweaks to metrics.
JoshLind May 30, 2023
e1e2733
[indexer-grpc] integration tests with docker-compose (#8250)
rustielin Jun 1, 2023
32d2f52
[TS SDK ] run ts sdk indexer tests in a separate CI job (#8454)
0xmaayan Jun 1, 2023
e718ff8
[CLI][E2E] Expose metrics port of local testnet node (#8465)
banool Jun 1, 2023
e8eb4e5
update standard link (#8475)
0xmaayan Jun 1, 2023
3a4e9fc
[Dev Docs] Update state sync guide.
JoshLind Jun 1, 2023
75c09cb
[docs] update docs to reflect updated rate limits (#8461)
rustielin Jun 1, 2023
76b4e70
add txn to skip (#8480)
rahxephon89 Jun 1, 2023
515362b
[forge] Mainnet Like Network Simulation (#7533)
ibalajiarun Jun 1, 2023
7287a92
[gha] use install-grpcurl from main (#8479)
rustielin Jun 1, 2023
4f6a912
[features] Force reconfigruation after feature change (#8471)
runtian-zhou Jun 2, 2023
429c5a9
[CLI] Add customer header checking to e2e (#8460)
0xmigo Jun 2, 2023
65d160b
[docs]update module file name recommendation (#8463)
fgfm999 Jun 2, 2023
a8575de
Update data-pruning.md (#8433)
michelle-aptos Jun 2, 2023
c10d24b
Bump requests in /crates/aptos-faucet/integration-tests (#8329)
dependabot[bot] Jun 2, 2023
4a38281
Bump requests from 2.28.2 to 2.31.0 in /crates/aptos/e2e (#8328)
dependabot[bot] Jun 2, 2023
23ea9c2
Define fungible asset, token, and unit in the glossary (#8194)
saharct Jun 2, 2023
1afeda2
[docs] add words to dictionary (#8494)
davidiw Jun 2, 2023
56aee8b
Revert "[CLI] Add customer header checking to e2e (#8460)" (#8496)
movekevin Jun 2, 2023
1018aa5
[Faucet] Adjust faucet txn expiration / seqnum related values (#8483)
banool Jun 2, 2023
c824b0a
[Executor] MVHashMap changes for ExecutableStore (#8302)
gelash Jun 2, 2023
82f687c
Add vector::remove_value (#8449)
movekevin Jun 2, 2023
a8ca284
cherry-pick: improved value depth checks in the VM (#8485)
vgao1996 Jun 2, 2023
efde3a6
[dashboards] sync grafana dashboards (#8394)
github-actions[bot] Jun 2, 2023
bd3eb54
[indexer-grpc] remove server_name from all configs (#8497)
rustielin Jun 2, 2023
c0be199
[gha][docker] only push to GAR on PR; push to ECR on postcommit (#8500)
rustielin Jun 2, 2023
b3e82b3
[release] Add workflow to build release binaries (#8504)
perryjrandall Jun 3, 2023
97b6dd3
rosetta delegator address balances (#8421)
defnotzed Jun 3, 2023
32db33d
Withdraw undelegated (#8291)
nicolas-martin Jun 3, 2023
5019973
[move-examples] remove unsupported marketplace demo
davidiw May 25, 2023
9e9db9d
[move-examples] Marketplace fee schedule
davidiw May 28, 2023
87629e0
[move-examples] add support for listings
davidiw May 28, 2023
584decc
[move-example] marketplace readme
davidiw May 28, 2023
b806b04
[move-example] marketplace add dedicated listing for coins
davidiw May 28, 2023
b8e6121
[move-examples] add tokenv1 to marketplace
davidiw May 29, 2023
6e9e3b0
[move-examples] token collection offers
davidiw May 29, 2023
c32e918
Revert "[gha][docker] only push to GAR on PR; push to ECR on postcomm…
geekflyer Jun 4, 2023
b489087
[Forge] Delete test GCP workflow (#8510)
sionescu Jun 5, 2023
dd0e2a0
fix trigger condition for build jobs
geekflyer Jun 4, 2023
8325034
[CLI] Bump version to 2.0.1 (#8524)
banool Jun 5, 2023
39242e8
Refactor to replace vanilla loops with inline functions (#8490)
xindingw Jun 5, 2023
3fcf9ad
[tf/gcp][fullnode] make NAP use PFN service account (#8527)
rustielin Jun 5, 2023
95ff72e
[TF] More fixes for GCP DNS (#8253)
sionescu Jun 5, 2023
09359aa
Update gas metering (#8526)
movekevin Jun 6, 2023
41ecc62
[TS SDK] make indexerUrl as an optional param (#8502)
0xmaayan Jun 6, 2023
17dbf16
Fix docker-update-images workflow
gedigi Jun 6, 2023
e3c9a87
Update release builder to use the correct reconfigure function (#8536)
movekevin Jun 6, 2023
416211f
Update Docker images (#8493)
gedigi Jun 6, 2023
f4ef764
[TS SDK] Add query to fetch all collections that an account has token…
0xmaayan Jun 6, 2023
c613c43
Add functions to extract all keys and values from simple_map and (tok…
movekevin Jun 6, 2023
af991b8
[Aptos Framework] Add multisig v2 owner helpers, abstractions (#8525)
alnoki Jun 6, 2023
8ee9a86
[TF] Disable the monitoring Helm chart by default (#8546)
sionescu Jun 6, 2023
005aca2
[Sharding] [Execution] Add support for Analyzed txn and sharded graph…
sitalkedia Jun 7, 2023
9d04747
[mempool] classify client-submitted vs. broadcasted transactions (#8486)
bchocho Jun 7, 2023
aaadc26
[Prover][Spec] Fix apply schema (#8518)
rahxephon89 Jun 7, 2023
3a0c433
[aptos-gas] fix typo (#8540)
wlawt Jun 7, 2023
eac528c
mark crypto and types public (#8543)
0xmigo Jun 7, 2023
c064883
update version (#8562)
0xmigo Jun 7, 2023
c10ec10
[TS SDK] Support write operations for Fungible Assets (#8294)
0xmaayan Jun 7, 2023
d49a833
[CLI] Improve error message when compilation fails in aptos move publ…
banool Jun 7, 2023
e267e3e
add new fuzzer + google oss-fuzz integration files (#8534)
gedigi Jun 7, 2023
faff4ee
[gas] fix gas metering for resource groups (#8549)
vgao1996 Jun 7, 2023
c7f46d1
bump version (#8564)
0xmaayan Jun 7, 2023
129d9e1
[gha] Filter build node on pull request
perryjrandall Jun 7, 2023
c286ce7
Integrate fixes into mainnet (#8568)
gerben-stavenga Jun 7, 2023
1701353
[TF] Use a ManagedCertificate for testnet-addons ingress (#8552)
sionescu Jun 7, 2023
182e238
Fix stake flow diagram (#8571)
xindingw Jun 7, 2023
151a291
real-world network land_blocking test to replace the old one (#8542)
igor-aptos Jun 7, 2023
04089c3
[Storage][Pruner] Refactor pruners. (#8532)
grao1991 Jun 7, 2023
1399455
[Execution][Sharding] Changes to block execution API to be able to pa…
sitalkedia Jun 7, 2023
2c4ae76
Remove static from ForgeConfig (#8573)
igor-aptos Jun 7, 2023
7d15504
[dag] reliable broadcast
zekun000 Jun 5, 2023
9b104f3
[terraform][gcp] ability to specify maintenance window (#8491)
ibalajiarun Jun 8, 2023
2a063b5
[CLI] add account lookup by authentication key (#7820)
0xmigo Jun 8, 2023
86fa3d7
[TF] Add default for GKE maintenance window (#8585)
sionescu Jun 8, 2023
3e6ca81
[python] return int balance of coins
davidiw Apr 30, 2023
4a6caff
[python] async sleep for async calls
davidiw Apr 30, 2023
7328c7b
[python] use aptos_account::transfer instead of coin::transfer
davidiw Apr 30, 2023
5361c1b
[python] expose payload generators for token client
davidiw May 18, 2023
1919e2d
[python] support inserting sequence numbers in transaction helpers
davidiw Apr 30, 2023
7a914c8
[python] add a transaction management layer
davidiw Apr 30, 2023
bec6393
[python] Add testing coverage
davidiw Apr 30, 2023
7276640
[python] cleaning up with feedback
davidiw May 3, 2023
e238c03
[docs] update transaction management
davidiw Jun 8, 2023
b19441a
[python] add a modest reliablity layer to transaction management
davidiw Jun 8, 2023
e5a981c
[python] remove unnecessary python dependencies
davidiw Jun 9, 2023
065c93f
[Execution Benchmark] Calibrate Threshold (#8591)
danielxiangzl Jun 8, 2023
255fff0
clean AptosVmImpl::new() up a bit
msmouse Jun 7, 2023
dd7eb0f
[Helm] Add charts for kube-state-metrics and prometheus-node-exporter…
sionescu Jun 8, 2023
b998002
Add a zip functions to iterate over 2 vectors concurrently (#8584)
movekevin Jun 8, 2023
fb415a4
[TF] Add health check for waypoint service in GCP testnet-addons
sionescu Jun 8, 2023
13aaec4
[Storage][Sharding][Pruner] Restructure ledger pruner. (#8443)
grao1991 Jun 9, 2023
ffddc82
[forge] add PFN support (#8531)
rustielin Jun 9, 2023
0e8f96d
Add realistic_env_load_sweep forge test, to check latency across TPS …
igor-aptos Jun 9, 2023
d14e596
[Storage][Sharding] Split ledger commit into multiple batches. (#8478)
grao1991 Jun 9, 2023
e95ef24
Revert "Revert "[CLI] Add customer header checking to e2e (#8460)" (#…
banool Jun 9, 2023
455ef1c
[CLI][E2E] Improve reliability of framework, checkout correct code in…
banool Jun 9, 2023
3b8913b
[Sharding] [ Execution] Remote Executor service support (#8545)
sitalkedia Jun 9, 2023
b8c62f3
Use inputs.GIT_SHA not env.GIT_SHA in CLI E2E tests
banool Jun 9, 2023
d022b22
[forge][fix] Track and remove chaos properly (#8598)
ibalajiarun Jun 9, 2023
f49d050
[telemetry-svc][bug-fix] Add timeouts for requests (#8451)
ibalajiarun Jun 9, 2023
0a777f5
[dashboards] sync grafana dashboards (#8505)
github-actions[bot] Jun 9, 2023
4cc1c40
[Sharding] Integrate executor benchmark with sharded block-stm (#8566)
zjma Jun 9, 2023
b4d12ad
[terraform][gcp][testnet] make default daily 24h (#8607)
ibalajiarun Jun 9, 2023
fe3af3e
[Helm] Update autoscaling charts
sionescu Jun 9, 2023
eee5bef
[gha] set up merge gatekeeper (#8586)
rustielin Jun 9, 2023
dd1cfd3
consistant operation naming (#8600)
nicolas-martin Jun 9, 2023
9d5060c
Update generics.md (#8581)
brmataptos Jun 11, 2023
b5f5f52
Spec aptos account (#8364)
UIZorrot Jun 12, 2023
f8b4b52
[forge] Fix long running job failure
perryjrandall Jun 10, 2023
402489d
Revert "[forge] Fix long running job failure" (#8625)
perryjrandall Jun 12, 2023
754df7d
[GHA] Increase the polling interval of merge_gatekeeper to 1 minute
sionescu Jun 12, 2023
d004c76
[gha] fix merge gatekeeper with checkout (#8629)
rustielin Jun 12, 2023
34dfe47
[Helm] Update Calico version
sionescu Jun 9, 2023
74f8eec
[TF] Add variable for enabling loadtesting on GCP testnets
sionescu Jun 9, 2023
f336b59
Update external-resources.md (#8538)
cryptomolot Jun 13, 2023
3b05c8f
[Sharding][Partitioning] Add support for dependent edges and conflic…
sitalkedia Jun 13, 2023
3008560
sparse-merkle-tree bench update (#8613)
zjma Jun 13, 2023
1dda750
[Storage Service] Fix flaky tests.
JoshLind Jun 12, 2023
2bf6e6a
Update CONTRIBUTING.md (#8620)
cryptomolot Jun 13, 2023
763a8ad
[move-example] refactor fungible asset examples
lightmark May 24, 2023
8c7fc88
[move-examples] pre-minted managed FA
lightmark May 25, 2023
d9232c9
Forge test for testing throughput on network purely tuned for through…
igor-aptos Jun 13, 2023
f8385b3
[Storage][Sharding] Implement create_checkpoint for LedgerDb, and dep…
grao1991 Jun 13, 2023
bb0de98
feat: added bcsSerializeU256 (#8619)
0xtrou Jun 13, 2023
166a931
refactor: storage gas parameters: load onchain config from within con…
msmouse Jun 9, 2023
38f60b3
Deprecate the storage gas curves
msmouse Jun 9, 2023
c1f0411
[Indexer] Token v2 improvement (#8436)
bowenyang007 Jun 13, 2023
015bc88
fix aptos account spec block (#8640)
rahxephon89 Jun 13, 2023
37280ed
set timeout to telemetry (#8647)
0xmigo Jun 14, 2023
c9a3d5c
Fix the order of signer and non-signer tx arg validation to maintain …
movekevin Jun 14, 2023
89f950b
disable state metadata tracking for devnet
msmouse Jun 13, 2023
ddf2463
update the tls part for data service. (#8632)
larry-aptos Jun 14, 2023
21ac8bf
Added the Knight token object example (#8489)
junkil-park Jun 14, 2023
22d6280
[Spec] update specs of voting, transaction_fee, code (#8172)
xudon9 Jun 14, 2023
3eb59f3
[GHA] Pin main branch workflow for indexer workflow (#8653)
ibalajiarun Jun 14, 2023
a526269
Sharded blockstm api (#8650)
sitalkedia Jun 14, 2023
7273682
Correct view function mutability docs, add tip (#8539)
alnoki Jun 14, 2023
454ebd2
[Config] Default to fast sync for mainnet nodes.
JoshLind Jun 13, 2023
e6ffbaa
drop pruned blocks asynchronously
msmouse Jun 14, 2023
40b4a49
[dag] add dag store
zekun000 Jun 8, 2023
456939d
Tune run-forge-realistic-env-load-sweep forge test (#8651)
igor-aptos Jun 14, 2023
42e7c40
[Storage] Reorganize calculation and commit tasks in save_transaction…
grao1991 Jun 14, 2023
68aff2a
[BlockSTM] Remove Commit Lock (#8665)
danielxiangzl Jun 15, 2023
e914ed2
Specify that functions can return references under certain conditions…
saharct Jun 15, 2023
ad2cbfd
[gha][docker] only push to GAR on PR; push to ECR on postcommit (#8599)
rustielin Jun 15, 2023
b7ddfcf
[CLI][E2E] Add test for aptos move publish (#8590)
banool Jun 15, 2023
74ccc19
[aptos-vm] Skip converting storage error (#8674)
runtian-zhou Jun 15, 2023
141323a
Adding an example of a token that is non-transferable for the first 7…
xbtmatt Jun 15, 2023
782a5b3
replay-verify once per day
msmouse Jun 15, 2023
9ef8c60
[dashboards] sync grafana dashboards (#8633)
github-actions[bot] Jun 15, 2023
3df7316
[Helm] Fix loadtest cronjob (#8643)
sionescu Jun 15, 2023
3aaedca
Separate speculative logging errors out in alerting (lower priority) …
gelash Jun 15, 2023
989e4ef
[Executor][GasMeter] Add Fee Statement in VM output (#8635)
danielxiangzl Jun 15, 2023
81bc224
Add workload_mix and realistic_env_graceful_overload, and cleanup con…
igor-aptos Jun 15, 2023
695bbac
[Spec] update specs of voting.move (#8557)
UIZorrot Jun 15, 2023
903c684
[BlockSTM] Better naming for execution task (#8694)
danielxiangzl Jun 16, 2023
fa01eb0
[Spec] update specs of aptos_governance (#8657)
UIZorrot Jun 16, 2023
4fc5447
Remove outdated information about view functions and add a CLI usage …
saharct Jun 16, 2023
a8491de
Add missing commands to the command-specific help examples (#8681)
saharct Jun 16, 2023
729a419
[forge][multiregion] Ability to run GCP multiregion tests on PR (#8618)
ibalajiarun Jun 16, 2023
181a3fd
[GHA] Use spot VM for executor-performance (#8677)
ibalajiarun Jun 16, 2023
bea5520
Add docgen support for attributes (e.g., #[view]) (Issue #7932) (#8636)
brmataptos Jun 16, 2023
6f4524d
[Sharding][Execution] Integrate partitioning into the block-stm bench…
sitalkedia Jun 16, 2023
1e65e97
[Rust Toolchain] Upgrade up to rust version 1.7
JoshLind Jun 15, 2023
de3a664
Add so that Forge tests print (less frequently - every 1m) emit stats…
igor-aptos Jun 17, 2023
237ac23
Add a new() function to smart_vector and simple_map to be more standa…
movekevin Jun 17, 2023
6f40f0f
Add a new_from and add_all functions to simple_map (#8723)
movekevin Jun 18, 2023
e53e193
Add documentation and tests for type_info functions (#8706)
movekevin Jun 19, 2023
c8a21a2
dearbitrary derivation for move types
qdrs Jun 20, 2023
fec84ef
use https git dep for otter dearbitrary
qdrs Jun 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .github/actions/get-latest-cli/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Get latest Aptos CLI"
description: |
Fetches the latest released Aptos CLI.
inputs:
destination_directory:
description: "Directory to install the CLI in"
required: true

runs:
using: composite
steps:
- name: Setup python
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # pin@v4
- name: Get installation script
shell: bash
run: |
curl -fsSL "https://aptos.dev/scripts/install_cli.py" > install_cli.py
- name: Run installation script
shell: bash
run: |
python3 install_cli.py --bin-dir ${{ inputs.destination_directory }}
25 changes: 25 additions & 0 deletions .github/actions/install-grpcurl/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Install grpcurl"
description: |
Installs grpcurl https://github.com/fullstorydev/grpcurl
inputs:
install_directory:
description: "Where to install grpcurl binary. Defaults to github.workspace."
required: false

runs:
using: composite
steps:
- name: Install grpcurl
shell: bash
run: ${{ github.action_path }}/install_grpcurl.sh
- name: Add grpcurl to install directory and path
shell: bash
run: |
if [ -z "${INSTALL_DIRECTORY}" ]; then
INSTALL_DIRECTORY=${{ github.workspace }}
else
mv grpcurl $INSTALL_DIRECTORY
fi
echo "${INSTALL_DIRECTORY}" | tee -a $GITHUB_PATH
env:
INSTALL_DIRECTORY: ${{ inputs.install_directory }}
16 changes: 16 additions & 0 deletions .github/actions/install-grpcurl/install_grpcurl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -ex

# A quick script that installs grpcurl if it's not already installed.

if ! command -v grpcurl &>/dev/null; then
wget https://github.com/fullstorydev/grpcurl/releases/download/v1.8.7/grpcurl_1.8.7_linux_x86_64.tar.gz
sha=$(shasum -a 256 grpcurl_1.8.7_linux_x86_64.tar.gz | awk '{ print $1 }')
[ "$sha" != "b50a9c9cdbabab03c0460a7218eab4a954913d696b4d69ffb720f42d869dbdd5" ] && echo "shasum mismatch" && exit 1
tar -xvf grpcurl_1.8.7_linux_x86_64.tar.gz
chmod +x grpcurl
./grpcurl -version
fi

echo "grpcurl is installed"
47 changes: 47 additions & 0 deletions .github/workflows/build-node-binaries.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This defines a workflow to make a release build of the aptos node.
# In order to trigger it go to the Actions Tab of the Repo, click "Build Aptos Node Binaries" and then "Run Workflow".

name: "Build Aptos Node Binaries"

on:
pull_request:
paths:
- ".github/workflows/build-node-binaries.yaml"
workflow_dispatch:
inputs:
git_ref:
type: string
required: true
description: "The ref to build from i.e. aptos-node-vX.X.X"

jobs:
build-node-binary:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
name: "Build Aptos Node Binary on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3
with:
# ref: ${{ github.event.inputs.git_ref }}
ref: aptos-node-v1.4.3
- uses: aptos-labs/aptos-core/.github/actions/rust-setup@main
- name: Build Aptos Node Binary ${{ matrix.os }}
run: |
set -eux

OS="${{ matrix.os }}"
SANITIZED_OS="${OS//./-}"
TARNAME="aptos-node-$SANITIZED_OS.tgz"

cargo build -p aptos-node --release
cd target/release
tar czvf "$TARNAME" aptos-node
mv "$TARNAME" ../../

- name: Upload Binary
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # pin@v3
with:
name: aptos-node-${{ matrix.os }}
path: aptos-node-*.tgz
2 changes: 2 additions & 0 deletions .github/workflows/cli-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.GIT_SHA }}

- uses: aptos-labs/aptos-core/.github/actions/docker-setup@main
with:
Expand Down
136 changes: 82 additions & 54 deletions .github/workflows/docker-build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ env:
# We use `pr-<pr_number>` as cache-id for PRs and simply <branch_name> otherwise.
TARGET_CACHE_ID: ${{ github.event.number && format('pr-{0}', github.event.number) || github.ref_name }}

# On PRs, only build and push to GCP
# On push, build and push to all remote registries
TARGET_REGISTRY: ${{ github.event_name == 'pull_request_target' && 'remote' || 'remote-all' }}

permissions:
contents: read
id-token: write #required for GCP Workload Identity federation which we use to login into Google Artifact Registry
Expand Down Expand Up @@ -99,9 +103,11 @@ jobs:
run: |
echo "GIT_SHA: ${GIT_SHA}"
echo "TARGET_CACHE_ID: ${TARGET_CACHE_ID}"
echo "TARGET_REGISTRY: ${TARGET_REGISTRY}"
outputs:
gitSha: ${{ env.GIT_SHA }}
targetCacheId: ${{ env.TARGET_CACHE_ID }}
targetRegistry: ${{ env.TARGET_REGISTRY }}

rust-images:
needs: [permission-check, determine-docker-build-metadata]
Expand All @@ -112,6 +118,7 @@ jobs:
TARGET_CACHE_ID: ${{ needs.determine-docker-build-metadata.outputs.targetCacheId }}
PROFILE: release
BUILD_ADDL_TESTING_IMAGES: true
TARGET_REGISTRY: ${{ needs.determine-docker-build-metadata.outputs.targetRegistry }}

rust-images-indexer:
needs: [permission-check, determine-docker-build-metadata]
Expand All @@ -127,6 +134,7 @@ jobs:
PROFILE: release
FEATURES: indexer
BUILD_ADDL_TESTING_IMAGES: true
TARGET_REGISTRY: ${{ needs.determine-docker-build-metadata.outputs.targetRegistry }}

rust-images-failpoints:
needs: [permission-check, determine-docker-build-metadata]
Expand All @@ -142,6 +150,7 @@ jobs:
PROFILE: release
FEATURES: failpoints
BUILD_ADDL_TESTING_IMAGES: true
TARGET_REGISTRY: ${{ needs.determine-docker-build-metadata.outputs.targetRegistry }}

rust-images-performance:
needs: [permission-check, determine-docker-build-metadata]
Expand All @@ -156,6 +165,7 @@ jobs:
TARGET_CACHE_ID: ${{ needs.determine-docker-build-metadata.outputs.targetCacheId }}
PROFILE: performance
BUILD_ADDL_TESTING_IMAGES: true
TARGET_REGISTRY: ${{ needs.determine-docker-build-metadata.outputs.targetRegistry }}

rust-images-consensus-only-perf-test:
needs: [permission-check, determine-docker-build-metadata]
Expand All @@ -170,87 +180,60 @@ jobs:
PROFILE: release
FEATURES: consensus-only-perf-test
BUILD_ADDL_TESTING_IMAGES: true

rust-images-all:
needs:
[
determine-docker-build-metadata,
rust-images,
rust-images-indexer,
rust-images-failpoints,
rust-images-performance,
rust-images-consensus-only-perf-test,
]
if: always() # this ensures that the job will run even if the previous jobs were skipped
runs-on: ubuntu-latest
steps:
- name: fail if rust-images job failed
if: ${{ needs.rust-images.result == 'failure' }}
run: exit 1
- name: fail if rust-images-indexer job failed
if: ${{ needs.rust-images-indexer.result == 'failure' }}
run: exit 1
- name: fail if rust-images-failpoints job failed
if: ${{ needs.rust-images-failpoints.result == 'failure' }}
run: exit 1
- name: fail if rust-images-performance job failed
if: ${{ needs.rust-images-performance.result == 'failure' }}
run: exit 1
- name: fail if rust-images-consensus-only-perf-test job failed
if: ${{ needs.rust-images-consensus-only-perf-test.result == 'failure' }}
run: exit 1
outputs:
rustImagesResult: ${{ needs.rust-images.result }}
rustImagesIndexerResult: ${{ needs.rust-images-indexer.result }}
rustImagesFailpointsResult: ${{ needs.rust-images-failpoints.result }}
rustImagesPerformanceResult: ${{ needs.rust-images-performance.result }}
rustImagesConsensusOnlyPerfTestResult: ${{ needs.rust-images-consensus-only-perf-test.result }}
TARGET_REGISTRY: ${{ needs.determine-docker-build-metadata.outputs.targetRegistry }}

sdk-release:
needs: [rust-images, determine-docker-build-metadata] # runs with the default release docker build variant "rust-images"
needs: [permission-check, rust-images, determine-docker-build-metadata] # runs with the default release docker build variant "rust-images"
if: |
(github.event_name == 'push' && github.ref_name != 'main') ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'CICD:run-e2e-tests') ||
github.event.pull_request.auto_merge != null ||
contains(github.event.pull_request.body, '#e2e')
uses: ./.github/workflows/sdk-release.yaml
uses: aptos-labs/aptos-core/.github/workflows/sdk-release.yaml@main
secrets: inherit
with:
GIT_SHA: ${{ needs.determine-docker-build-metadata.outputs.gitSha }}

cli-e2e-tests:
needs: [rust-images, determine-docker-build-metadata] # runs with the default release docker build variant "rust-images"
needs: [permission-check, rust-images, determine-docker-build-metadata] # runs with the default release docker build variant "rust-images"
if: |
!contains(github.event.pull_request.labels.*.name, 'CICD:skip-sdk-integration-test') && (
(
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'CICD:run-e2e-tests') ||
github.event.pull_request.auto_merge != null) ||
contains(github.event.pull_request.body, '#e2e'
)
uses: ./.github/workflows/cli-e2e-tests.yaml
uses: aptos-labs/aptos-core/.github/workflows/cli-e2e-tests.yaml@main
secrets: inherit
with:
GIT_SHA: ${{ needs.determine-docker-build-metadata.outputs.gitSha }}

indexer-grpc-e2e-tests:
needs: [rust-images, determine-docker-build-metadata] # runs with the default release docker build variant "rust-images"
needs: [permission-check, rust-images, determine-docker-build-metadata] # runs with the default release docker build variant "rust-images"
if: |
(github.event_name == 'push' && github.ref_name != 'main') ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'CICD:run-e2e-tests') ||
github.event.pull_request.auto_merge != null ||
contains(github.event.pull_request.body, '#e2e')
uses: ./.github/workflows/docker-indexer-grpc-test.yaml
uses: aptos-labs/aptos-core/.github/workflows/docker-indexer-grpc-test.yaml@main
secrets: inherit
with:
GIT_SHA: ${{ needs.determine-docker-build-metadata.outputs.gitSha }}

forge-e2e-test:
needs: [rust-images-all, determine-docker-build-metadata]
if: | # always() ensures that the job will run even if some of the previous docker variant build jobs were skipped https://docs.github.com/en/actions/learn-github-actions/expressions#status-check-functions
always() && needs.rust-images-all.result == 'success' && (
needs:
- permission-check
- determine-docker-build-metadata
- rust-images
- rust-images-indexer
- rust-images-failpoints
- rust-images-performance
- rust-images-consensus-only-perf-test
if: |
!failure() && !cancelled() && needs.permission-check.result == 'success' && (
(github.event_name == 'push' && github.ref_name != 'main') ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'CICD:run-e2e-tests') ||
Expand All @@ -272,9 +255,16 @@ jobs:

# Run e2e compat test against testnet branch
forge-compat-test:
needs: [rust-images-all, determine-docker-build-metadata]
if: | # always() ensures that the job will run even if some of the previous docker variant build jobs were skipped https://docs.github.com/en/actions/learn-github-actions/expressions#status-check-functions
always() && needs.rust-images-all.result == 'success' && (
needs:
- permission-check
- determine-docker-build-metadata
- rust-images
- rust-images-indexer
- rust-images-failpoints
- rust-images-performance
- rust-images-consensus-only-perf-test
if: |
!failure() && !cancelled() && needs.permission-check.result == 'success' && (
(github.event_name == 'push' && github.ref_name != 'main') ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'CICD:run-e2e-tests') ||
Expand All @@ -293,9 +283,16 @@ jobs:

# Run forge framework upgradability test
forge-framework-upgrade-test:
needs: [rust-images-all, determine-docker-build-metadata]
if: | # always() ensures that the job will run even if some of the previous docker variant build jobs were skipped https://docs.github.com/en/actions/learn-github-actions/expressions#status-check-functions
always() && needs.rust-images-all.result == 'success' && (
needs:
- permission-check
- determine-docker-build-metadata
- rust-images
- rust-images-indexer
- rust-images-failpoints
- rust-images-performance
- rust-images-consensus-only-perf-test
if: |
!failure() && !cancelled() && needs.permission-check.result == 'success' && (
(github.event_name == 'push' && github.ref_name != 'main') ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'CICD:run-e2e-tests') ||
Expand All @@ -313,9 +310,16 @@ jobs:
FORGE_NAMESPACE: forge-framework-upgrade-${{ needs.determine-docker-build-metadata.outputs.targetCacheId }}

forge-consensus-only-perf-test:
needs: [rust-images-all, determine-docker-build-metadata]
if: | # always() ensures that the job will run even if some of the previous docker variant build jobs were skipped https://docs.github.com/en/actions/learn-github-actions/expressions#status-check-functions
always() && needs.rust-images-all.result == 'success' &&
needs:
- permission-check
- determine-docker-build-metadata
- rust-images
- rust-images-indexer
- rust-images-failpoints
- rust-images-performance
- rust-images-consensus-only-perf-test
if: |
!failure() && !cancelled() && needs.permission-check.result == 'success' &&
contains(github.event.pull_request.labels.*.name, 'CICD:run-consensus-only-perf-test')
uses: aptos-labs/aptos-core/.github/workflows/workflow-run-forge.yaml@main
secrets: inherit
Expand All @@ -326,3 +330,27 @@ jobs:
FORGE_RUNNER_DURATION_SECS: 300
COMMENT_HEADER: forge-consensus-only-perf-test
FORGE_NAMESPACE: forge-consensus-only-perf-test-${{ needs.determine-docker-build-metadata.outputs.targetCacheId }}

# Run forge multiregion test. This test uses the multiregion forge cluster that deploys pods in three GCP regions.
forge-multiregion-test:
needs:
- permission-check
- determine-docker-build-metadata
- rust-images
- rust-images-indexer
- rust-images-failpoints
- rust-images-performance
- rust-images-consensus-only-perf-test
if: |
!failure() && !cancelled() && needs.permission-check.result == 'success' &&
contains(github.event.pull_request.labels.*.name, 'CICD:run-multiregion-test')
uses: aptos-labs/aptos-core/.github/workflows/workflow-run-forge.yaml@main
secrets: inherit
with:
GIT_SHA: ${{ needs.determine-docker-build-metadata.outputs.gitSha }}
FORGE_TEST_SUITE: multiregion_benchmark_test
IMAGE_TAG: ${{ needs.determine-docker-build-metadata.outputs.gitSha }}
FORGE_RUNNER_DURATION_SECS: 300
COMMENT_HEADER: forge-multiregion-test
FORGE_NAMESPACE: forge-multiregion-test-${{ needs.determine-docker-build-metadata.outputs.targetCacheId }}
FORGE_CLUSTER_NAME: forge-multiregion
Loading