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

Feature/tcb release notes #2953

Draft
wants to merge 77 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
73ee430
port a select subset of the changes from mixed transactions for candi…
cbeck88 May 4, 2022
0577814
Port to candidate 1.2 (#1911)
cbeck88 May 4, 2022
3e45b7e
Amount -> MaskedAmount (#1941)
dolanbernard May 8, 2022
88c6222
unmask_value -> unmask_amount (#1952)
dolanbernard May 10, 2022
3f7f364
Make fee map enforce divisibility by minimum fee. Also check this in …
cbeck88 May 13, 2022
19f0aeb
Mark fee_token_id as `omit_when = 0` (#1978)
cbeck88 May 16, 2022
e4f41d1
TransactionBuilder TxOutContext (#1966)
dolanbernard May 16, 2022
65c3076
Cherry-pick dependency and other changes to candidate-1.2 (#1992)
May 18, 2022
9d30d3b
add an option to use an ipinfo token (#1996)
cbeck88 May 18, 2022
24e4daf
make permission denied log level be info (#1997) (#1999)
cbeck88 May 18, 2022
afdf66c
Cherry-pick updates from master. (#2006)
May 19, 2022
a792360
Make mobilecoind python able to load both root entropy and mnemonic a…
cbeck88 May 19, 2022
0331a58
Feature/candidate 1 2 sgx 2 16 (#2018)
nick-mobilecoin May 20, 2022
8ca1fb5
make test-client and fog-distro able to read keyfiles in both formats…
cbeck88 May 20, 2022
063ee07
Bump enclave security versions. (#2022)
May 20, 2022
f447891
Update Changelog and Versions (#2007)
May 20, 2022
307a5b9
Make the read_pubfile tool able to create b58 encoded files optionall…
cbeck88 May 23, 2022
66f24ff
fix a regression that prevented clients from re-attesting (#2038) (#2…
eranrund May 24, 2022
85f9def
make mobilecoind-json integration test work with root entropy account…
cbeck88 May 24, 2022
de38472
make drain accounts script handle defragmentation errors (#2035) (#2045)
cbeck88 May 25, 2022
c3963f3
iOS - TxOutContext, Amount -> MaskedAmount, Value -> Amount (#2046)
the-real-adammork May 25, 2022
51fdac4
Bump all versions to 1.2.0-pre1 (#2039)
May 26, 2022
d2718bc
CD for dynamic development environments (#2054)
jgreat May 26, 2022
b92822a
Fix grpc/json gateway service port alignment (#2065)
jgreat May 27, 2022
dafa1f6
Parameterize TransactionBuilder for Token ID (#2064)
dolanbernard May 29, 2022
9c7b449
adjust MAX_TOMBSTONE_BLOCKS constant (#2073)
cbeck88 May 31, 2022
31f140f
Final version and Changelog 1.2.0 (#2077)
Jun 1, 2022
3e5a458
build 1.2.0 without an upgrade (#2086)
jgreat Jun 3, 2022
86e0627
fix block-version 0 behavior in consensus enclave (#2088)
cbeck88 Jun 6, 2022
c27b390
Add get shared_secret & root_entropy FFIs to LibMobileCoin (#2076)
the-real-adammork Jun 6, 2022
6048ef5
Use new TokenId class to create Amount (#2092)
dolanbernard Jun 6, 2022
196ca2e
Bump all versions to 1.2.1, update changelog (#2095)
Jun 7, 2022
895ee66
use zerossl service for dev (#2109)
jgreat Jun 8, 2022
35d6095
Feature/v1.2.2 ledger from archive (#2116)
jgreat Jun 15, 2022
bd94bf2
update manual build and trigger CD build (#2143)
jgreat Jun 15, 2022
b3eb1e3
Bump all versions to 1.2.2, update changelog. (#2111)
jcape Jun 15, 2022
6e39ac5
Fix OMAP settings and adjust probe timings. (#2144)
jgreat Jun 16, 2022
071c5e3
Add bindings for CRC computation (#2149)
dolanbernard Jun 16, 2022
ec13c62
Longer startup, topology and affinity rules (#2155)
jgreat Jun 17, 2022
344bc42
SGX 2.17 in 1.2.2 (#2164)
Jun 17, 2022
3006145
Make outbuf_retry_id an in,out parameter, fix init-twice crash. (#2170)
Jun 17, 2022
06e09b3
Revert SGX 2.17 Changes (#2202)
Jun 28, 2022
e3f96a5
Watcher, standalone node_hw operational fixes. (#2266) (#2279)
Jul 20, 2022
f04e009
More changes from 1.2.3 (#2289)
Jul 21, 2022
f38fb21
Fix metadata script for new release branch patterns (#2298)
jgreat Jul 26, 2022
5ccb189
Branch and prep 2.0.0 release (#2275)
Jul 26, 2022
94dd399
Fix rust-sgx-sdk image used.
Jul 26, 2022
0f09862
Fix dockerhub ref again.
Jul 26, 2022
0285eb1
Propagate BlockVersion creation error up through the FFI, if a user t…
the-real-adammork Aug 12, 2022
23d657f
libmobilecoin changes for MobileCoin-Swift SDK transaction idempotenc…
carybakker Aug 24, 2022
9177cea
Cherrypick fog resolver changes that are required for wasm support (#…
eranrund Sep 13, 2022
e2f1c33
Cherrypick PR #2502 that made targetting wasm work (#2520)
eranrund Sep 13, 2022
9c4ceaf
Pick chain id to release-v2 (#2382)
cbeck88 Sep 15, 2022
d8ab723
Add check to mint client to ensure public address doesn't have fog (#…
cbeck88 Sep 19, 2022
26e6096
Make mobilecoind expose network fees via an API call (#2060) (#2533)
eranrund Sep 19, 2022
c8a923e
added hash-tx-file subcommand to print the hash of a mint-tx or mint-…
eranrund Sep 19, 2022
b645a9a
release/v2: [Fixes] CI/CD, chart, container - Fix consensus node boot…
jgreat Oct 4, 2022
f9f7247
Feature/cherry pick tob 4 (#2651)
wjuan-mob Oct 4, 2022
28fcf84
Make telemetry opt-in (#2193) (#2676)
Oct 7, 2022
305fbc8
Cherry-pick version bump (#2648) (#2679)
Oct 10, 2022
47b4030
improve fog ingest logging when unique constraint is violated (#2682)
cbeck88 Oct 11, 2022
c788fe6
Cherry-pick 2.1.x Changelog (#2678)
Oct 12, 2022
c372ea0
Make fog-view load blocks from postgres in batches (#2707)
cbeck88 Oct 13, 2022
b152e17
Nits from fog view db fetch pr (#2714)
cbeck88 Oct 13, 2022
a817229
release/v2 - CI/CD - change testing token to 8192 (#2731)
jgreat Oct 19, 2022
72ff6ca
must specify fee now (#2737)
jgreat Oct 20, 2022
ff04e9e
Update to SGX 2.17.1, add INTEL-SA-00657 to known advisories list. (#…
Oct 24, 2022
1cbf9f5
Bump versions to 3.0.0-pre0 (#2760)
Oct 24, 2022
0502872
Update CHANGELOG.md for 3.0.0 (#2761)
Oct 24, 2022
532c32d
release/v3.0 - CI/CD - CD on PR (#2762)
jgreat Oct 24, 2022
9617d7a
set runtime sgx package version to 2.17.100.3-focal1 (#2765)
jgreat Oct 24, 2022
fd1b3ae
V3 - CI/CD - Fix docker tags (#2770)
jgreat Oct 25, 2022
4537294
Bump enclave security versions. (#2773)
Oct 25, 2022
b22e993
Bump all versions to 3.0.0 (#2780)
Oct 26, 2022
6bb0953
Fix mob script (#2782)
Oct 26, 2022
87a3d97
use tag as the primary value in the docker tag construction (#2788)
jgreat Oct 29, 2022
df19fab
release/V3 - CD from backup (#2802)
jgreat Nov 10, 2022
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
  •  
  •  
  •  
48 changes: 41 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
version: 2.1

defaults:
builder-install: &builder-install gcr.io/mobilenode-211420/builder-install:1_26
builder-install: &builder-install mobilecoin/builder-install:v0.0.18
android-bindings-builder: &android-bindings-builder gcr.io/mobilenode-211420/android-bindings-builder:1_4
default-xcode-version: &default-xcode-version "12.0.0"
default-xcode-version: &default-xcode-version "12.5.1"

default-environment: &default-environment
# sccache config
Expand Down Expand Up @@ -218,7 +218,7 @@ commands:
- run:
name: Install Homebrew dependencies
command: |
rm '/usr/local/lib/python3.8/site-packages/six.py'
rm -f /usr/local/lib/python3.8/site-packages/six.py
brew bundle --no-upgrade

save-homebrew-cache:
Expand Down Expand Up @@ -247,7 +247,6 @@ commands:
command: |
command -v rustup >/dev/null \
|| curl https://sh.rustup.rs --tlsv1.2 -sSf | sh -s -- -y --default-toolchain stable
# Installs the toolchain specified in `rust-toolchain`
"$HOME/.cargo/bin/rustup" show active-toolchain

install-ci-deps:
Expand Down Expand Up @@ -308,11 +307,10 @@ commands:
- checkout
- when:
condition: { equal: [ << parameters.os >>, macos ] }
steps: [ restore-homebrew-cache ]
steps: [ restore-homebrew-cache, install-rust ]
- when:
condition: { equal: [ << parameters.os >>, linux ] }
steps: [ enable-postgresql ]
- install-rust
- restore-cargo-cache
- env_setup
- install-ci-deps:
Expand Down Expand Up @@ -368,6 +366,22 @@ commands:
- store_artifacts:
path: /tmp/core_dumps

run-wasm-tests:
steps:
- run:
name: Run wasm tests
command: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | bash
apt-get install -y clang-10 nodejs
CC=clang-10 wasm-pack test --node wasm-test
- run:
command: |
mkdir -p /tmp/core_dumps
cp core.* /tmp/core_dumps
when: on_fail
- store_artifacts:
path: /tmp/core_dumps

run-consensus-tests:
steps:
- run:
Expand Down Expand Up @@ -432,6 +446,7 @@ commands:
export INGEST_ENCLAVE_PRIVKEY=$(pwd)/Enclave_private.pem
export LEDGER_ENCLAVE_PRIVKEY=$(pwd)/Enclave_private.pem
export VIEW_ENCLAVE_PRIVKEY=$(pwd)/Enclave_private.pem
export MC_CHAIN_ID="local"

apt-get update && apt-get install -y python3-venv
cd tools/fog-local-network
Expand Down Expand Up @@ -470,6 +485,7 @@ commands:
export LEDGER_ENCLAVE_PRIVKEY=$(pwd)/Enclave_private.pem
export VIEW_ENCLAVE_PRIVKEY=$(pwd)/Enclave_private.pem
export MC_LOG=trace
export MC_CHAIN_ID="local"

cargo build -p mc-util-keyfile -p mc-util-generate-sample-ledger -p mc-consensus-service -p mc-ledger-distribution -p mc-admin-http-gateway -p mc-util-grpc-admin-tool -p mc-mobilecoind -p mc-crypto-x509-test-vectors -p mc-fog-distribution -p mc-fog-test-client -p mc-fog-ingest-server -p mc-fog-ingest-client -p mc-fog-view-server -p mc-fog-report-server -p mc-fog-ledger-server -p mc-fog-sql-recovery-db -p mc-consensus-mint-client -p mc-util-seeded-ed25519-key-gen --release
export FOG_AUTHORITY_ROOT=$(./target/release/mc-crypto-x509-test-vectors --type=chain --test-name=ok_rsa_head)
Expand Down Expand Up @@ -781,6 +797,19 @@ jobs:
- check-dirty-git
- post-build

# Run wasm tests on a single container
run-wasm-tests:
executor: build-executor
environment:
<<: *default-build-environment
steps:
- prepare-for-build
- run-wasm-tests
- check-dirty-git
- when:
condition: { equal: [ << pipeline.git.branch >>, master ] }
steps: [ save-sccache-cache ]

workflows:
version: 2
# Build and run tests on a single container
Expand Down Expand Up @@ -827,5 +856,10 @@ workflows:
filters: { branches: { ignore: /^deploy\/.*/ } }

# Run tests on a single container
- build-and-test-go:
# FIXME
# - build-and-test-go:
# filters: { branches: { ignore: /^deploy\/.*/ } }

# Run wasm tests on a single container
- run-wasm-tests:
filters: { branches: { ignore: /^deploy\/.*/ } }
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.git/
cargo/
target/
6 changes: 6 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
self-hosted-runner:
# Labels of self-hosted runner in array of string
labels:
- small
- large
- large-cd
31 changes: 31 additions & 0 deletions .github/actions/mobilecoin-cache-cargo-package/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Mobilecoin Cargo Package Cache
description: Standardized rust cargo package cache setup

inputs:
cache_buster:
description: "string to make cache unique"
required: false
path:
description: "path to mount cache"
required: false
default: |
/opt/cargo/git
/opt/cargo/registry/index
/opt/cargo/registry/cache

outputs:
cache-hit:
description: "did we get a cache hit?"
value: ${{ steps.rust_artifact_cache.outputs.cache-hit }}

runs:
using: composite
steps:
- name: Cache rust build binaries
id: rust_artifact_cache
uses: actions/cache@v3
with:
path: ${{ inputs.path }}
# Key is a hash of all the .rs, .proto and Cargo.toml files.
# if code changes, invalidate cache and rebuild
key: ${{ inputs.cache_buster }}-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-cargo-cache
29 changes: 29 additions & 0 deletions .github/actions/mobilecoin-cache-go-binaries/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Mobilecoin Go Binaries Cache
description: Standardized go binary cache setup

inputs:
cache_buster:
description: "string to make cache unique"
required: false
path:
description: "path to mount cache"
required: false
default: |
go_build_artifacts

outputs:
cache-hit:
description: "did we get a cache hit?"
value: ${{ steps.rust_artifact_cache.outputs.cache-hit }}

runs:
using: composite
steps:
- name: Cache rust build binaries
id: rust_artifact_cache
uses: actions/cache@v3
with:
path: ${{ inputs.path }}
# Key is a hash of all the .go, .proto and go. files.
# if code changes, invalidate cache and rebuild
key: ${{ inputs.cache_buster }}-${{ runner.os }}-${{ hashFiles('go-grpc-gateway/**/*.go', 'go-grpc-gateway/go.*', '**/*.proto') }}-go-build-artifacts
29 changes: 29 additions & 0 deletions .github/actions/mobilecoin-cache-rust-binaries/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Mobilecoin Rust Binary Cache
description: Standardized rust binary cache setup

inputs:
cache_buster:
description: "string to make cache unique"
required: false
path:
description: "path to mount cache"
required: false
default: |
rust_build_artifacts

outputs:
cache-hit:
description: "did we get a cache hit?"
value: ${{ steps.rust_artifact_cache.outputs.cache-hit }}

runs:
using: composite
steps:
- name: Cache rust build binaries
id: rust_artifact_cache
uses: actions/cache@v3
with:
path: ${{ inputs.path }}
# Key is a hash of all the .rs, .proto and Cargo.toml files.
# if code changes, invalidate cache and rebuild
key: ${{ inputs.cache_buster }}-${{ runner.os }}-${{ hashFiles('**/*.rs', '**/*.proto', '**/Cargo.toml', '**/*.edl', '.cargo/config') }}-rust-build-artifacts
27 changes: 27 additions & 0 deletions .github/actions/mobilecoin-cache-seeds/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Mobilecoin Seeds Cache
description: Standardized cache setup for seeds

inputs:
path:
description: "path to mount cache"
required: false
default: |
.tmp/seeds
cache_buster:
description: "string to make cache unique"
required: false

outputs:
cache-hit:
description: "did we get a cache hit?"
value: ${{ steps.wallet_seeds.outputs.cache-hit }}

runs:
using: composite
steps:
- name: Cache wallet seeds
id: wallet_seeds
uses: actions/cache@v3
with:
path: ${{ inputs.path }}
key: ${{ inputs.cache_buster }}-${{ github.ref_name }}-seeds
Loading