Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
68525d9
Unignore alpha fee tests
gztensor Jan 8, 2026
7481c9a
Real swap when withdrawing alpha tx fees
gztensor Jan 8, 2026
01c8dff
fmt
gztensor Jan 8, 2026
b5416fe
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Jan 12, 2026
136f007
Add drafty storage items for high precision alpha share pool
gztensor Jan 12, 2026
4c8cf2a
Add bigmath for share pool
gztensor Jan 15, 2026
1d4221f
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Jan 15, 2026
49dc08b
Make SafeFloat exponent work like m*10^e, allow negative exponents
gztensor Jan 15, 2026
3716b0c
Fix safe float max exp type
gztensor Jan 15, 2026
054abb1
Update lencode
gztensor Jan 15, 2026
b523ff7
Fix safefloat addition and mantissa normalization, add tests
gztensor Jan 15, 2026
2151c1f
Add more test cases for safefloat add tests
gztensor Jan 15, 2026
e138732
fmt
gztensor Jan 15, 2026
f616e11
Add more test cases for safefloat add
gztensor Jan 16, 2026
cbb41d1
Add safefloat tests for div and mul_div
gztensor Jan 16, 2026
60f7153
Handle overflows in safefloat
gztensor Jan 16, 2026
9360f92
fmt
gztensor Jan 16, 2026
b54f38d
Add THS and Alpha migration and the test
gztensor Jan 16, 2026
22e2538
Test actual coldkey alphas in share pool migration
gztensor Jan 16, 2026
2883569
Add real-life scenario test when 7 TAO was lost due to precision loss…
gztensor Jan 16, 2026
323e0f3
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Jan 16, 2026
1206016
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Jan 19, 2026
36af1d8
fix zstd error
sam0x17 Jan 19, 2026
d690e6b
Update llvm installation instructions in readme
gztensor Jan 20, 2026
dbbc3a9
Fix test_sets_a_lower_value_clears_small_nominations
gztensor Jan 21, 2026
0ce0a19
Fix test_recycle_precision and test_burn_precision
gztensor Jan 22, 2026
a6a624e
Fix test_share_based_staking_denominator_precision
gztensor Jan 22, 2026
aaeaf16
Fix test_remove_99_9991_per_cent_stake_removes_all
gztensor Jan 22, 2026
d83f8a4
Fix test_coldkey_delegations
gztensor Jan 22, 2026
6154251
Fix clippy
gztensor Jan 22, 2026
4b19e1a
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Jan 22, 2026
282cbf5
Spec version bump
gztensor Jan 22, 2026
919dc1b
Add lazy migration and fix remaining tests
gztensor Jan 22, 2026
d517a2f
Remove fn alpha_iter_keys
gztensor Jan 23, 2026
daf0b54
Fix get_alpha_staked_validators precompile, fix swapping alpha in swa…
gztensor Jan 23, 2026
cba4f41
Add alpha/ths v2 tests for swap hotkey
gztensor Jan 23, 2026
b4ba4a3
Add tests for real (non-mock) sharepool data operations
gztensor Jan 23, 2026
5457035
Fix clippy
gztensor Jan 23, 2026
36b3bc1
Use sfser_from_u64 in tests
gztensor Jan 23, 2026
d7f8ac9
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Jan 26, 2026
ace8198
Deduplicate alpha values in getters
gztensor Jan 26, 2026
e60183a
Move zstd patches out to a separate repo
gztensor Jan 28, 2026
5d9d3bb
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Jan 28, 2026
5b4b8c2
Remove unused imports
gztensor Jan 28, 2026
2c12f25
Add TODO reminder for populate_root_coldkey_staking_maps_v2 removal
gztensor Jan 28, 2026
314f443
spec bump
gztensor Jan 28, 2026
472c923
Integration with balancer
gztensor Feb 2, 2026
0214730
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Feb 2, 2026
0bf0cda
Spec bump
gztensor Feb 2, 2026
ffeba36
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Feb 3, 2026
96b3f80
Merge devnet-ready
gztensor Feb 5, 2026
4898c13
Cleanup merge
gztensor Feb 5, 2026
af77dd4
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Feb 12, 2026
62ee40d
Merge cleanup
gztensor Feb 13, 2026
97be3d2
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Feb 13, 2026
b210097
Add alpha fee event and alpha fee bookkeeping tests
ppolewicz Feb 17, 2026
418d607
Format transaction-fee alpha fee merge resolution
ppolewicz Feb 17, 2026
2c3eb2a
Replace synthetic alpha-fee event test with real extrinsic assertions
ppolewicz Feb 18, 2026
9d07ad9
add drand precompile
open-junius Feb 19, 2026
961b6f6
add unit test
open-junius Feb 19, 2026
eff67f4
bump version
open-junius Feb 19, 2026
348ea26
fix lint
open-junius Feb 19, 2026
d11f6ae
remove unused dependencyies
open-junius Feb 19, 2026
fae6717
update unit test with real value
open-junius Feb 19, 2026
36e4068
commit Cargo.lock
open-junius Feb 19, 2026
4efcdd6
commit Cargo.lock
open-junius Feb 19, 2026
471cfd4
commit Cargo.lock
open-junius Feb 19, 2026
476745c
commit Cargo.lock
open-junius Feb 19, 2026
1d83e0e
fix e2e test
open-junius Feb 19, 2026
646897e
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Feb 19, 2026
d0bbcc8
Cleanup merge, tests failing
gztensor Feb 19, 2026
3d5310c
Fix tests and clippy
gztensor Feb 19, 2026
9bb4853
Apply freeze_struct to SafeFloatSerializable
gztensor Feb 19, 2026
5001582
Credit tao swapped from alpha fees to block author
gztensor Feb 20, 2026
5105316
Fix benchmarks
gztensor Feb 20, 2026
168a50d
Spec bump
gztensor Feb 20, 2026
4df4fd6
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Feb 27, 2026
3b26b88
Cleanup merge, still in progress
gztensor Feb 27, 2026
7812e6b
fix runtime version
open-junius Mar 2, 2026
1f57133
Merge branch 'devnet-ready' into drand_precompile
open-junius Mar 3, 2026
51c95be
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Mar 5, 2026
abb1143
bump version
open-junius Mar 6, 2026
de44a5c
Add broad range tests for SafeFloat
gztensor Mar 6, 2026
8cb0809
Cleanup patches
gztensor Mar 9, 2026
d1dced9
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Mar 9, 2026
fcc7624
Fix build and clippy
gztensor Mar 9, 2026
2d590fc
merge with devnet ready
open-junius Mar 10, 2026
8deddfe
Spec bump
gztensor Mar 10, 2026
68b257f
Patch weights
gztensor Mar 10, 2026
eca6feb
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Mar 10, 2026
f34447f
Add build-test-clone subcommand
ales-otf Mar 10, 2026
0652bcc
Add tests
ales-otf Mar 10, 2026
c14c81d
Merge branch 'devnet-ready' into feature/build-test-clone
ales-otf Mar 10, 2026
b9b0e7a
Clean up
ales-otf Mar 10, 2026
f081968
Implement SafeFloat with U256
gztensor Mar 10, 2026
23bb80a
Remove zstd from dependencies
gztensor Mar 11, 2026
2b78032
Remove --history-backfill from export-state stage in build-test-clone
ales-otf Mar 11, 2026
902bd71
Use authority keys generation helpers in clone spec
ales-otf Mar 11, 2026
92b4478
- Added the initial setup for ts-testing
evgeny-s Mar 6, 2026
31bb03e
- Fixed manual sealing for aura consensus
evgeny-s Mar 9, 2026
9dc9db6
- Added remove stake test
evgeny-s Mar 9, 2026
3a9421f
- Updated gigignore
evgeny-s Mar 9, 2026
e5209d3
Reverted fees change
evgeny-s Mar 11, 2026
a94b3ca
- fmt
evgeny-s Mar 11, 2026
e85979d
- docs
evgeny-s Mar 11, 2026
abf2fd4
Patch weights
gztensor Mar 11, 2026
d5506e8
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Mar 11, 2026
99e509d
Cleanup merge
gztensor Mar 11, 2026
ba8869b
Patch weights, bump spec
gztensor Mar 12, 2026
59736cb
Propagate history-backfill down to import_block
ales-otf Mar 11, 2026
d4ea945
Add a comment where we false filling block gaps
ales-otf Mar 12, 2026
a84b62a
Rename build-test-clone to build-patched-spec
ales-otf Mar 12, 2026
8d4c06b
Document clone_spec module
ales-otf Mar 12, 2026
c873cad
Bump spec version
ales-otf Mar 12, 2026
6147e98
auto-update benchmark weights
github-actions[bot] Mar 12, 2026
7763927
Bump spec version
ales-otf Mar 12, 2026
946dc03
Resolve git conflicts
ales-otf Mar 12, 2026
0815804
- Added CI, simulated current e2e setup
evgeny-s Mar 13, 2026
b6d1a6a
- fix CI
evgeny-s Mar 13, 2026
3d407f2
- Removed unused
evgeny-s Mar 13, 2026
506d025
- remove unused
evgeny-s Mar 13, 2026
f4b4a21
Merge pull request #2489 from opentensor/feature/build-test-clone
sam0x17 Mar 13, 2026
d6b24fd
- Adapted add_stake test from e2e folder
evgeny-s Mar 13, 2026
e687d43
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor Mar 13, 2026
34df60c
- Adapted add_stake test from e2e folder
evgeny-s Mar 16, 2026
369a319
Merge pull request #2353 from opentensor/feat/re-enable-alpha-fees
sam0x17 Mar 16, 2026
58311c6
bump version
open-junius Mar 17, 2026
e80e5ee
- Adapted shield tests from e2e folder
evgeny-s Mar 17, 2026
9bc6722
- Fixed warning
evgeny-s Mar 17, 2026
6e57589
Merge branch 'devnet-ready' into e2e-tests-moonwall
evgeny-s Mar 17, 2026
12915f1
- Added types generation as a part of zombienet script
evgeny-s Mar 17, 2026
00d3ba7
- make optional to prevent install failure
evgeny-s Mar 17, 2026
d9abd0b
- Fixed test for new alpha format
evgeny-s Mar 17, 2026
d05d906
- fixed arg
evgeny-s Mar 17, 2026
19c617e
- Replaced getStake function
evgeny-s Mar 17, 2026
7843ceb
- Improved transaction processing
evgeny-s Mar 17, 2026
c496e9b
fix staking in e2e
open-junius Mar 18, 2026
e4ccc3f
Add balances to validators on chainspec clone.
shamil-gadelshin Mar 18, 2026
9274d30
- Added runtime check
evgeny-s Mar 18, 2026
511e6e0
revert at first
open-junius Mar 18, 2026
0ee897e
use alpha v2 as stake
open-junius Mar 18, 2026
493c2aa
use alplha v2
open-junius Mar 18, 2026
fd7f751
- fixed path
evgeny-s Mar 18, 2026
804932e
- Fixed pnpm version issue
evgeny-s Mar 18, 2026
d2fc327
use alpha v2
open-junius Mar 19, 2026
1306126
fix e2e staking
open-junius Mar 19, 2026
de8eba3
Refactor spec clone update.
shamil-gadelshin Mar 19, 2026
9830372
- Fixed manual sealing for aura
evgeny-s Mar 19, 2026
af89e3c
- fmt
evgeny-s Mar 19, 2026
af99f86
Merge pull request #2508 from opentensor/fix-staking-e2e
open-junius Mar 19, 2026
18d0097
Merge branch 'devnet-ready' into e2e-tests-moonwall
evgeny-s Mar 19, 2026
35d9702
update rustc and srtool image for script
camfairchild Mar 19, 2026
01146f4
Merge pull request #2520 from latent-to/fix/srtool-bump-rustc-1.89.0-…
sam0x17 Mar 19, 2026
845536d
- Revert papi instead of polkadotJS connector type.
evgeny-s Mar 19, 2026
89ac174
Merge branch 'testnet' into testnet-into-devnet-ready-19-03-2026
l0r1s Mar 19, 2026
d1db96a
Merge branch 'devnet-ready' into manual-sealing-for-aura-fix
evgeny-s Mar 19, 2026
e40090e
Merge pull request #2523 from opentensor/testnet-into-devnet-ready-19…
sam0x17 Mar 19, 2026
00def43
Merge branch 'devnet-ready' into manual-sealing-for-aura-fix
evgeny-s Mar 19, 2026
b6085e1
Merge branch 'devnet-ready' into e2e-tests-moonwall
evgeny-s Mar 19, 2026
fe74d6a
Merge pull request #2516 from opentensor/manual-sealing-for-aura-fix
open-junius Mar 20, 2026
a0c581a
Merge branch 'devnet-ready' into e2e-tests-moonwall
evgeny-s Mar 20, 2026
d063ee2
- Removed e2e folder
evgeny-s Mar 20, 2026
d46a22c
- Improve CI flow
evgeny-s Mar 20, 2026
471ff77
- fixed trap
evgeny-s Mar 20, 2026
608533b
Merge branch 'devnet-ready' into drand_precompile
open-junius Mar 20, 2026
34e4b25
Merge pull request #2445 from opentensor/drand_precompile
sam0x17 Mar 20, 2026
ace5cfc
Merge pull request #2491 from opentensor/e2e-tests-moonwall
sam0x17 Mar 20, 2026
03c5272
Merge branch 'devnet-ready' into update-chainspec-clone-command
shamil-gadelshin Mar 20, 2026
8752253
Update node/Cargo.toml
shamil-gadelshin Mar 20, 2026
e9f6006
Update node/Cargo.toml
shamil-gadelshin Mar 20, 2026
dffe692
add metadata-hash to features
basfroman Mar 23, 2026
ab0cb2e
bumping spec version
basfroman Mar 23, 2026
fb99d4e
Merge pull request #2528 from opentensor/feat/roman/add-metadata-hash…
sam0x17 Mar 23, 2026
bfd40d3
revert pr 2445
open-junius Mar 23, 2026
01ec40e
commit Cargo.lock
open-junius Mar 23, 2026
d383748
bump version
open-junius Mar 23, 2026
4aa41cc
Merge remote-tracking branch 'origin/main' into devnet-ready
sam0x17 Mar 23, 2026
b80c12b
Introduce eco-tests
shamil-gadelshin Mar 20, 2026
c1b950f
Make eco-tests separate
shamil-gadelshin Mar 24, 2026
eb332da
Merge pull request #2510 from opentensor/update-chainspec-clone-command
sam0x17 Mar 24, 2026
598d209
fix: ensure generate-types.sh exits with code 0 after cleanup
evgeny-s Mar 24, 2026
ac6ec70
Merge pull request #2534 from opentensor/improve-e2e-types-generation
sam0x17 Mar 24, 2026
3feb9d2
Merge pull request #2531 from opentensor/revert-pr-2445
open-junius Mar 25, 2026
b3b5ca7
Add eco-tests workflow.
shamil-gadelshin Mar 25, 2026
d244bad
Apply github copilot suggestion.
shamil-gadelshin Mar 25, 2026
7d55631
Merge branch 'devnet-ready' into eco-tests
shamil-gadelshin Mar 25, 2026
3708f42
Merge pull request #2526 from opentensor/eco-tests
sam0x17 Mar 25, 2026
23d2cce
Add /fix and /ship Claude Code skills for automated lint, test, and s…
ppolewicz Mar 8, 2026
093a7fa
Fix skills location
ppolewicz Feb 12, 2026
90fb2ed
Distill fix/ship skill descriptions and opening guidance
ppolewicz Mar 25, 2026
148287c
hand-tweak /fix and /format
ppolewicz Mar 25, 2026
b93f415
hand-tweak /ship
ppolewicz Mar 27, 2026
de5a77d
Add CLAUDE.md
ppolewicz Mar 27, 2026
331f4e4
tweak CLAUDE.md
ppolewicz Mar 27, 2026
9e63c49
fix: validate hotkey registration on specific subnet in serve_axon an…
ppolewicz Mar 28, 2026
b39745b
fix: use plain arithmetic in test (safe math is banned in tests)
ppolewicz Mar 28, 2026
92d114c
fix(serving): remove redundant validate_axon_data call; move registra…
ppolewicz Mar 29, 2026
edda939
fix(review): return AxonInfoOf from validate_serve_axon; fix log targ…
ppolewicz Mar 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .claude/skills/fix/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: fix
description: Commit current changes, run Rust autofix/lint/format, run pallet-subtensor tests, amend with any fixes.
---

