Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/scripts/load-test-ref.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
REF=fdcee27ec509564d9330382cad6200101ac61cee
REF=6129da00879bbb2831ef01588604fbade1ec197a

echo "TEST_VECTORS_REF=$REF" >> "$GITHUB_ENV"
32 changes: 15 additions & 17 deletions .github/workflows/build-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ name: Build - Lint & Test

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
merge_group:
branches: ["main"]

jobs:
test:
Expand All @@ -16,17 +15,16 @@ jobs:
node-version: [22.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run qa
- run: npm test
- run: GP_VERSION=0.6.7 npm test
- run: GP_VERSION=0.7.0 npm test
- run: GP_VERSION=0.7.1 npm test
- run: GP_VERSION=0.7.2 npm test
- run: npm run docs
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run qa
- run: npm test
- run: GP_VERSION=0.7.0 npm test
- run: GP_VERSION=0.7.1 npm test
- run: GP_VERSION=0.7.2 npm test
- run: npm run docs
51 changes: 0 additions & 51 deletions .github/workflows/vectors-jamduna-067.yml

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/vectors-javajam.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: VECTORS - w3f-0.6.7
name: VECTORS - w3f-0.7.0

on:
workflow_dispatch:
Expand All @@ -12,7 +12,7 @@ concurrency:

env:
TEST_VECTORS_REF: ffffffffffffffffffffffffffffffffffffffff # loaded in scripts/load-test-ref.sh
GP_VERSION: 0.6.7
GP_VERSION: 0.7.0

jobs:
run:
Expand Down Expand Up @@ -40,14 +40,14 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm start -w @typeberry/test-runner -- w3f.ts
- run: npm start -w @typeberry/test-runner -- w3f-070.ts
- name: Display results
if: always()
run: cat ./dist/w3f.txt
run: cat ./dist/w3f-070.txt
- name: Upload new transaction log
if: failure()
uses: actions/upload-artifact@v4
with:
path: |
./dist/w3f.txt
./dist/w3f-070.txt
name: jamtestvectors-results
53 changes: 0 additions & 53 deletions .github/workflows/vectors-w3f-davxy-067.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ the submitted code. By creating the PR you accept this requirement.**

Gray Paper compliance can be controlled via `GP_VERSION` environment variable.

- [x] 0.6.7
- [x] 0.7.0
- [x] 0.7.1
- [x] 0.7.2
Expand Down
24 changes: 0 additions & 24 deletions bin/test-runner/jamduna-067.ts

This file was deleted.

6 changes: 1 addition & 5 deletions bin/test-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,12 @@
},
"scripts": {
"start": "tsx --test-timeout=900000 ./index.ts",
"w3f:0.6.7": "GP_VERSION=0.6.7 tsx ./w3f.ts",
"w3f:0.7.1": "GP_VERSION=0.7.1 tsx ./w3f.ts",
"w3f-davxy:0.6.7": "GP_VERSION=0.6.7 tsx ./w3f-davxy-067.ts",
"w3f:0.7.0": "GP_VERSION=0.7.0 tsx ./w3f-070.ts",
"w3f-davxy:0.7.0": "GP_VERSION=0.7.0 tsx ./w3f-davxy-070.ts",
"w3f-davxy:0.7.1": "GP_VERSION=0.7.1 tsx ./w3f-davxy-071.ts",
"w3f-davxy:0.7.2": "GP_VERSION=0.7.2 tsx ./w3f-davxy-072.ts",
"jam-conformance:0.7.0": "GP_VERSION=0.7.0 tsx ./jam-conformance-070.ts",
"jam-conformance:0.7.1": "GP_VERSION=0.7.1 tsx ./jam-conformance-071.ts",
"jamduna:0.6.7": "GP_VERSION=0.6.7 TEST_SUITE=jamduna tsx ./jamduna-067.ts",
"javajam:0.6.7": "GP_VERSION=0.6.7 tsx ./javajam.ts",
"test": "tsx --test $(find . -type f -name '*.test.ts' | tr '\\n' ' ')"
},
"author": "Fluffy Labs",
Expand Down
27 changes: 27 additions & 0 deletions bin/test-runner/w3f-070.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { logger, main, parseArgs } from "./common.js";
import { runners } from "./w3f/runners.js";

main(runners, "test-vectors/w3f-070", {
...parseArgs(process.argv.slice(2)),
patterns: [".json"],
ignored: [
"genesis.json",

// TODO: Unrecognized test case
"erasure/",

// TODO: Expected values to be strictly deep-equal
"trie/",

// Invalid test cases
// Tests case uses json structure from v0.7.1+
// Unrecognized test case
"codec/tiny/work_package.json",
"codec/full/work_package.json",
],
})
.then((r) => logger.log`${r}`)
.catch((e) => {
logger.error`${e}`;
process.exit(-1);
});
Loading
Loading