Skip to content

Commit

Permalink
Merge branch 'develop' into devx/edit-iota-101-create-coin
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-tortora authored Oct 30, 2024
2 parents 892f495 + 5514b64 commit 78255d6
Show file tree
Hide file tree
Showing 784 changed files with 21,705 additions and 57,108 deletions.
1 change: 0 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"iota-wallet",
"iota-explorer",
"wallet-dashboard",
"@iota/apps-ui-kit",
"apps-backend",
"@iota/core",
"@iota/apps-ui-kit",
Expand Down
13 changes: 8 additions & 5 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
/docker/ @iotaledger/l1-core-infra @iotaledger/core-node @iotaledger/devops-admin
/crates/iota-json-rpc*/ @iotaledger/l1-core-infra
/crates/iota-graphql*/ @iotaledger/l1-core-infra
/crates/iota-indexer/ @iotaledger/l1-core-infra
/crates/iota-indexer*/ @iotaledger/l1-core-infra
/crates/iota-data-ingestion*/ @iotaledger/l1-core-infra
/crates/iota-analytics-indexer/ @iotaledger/l1-core-infra

# core-node team
/crates/iota-archival/ @iotaledger/core-node
Expand All @@ -34,7 +36,6 @@

# core-consensus team
/consensus/ @iotaledger/core-consensus
/narwhal/ @iotaledger/core-consensus

# dev-tools team
/crates/iota/ @iotaledger/dev-tools
Expand Down Expand Up @@ -67,14 +68,16 @@ vercel.json @iotaledger/boxfish @iotaledger/tooling
/docs/**/vercel.json @iotaledger/devx

# CI Taskforce
/.github/actions/ @msarcev @alexsporn @thibault-martinez @DaughterOfMars @fijter @Dr-Electron
/.github/workflows/ @msarcev @alexsporn @thibault-martinez @DaughterOfMars @fijter @Dr-Electron
/.github/actions/ @msarcev @alexsporn @thibault-martinez @DaughterOfMars @Dr-Electron
/.github/workflows/ @msarcev @alexsporn @thibault-martinez @DaughterOfMars @Dr-Electron

# Protect this CODEOWNERS file, with some fallback in case of unavailability
/.github/CODEOWNERS @luca-moser @lzpap @miker83z @fijter
/.github/CODEOWNERS @luca-moser @lzpap @miker83z @alexsporn

# Scripts
/scripts/dependency_graphs/ @muXxer
/scripts/cargo_sort/ @muXxer
/scripts/generate_files/ @muXxer
/scripts/codesearch/ @muXxer
/scripts/slipstream/ @muXxer

Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ title: '[Task(*)]: release version x.y.z'
- [ ] Edit `crates/iota-open-rpc/spec/openrpc.json`
- [ ] Update `sdk/typescript/src/version.ts` (`pnpm sdk build`)
- [ ] Update `Cargo.lock` (`cargo check`)
- [ ] Update `crates/iota-framework/packages/deepbook/Move.lock`
- [ ] Update `crates/iota-framework/packages/iota-framework/Move.lock`
- [ ] Update `crates/iota-framework/packages/iota-system/Move.lock`
- [ ] Update `crates/iota-framework/packages/move-stdlib/Move.lock`
Expand Down
3 changes: 1 addition & 2 deletions .github/actions/diffs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ runs:
- "consensus/**"
- "crates/**"
- "external-crates/**"
- "narwhal/**"
- "iota-execution/**"
- "docs/examples/rust/**"
- ".github/workflows/hierarchy.yml"
Expand All @@ -37,6 +36,7 @@ runs:
- ".github/workflows/_rust_lints.yml"
- ".github/workflows/_external_rust_tests.yml"
- ".github/workflows/_cargo_deny.yml"
- "scripts/cargo_sort/cargo_sort.py"
- "Cargo.toml"
- "Cargo.lock"
- ".config/nextest.toml"
Expand All @@ -63,6 +63,5 @@ runs:
- "docker/**"
- "external-crates/**"
- "kiosk/**"
- "narwhal/**"
- "nre/**"
- "iota-execution/**"
10 changes: 0 additions & 10 deletions .github/crates-filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,6 @@ typed-store-derive:
- "crates/typed-store-derive/**"
typed-store-error:
- "crates/typed-store-error/**"
narwhal-config:
- "narwhal/config/**"
narwhal-crypto:
- "narwhal/crypto/**"
narwhal-network:
- "narwhal/network/**"
narwhal-test-utils:
- "narwhal/test-utils/**"
narwhal-types:
- "narwhal/types/**"
iota-execution:
- "iota-execution/**"
iota-execution-cut:
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/_ledgernano.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Ledgernano End-to-end Tests

on: workflow_call

concurrency:
group: ledgernano-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
ledgernano:
name: Ledgernano
runs-on: self-hosted
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # [email protected]

- name: Install Nodejs
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # [email protected]
with:
node-version: "20"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Install ledgernano dependencies
run: |
sudo apt-get install -y qemu-user-static
sudo apt-get install -y libxcb-xinerama0
sudo pip install speculos --break-system-packages
- name: Download ledgernano bin
run: |
sudo apt-get install -y gh
echo ${{ secrets.LEDGER_APP_TOKEN }} | gh auth login --with-token
gh release list --repo https://github.com/iotaledger/ledger-app-iota
gh release download --repo https://github.com/iotaledger/ledger-app-iota -p nanos.tar.gz untagged-a706a550379839d8db15
tar -xvf nanos.tar.gz
mv nanos/iota sdk/ledgerjs-hw-app-iota/tests/iota
- name: Start speculos simulator
run: speculos --api-port 5000 --display headless ./sdk/ledgerjs-hw-app-iota/tests/iota &