# Fix Skill

Create or reuse one commit, run the Rust fix pipeline in order, run unit tests, and fold all resulting changes into that same commit.

## Steps

1. Run /format
2. In a subagent (subagent_type: `general-purpose`, model: `sonnet`) run:
- `cargo test -p pallet-subtensor --lib` and capture full output
- If any tests fail, analyze the failures
- Read the failing test code AND the source code it tests
- Determine the root cause
- Apply fixes using Edit tools
- Re-run the tests to confirm the fix works
- After fixing, if there are further failures, repeat (up to 3 fix-and-retest cycles)
- Summarize:
- Which tests failed, if any
- What was fixed and how
- Whether all tests pass now
3. Amend commit with test fixes, if any, then /format
4. Run `git show -s` for user to review

## Important

- Do NOT run `scripts/fix_rust.sh` — let /format take care of it
- Do NOT skip any steps
- The test subagent must fix source code to make tests pass, NOT modify tests to make them pass (unless the test itself is clearly wrong)
- If the test subagent cannot fix all failures after 3 cycles, it must return the remaining failures so the main agent can report them to the user
25 changes: 25 additions & 0 deletions .claude/skills/format/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: format
description: Commit current changes, run Rust autofix/lint/format, amend with any fixes.
---

# Format Skill

Create or reuse one commit, run the Rust fix pipeline in order and fold all resulting changes into that same commit.

