-
Notifications
You must be signed in to change notification settings - Fork 3
Spec 21 #92
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
Merged
Merged
Spec 21 #92
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
ae5e21d
chore: bump flake
steinerkelvin 2091d69
docs: improve torus substrate docstrings (#71)
aripiprazole 151076a
chore: remove old commune stuff (#80)
saiintbrisson 0e7b0c7
fix: automatically delegate weights to allocator (#81)
saiintbrisson 15ebf95
feat: add code coverage tooling & reports (#73)
devwckd ff40ef2
chore: drop substrate-fixed types (#82)
saiintbrisson 95ff1c3
chore: improve proposal and pruning coverage (#83)
saiintbrisson a546134
feat: transfer fees to treasury (#78)
devwckd c00bab0
test: improve `torus0` and `governance` pallet tests (#84)
devwckd 375bdaa
chore: new readme (#85)
saiintbrisson 2532ff7
chore: disable `cargo-llvm-cov` on flake shell (marked as broken); un…
steinerkelvin 27aab25
feat: build and push xtask cli tool to github packages (#86)
devwckd 4456ef8
feat: make xtask spec generation tasks go to stdout when no output is…
devwckd df671d1
chore: add devcontainer.json; organizer Github Action files
steinerkelvin 06ec269
feat: add cooldown and event to agent update extrinsic (#88)
devwckd 88367b8
Merge "feat: transfer fees to treasury (#78)" into dev
saiintbrisson e24e7e6
feat(permission0): initial implementation (#87)
saiintbrisson 3309fa6
feat(permission0): implement revoking by arbiters
saiintbrisson 44f90b8
feat(permission0): implement multi-sig controllers
saiintbrisson 759e79c
chore: publish autogenerated docs to github pages on push to the `mai…
devwckd 000fe75
feat: add faucet pallet (#96)
devwckd d8b2393
feat(permission0): create new curator scope (#97)
saiintbrisson 491524f
Fix the code coverage bucket URL (#98)
DaviPtrs b421a44
chore: bump spec (#99)
devwckd fc6cbdf
docs: improve documentation and add Claude Code guidance
steinerkelvin b73f239
fix(permission0): until block duration is inclusive
saiintbrisson 8e69b45
feat: enable testnet features on localnode (#101)
devwckd 1f22d1b
feat: increase faucet tokens (#102)
devwckd c6e1702
fix: ban arithmetic side effects
saiintbrisson e012a99
fix(testnet): add code substitute
saiintbrisson a926256
chore: bump spec version to 15
saiintbrisson 87cb3d3
refac(permission0): general pre-release tweaks (#103)
saiintbrisson 78a6481
feat(namespaces): initial impl (#105)
saiintbrisson 240d29b
feat: add stream emission permission editing (#104)
devwckd e94b5b1
feat(namespace): cost calculation rpc (#106)
saiintbrisson 04288e8
feat: add curator agent freezing toggling (#109)
devwckd 6de5cb2
fix(permission0): allow grantor to delegate emission to itself (#107)
saiintbrisson a94678e
docs: add testnet deploy steps doc (#94)
devwckd 10b4a0f
chore: update burn parameters (#110)
saiintbrisson a9dba2b
use Ubicloud
DaviPtrs beb3529
refac(torus0/namespace): require agent prefix (#111)
saiintbrisson d881aab
docs: document faucet usage and proof-of-work (#112)
devwckd b9f14a6
chore(permission0): accumulate distribution remainder
saiintbrisson e75b350
Merge remote-tracking branch 'main' into dev
saiintbrisson 5d79e22
fix(namespaces): prevent de-registering root (#117)
saiintbrisson 498642d
chore: final migrations tweaks (#118)
saiintbrisson 4c50421
Merge remote-tracking branch 'origin' into dev
saiintbrisson e0b999d
chore: update changelog for spec 21
saiintbrisson 7952818
chore: update claudio codigus guide
saiintbrisson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "image": "mcr.microsoft.com/devcontainers/universal:2", | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/nix:1": { | ||
| "flake": "github:nixos/nixpkgs/nixpkgs-unstable#direnv" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| * @supremesource @saiintbrisson @steinerkelvin @devwckd | ||
| * @functor-flow @saiintbrisson @steinerkelvin @devwckd | ||
|
|
||
| /.github/workflows/* @steinerkelvin @daviptrs @saiintbrisson | ||
| /docker/**/* @steinerkelvin @daviptrs @saiintbrisson |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: Build xtask cli tool Docker image | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - dev | ||
| - github-ci-test | ||
| paths: | ||
| - "xtask/**" | ||
| - ".github/workflows/build-docker-xtask.yml" | ||
| - "docker/xtask.dockerfile" | ||
|
|
||
| jobs: | ||
| docker: | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| runs-on: ubicloud-standard-2 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Docker meta | ||
| id: meta | ||
| uses: docker/metadata-action@v5 | ||
| with: | ||
| images: ghcr.io/${{ github.repository_owner }}/torus-xtask | ||
| tags: | | ||
| type=sha,prefix=,enable=true | ||
| type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Login to GitHub Container Registry | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Build and push | ||
| uses: docker/build-push-action@v5 | ||
| with: | ||
| context: . | ||
| push: true | ||
| file: ./docker/xtask.dockerfile | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: Build docs and publish to github pages | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| publish: | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| pages: write | ||
| runs-on: ubicloud-standard-2 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Rust cache | ||
| uses: Swatinem/rust-cache@v2 | ||
|
|
||
| - name: Install Rust toolchain | ||
| run: | | ||
| rustup set profile minimal | ||
| rustup show | ||
| - name: Install Protoc | ||
| uses: arduino/setup-protoc@v1 | ||
| with: | ||
| version: 3.20.1 | ||
| repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Generate Docs | ||
| run: | | ||
| cargo doc --workspace --no-deps | ||
| - name: Setup Pages | ||
| uses: actions/configure-pages@v5 | ||
|
|
||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: 'target/doc/' | ||
|
|
||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,14 @@ concurrency: | |
|
|
||
| jobs: | ||
| check: | ||
| runs-on: ubuntu-24.04-8core-bakunin | ||
| permissions: | ||
| pull-requests: write | ||
| id-token: write | ||
| pages: write | ||
| checks: write | ||
| contents: write | ||
|
|
||
| runs-on: ubicloud-standard-8 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
@@ -44,8 +51,86 @@ jobs: | |
| args: --color=always --tests -- -D warnings | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Run tests | ||
| # - name: Run tests | ||
| # env: | ||
| # RUST_BACKTRACE: 1 | ||
| # SKIP_WASM_BUILD: 1 | ||
| # run: cargo test | ||
|
|
||
| - uses: jwalton/gh-find-current-pr@v1 | ||
| id: findPr | ||
|
|
||
| - name: Extract branch name | ||
| shell: bash | ||
| run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | ||
| id: extractBranch | ||
|
|
||
| - name: Install cargo-llvm-cov | ||
| if: success() && steps.findPr.outputs.number && steps.extractBranch.outputs.branch | ||
| uses: taiki-e/install-action@cargo-llvm-cov | ||
|
|
||
| - name: Install cargo-xtask | ||
| if: success() && steps.findPr.outputs.number && steps.extractBranch.outputs.branch | ||
| run: cargo install cargo-xtask | ||
|
|
||
| - name: Generate lcov code coverage | ||
| if: success() && steps.findPr.outputs.number && steps.extractBranch.outputs.branch | ||
| run: cargo xtask coverage | ||
| env: | ||
| RUST_BACKTRACE: 1 | ||
| SKIP_WASM_BUILD: 1 | ||
| run: cargo test | ||
|
|
||
| - name: Generate coverage summary report | ||
| if: success() && steps.findPr.outputs.number && steps.extractBranch.outputs.branch | ||
| uses: irongut/[email protected] | ||
| with: | ||
| filename: target/cov.xml | ||
| badge: true | ||
| format: markdown | ||
| hide_branch_rate: false | ||
| hide_complexity: true | ||
| indicators: true | ||
| output: both | ||
|
|
||
| - name: Generate html code coverage | ||
| if: success() && steps.findPr.outputs.number && steps.extractBranch.outputs.branch | ||
| run: cargo xtask coverage --html | ||
| env: | ||
| RUST_BACKTRACE: 1 | ||
| SKIP_WASM_BUILD: 1 | ||
|
|
||
| - name: Upload html report to S3 Bucket | ||
| if: success() && steps.findPr.outputs.number && steps.extractBranch.outputs.branch | ||
| id: htmlUpload | ||
| continue-on-error: true | ||
| run: | | ||
| aws --endpoint-url $ENDPOINT s3 sync ./target/llvm-cov/html s3://$BUCKET_NAME/$BRANCH --acl public-read | ||
| echo "link=https://$BUCKET_NAME.$REGION.$ENDPOINT_DOMAIN/$BRANCH/index.html" >> $GITHUB_OUTPUT | ||
| env: | ||
| BRANCH: ${{ steps.extractBranch.outputs.branch }} | ||
| ENDPOINT: ${{ vars.COV_ENDPOINT_URL }} | ||
| BUCKET_NAME: ${{ vars.COV_BUCKET_NAME }} | ||
| AWS_ACCESS_KEY_ID: ${{ secrets.COV_AWS_ACCESS_KEY_ID }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ secrets.COV_AWS_SECRET_ACCESS_KEY }} | ||
| AWS_DEFAULT_REGION: ${{ vars.COV_DEFAULT_REGION }} | ||
| REGION: nyc3 | ||
| ENDPOINT_DOMAIN: "digitaloceanspaces.com" | ||
|
|
||
| - name: Add coverage PR report comment | ||
| if: success() && steps.findPr.outputs.number | ||
| uses: marocchino/sticky-pull-request-comment@v2 | ||
| with: | ||
| header: report | ||
| number: ${{ steps.findPr.outputs.pr }} | ||
| recreate: true | ||
| path: code-coverage-results.md | ||
|
|
||
| - name: Add coverage PR html comment | ||
| if: success() && steps.findPr.outputs.number | ||
| uses: marocchino/sticky-pull-request-comment@v2 | ||
| with: | ||
| header: html | ||
| number: ${{ steps.findPr.outputs.pr }} | ||
| recreate: true | ||
| message: | | ||
| [Detailed coverage report](${{ steps.htmlUpload.outputs.link }}) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| # Local files | ||
| *.local.* | ||
|
|
||
| # Temporary files | ||
| /tmp/ | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| { | ||
| "recommendations": [ | ||
| "streetsidesoftware.code-spell-checker", | ||
| "rust-lang.rust-analyzer" | ||
| "rust-lang.rust-analyzer", | ||
| "ryanluker.vscode-coverage-gutters" | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
❓ Verification inconclusive
Verify the custom runner label configuration.
The runner label
ubicloud-standard-16is not recognized as a standard GitHub Actions runner. If this is a custom self-hosted runner, ensure it's properly configured and consider documenting the runner requirements.🏁 Script executed:
Length of output: 87
Include the self-hosted label and document your custom runner
The workflow is currently targeting only
ubicloud-standard-16, which isn’t a GitHub-hosted runner. To ensure this job picks up your self-hosted machine and to make the requirement discoverable, update the runner label and add (or link to) documentation.• .github/workflows/build-docker-node.yml:20
self-hosted.• Docs:
ubicloud-standard-16runner.📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.7)
20-20: label "ubicloud-standard-16" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
🤖 Prompt for AI Agents