- name: Run TS SDK ledgernano tests
run: pnpm --filter @iota/ledgerjs-hw-app-iota test
3 changes: 1 addition & 2 deletions .github/workflows/_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,5 @@ jobs:
if: |
!cancelled() && !failure() && inputs.isRust && github.event.pull_request.draft == false
needs:
- rust-tests
- external-tests
- rust-lints
uses: ./.github/workflows/_execution_cut.yml
18 changes: 18 additions & 0 deletions .github/workflows/_rust_lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,24 @@ jobs:
- name: Check Rust formatting
run: cargo +nightly ci-fmt

cargo-sort:
if: (!cancelled() && inputs.isRust)
runs-on: [self-hosted]
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # pin@v4
- name: Check Cargo.toml format and sorting
run: |
pushd "scripts/cargo_sort"
./run.sh --skip-dprint
popd
- name: Check Cargo.toml diffs after formatting
run: |
if git status --porcelain | grep -q "Cargo.toml"; then
echo "Cargo.toml files not formatted and/or sorted properly! Please run the 'scripts/cargo_sort/run.sh' script."
git diff # Show the actual diffs
exit 1 # Fail the workflow
fi
clippy:
if: (!cancelled() && !failure() && inputs.isRust)
needs:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/_rust_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ jobs:
check-unused-deps:
name: Check Unused Dependencies (${{ matrix.flags }})
# Temporarily disabled until the nightly build bug is resolved
if: (!cancelled() && false)
if: (!cancelled())
strategy:
matrix:
flags: ["--all-features", "--no-default-features"]
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/_turborepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ jobs:
- name: (debug-before) Check SDK dist folder
continue-on-error: true
run: tree ./sdk/typescript/dist
- name: (debug) Lint
continue-on-error: true
run: pnpm turbo lint
- name: (debug-after) Check SDK dist folder
continue-on-error: true
run: tree ./sdk/typescript/dist
- name: Lint
run: pnpm turbo lint
- name: Install wasm-pack for mbf package
Expand All @@ -73,7 +67,8 @@ jobs:
- name: Build
run: pnpm turbo build
- name: Test
run: pnpm turbo test
# @iota/ledgerjs-hw-app-iota is tested separately
run: pnpm turbo test --filter '!@iota/ledgerjs-hw-app-iota'
# Pack wallet extension and upload it as an artifact for easy developer use:
- name: Wallet Extension Has Changes?
id: wallet-diff
Expand Down
98 changes: 98 additions & 0 deletions .github/workflows/_vercel_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: Vercel Deploys

on:
workflow_call:
inputs:
isExplorer:
type: boolean
required: true
isTypescriptSDK:
type: boolean
required: true
isAppsBackend:
type: boolean
required: true
isAppsUiKit:
type: boolean
required: true
isWalletDashboard:
type: boolean
required: true
shouldDeployPreview:
type: boolean
required: true
isDevelop:
type: boolean
required: true
githubRef:
type: string
required: true

concurrency:
group: ${{ github.workflow }}-${{ inputs.githubRef }}
cancel-in-progress: true

jobs:
explorer-preview:
name: Vercel Explorer Preview
if: inputs.shouldDeployPreview && inputs.isExplorer
uses: ./.github/workflows/apps_explorer_deploy.yml
secrets: inherit
with:
isProd: false

explorer-prod:
name: Vercel Explorer Production
if: inputs.isDevelop
uses: ./.github/workflows/apps_explorer_deploy.yml
secrets: inherit
with:
isProd: true

ui-kit-preview:
name: Vercel UI Kit Preview
if: inputs.shouldDeployPreview && inputs.isAppsUiKit
uses: ./.github/workflows/apps_ui_kit_deploy.yml
secrets: inherit
with:
isProd: false

ui-kit-prod:
name: Vercel UI Kit Production
if: inputs.isDevelop
uses: ./.github/workflows/apps_ui_kit_deploy.yml
secrets: inherit
with:
isProd: true

wallet-dashboard-preview:
name: Vercel Wallet Dashboard Preview
if: inputs.shouldDeployPreview && inputs.isWalletDashboard
uses: ./.github/workflows/apps_wallet_dashboard_deploy.yml
secrets: inherit
with:
isProd: false

wallet-dashboard-prod:
name: Vercel Wallet Dashboard Production
if: inputs.isDevelop
uses: ./.github/workflows/apps_wallet_dashboard_deploy.yml
secrets: inherit
with:
isProd: true

apps-backend-preview:
name: Vercel apps-backend Preview
if: inputs.shouldDeployPreview && inputs.isAppsBackend
uses: ./.github/workflows/apps_backend_deploy.yml
secrets: inherit
with:
isProd: false

apps-backend-prod:
name: Vercel apps-backend Production
if: inputs.isDevelop
uses: ./.github/workflows/apps_backend_deploy.yml
secrets: inherit
with:
isProd: true
48 changes: 0 additions & 48 deletions .github/workflows/apps-backend-production.deploy.yml

This file was deleted.

Loading

0 comments on commit 78255d6

Please sign in to comment.