## Steps

1. Stage all changes and create a commit with a descriptive message summarizing the changes (unless there are none)
2. Do this:
a. Run `cargo check --workspace`
b. Run `cargo clippy --fix --workspace --all-features --all-targets --allow-dirty`
c. Run `cargo fix --workspace --all-features --all-targets --allow-dirty`
d. Run `cargo fmt --all`
e. Amend the commit with any changes
3. Run `git show -s` for user to review

## Important

- If a fix tool fails in step 2, stop and report the error to the user rather than continuing
- Do NOT run `scripts/fix_rust.sh` itself — run the individual commands listed above instead
- Do NOT skip any steps
77 changes: 77 additions & 0 deletions .claude/skills/ship/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
name: ship
description: Ship current branch end-to-end: run /fix, push, open/update PR, triage CI failures, then deliver review findings for approval.
---

# Ship Skill

Ship the branch through CI and review without force-pushes, and never apply review fixes without explicit user approval.

Run the following skill in a subagent to prevent context pollution. Make the subagent return a short summary to the main agent.

1. Run `/fix`
2. Push the branch to origin
3. Create a PR with a comprehensive description if none exists yet
- Update the description if PR exists already
- Add label `skip-cargo-audit` to the PR
4. Poll CI status in a loop:
- Run: `gh pr checks --json name,state,conclusion,link --watch --fail-fast 2>/dev/null || gh pr checks`
- If `--watch` is not available, poll manually every 90 seconds using `gh pr checks --json name,state,conclusion,link` until all checks have completed (no checks with state "pending" or conclusion "").
- **Ignore these known-flaky/irrelevant checks** — treat them as passing even if they fail:
- `validate-benchmarks` (benchmark CI — not relevant)
- Any `Contract E2E Tests` check that failed only due to a timeout (look for timeout in the failure link/logs)
- `cargo-audit`
5. **If there are real CI failures** (failures NOT in the ignore list above):
- For EACH distinct failing check, launch a **separate Task subagent** (subagent_type: `general-purpose`, model: `sonnet`) in parallel. Each subagent must:
- Fetch the failed check's logs: use `gh run view <run-id> --log-failed` or the check link to get failure details.
- Investigate the root cause by reading relevant source files.
- Return a **fix plan**: a description of what needs to change and in which files, with specific code snippets showing the fix.
- **Wait for all subagents** to return their fix plans.
6. **Aggregate and apply fixes**:
- Review all returned fix plans for conflicts or overlaps.
- Apply the fixes using Edit/Write tools.
- Invoke the /fix skill
- `git push`
7. **Re-check CI**: Go back to step 4 and poll again. Repeat the fix cycle up to **3 times**. If CI still fails after 3 rounds, report the remaining failures to the user and stop.
8. **Once CI is green** (or only ignored checks are failing), perform a thorough code review.
- **Launch a single Opus subagent** (subagent_type: `general-purpose`, model: `opus`) for the review:
- It must get the full PR diff: `git diff main...HEAD`.
- It must read every changed file in full.
- It must produce a numbered list of **issues** found, where each issue has:
- A unique sequential ID (e.g., `R-1`, `R-2`, ...).
- **Severity**: critical / major / minor / nit.
- **File and line(s)** affected.
- **Description** of the problem.
- The review must check for: correctness, safety (no panics, no unchecked arithmetic, no indexing), edge cases, naming, documentation gaps, test coverage, and adherence to Substrate/Rust best practices.
- Return the full list of issues.
9. **For each issue**, run fix designer then fix reviewer in sequence; run all issues concurrently with each other:
- **Fix designer** (subagent_type: `general-purpose`, model: `sonnet`): Given the issue description and relevant code context, design a concrete proposed fix with exact code changes (old code -> new code). Return the fix as a structured plan.
- **Fix reviewer** (subagent_type: `general-purpose`, model: `opus`): Given the issue description, the relevant code context, and the proposed fix (once the fix designer returns — so the reviewer runs AFTER the designer, but reviewers for different issues run in parallel with each other). The reviewer must check:
- Does the fix actually solve the issue?
- Does it introduce new problems?
- Is it the simplest correct fix?
- Return: approved / rejected with reasoning.

Implementation note: For each issue, first launch the fix designer. Once the fix designer for that issue returns, launch the fix reviewer for that issue. But all issues should be processed in parallel — i.e., launch all fix designers at once, then as each designer returns, launch its corresponding reviewer. You may batch reviewers if designers finish close together.

10. **Report to user**: Present a formatted summary:
```
## Code Review Results

### R-1: <title> [severity]
**File**: path/to/file.rs:42
**Issue**: <description>
**Proposed fix**: <summary of fix>
**Review**: Approved / Rejected — <reasoning>

### R-2: ...
```
Ask the user which fixes to apply (all approved ones, specific ones by ID, or none).

## Important Rules

- Never force-push. Always use regular `git push`.
- All CI polling must have a maximum total wall-clock timeout of 45 minutes. If CI hasn't finished by then, report current status and stop waiting.
- When fetching CI logs, use a subagent to isolate the relevant part. If `gh run view` output is very long, focus on the failed step output only.
- Do NOT apply code review fixes automatically — always present them for user approval first.
- Use HEREDOC syntax for PR body and commit messages to preserve formatting.
4 changes: 0 additions & 4 deletions .github/e2e.yml

This file was deleted.

43 changes: 40 additions & 3 deletions .github/workflows/eco-tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,47 @@
name: eco-tests

permissions:
contents: read

concurrency:
group: eco-tests-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
placeholder:
runs-on: ubuntu-latest
eco-tests:
name: cargo test (eco-tests)
runs-on: [self-hosted, type-ccx43]
env:
RUST_BACKTRACE: full
SKIP_WASM_BUILD: 1
steps:
- run: echo "ok"
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get install -y --no-install-recommends -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" build-essential clang curl git make libssl-dev llvm libudev-dev protobuf-compiler pkg-config

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2
with:
key: eco-tests
cache-on-failure: true
workspaces: eco-tests

- name: cargo test
working-directory: eco-tests
run: cargo test
47 changes: 47 additions & 0 deletions .github/workflows/scheduled-smoke-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Scheduled Smoke Tests

on:
schedule:
- cron: '0 */6 * * *'

env:
CARGO_TERM_COLOR: always

permissions:
contents: read

jobs:
run-smoke-tests:
runs-on: [self-hosted, type-ccx33]
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
include:
- test: smoke_mainnet
- test: smoke_testnet

name: "smoke-e2e-${{ matrix.test }}"

steps:
- name: Check-out repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ts-tests/.nvmrc

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Install e2e dependencies
working-directory: ts-tests
run: pnpm install --frozen-lockfile

- name: Run smoke test
working-directory: ts-tests
run: pnpm moonwall test ${{ matrix.test }}
Loading
Loading