Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Oct 30, 2024
1 parent 5018006 commit 7376ed1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,23 +86,16 @@ jobs:
name: 'Property Class',
directories: './tests/property/candid_rpc/class_api'
}
- {
name: 'Property Functional',
directories: './tests/property/candid_rpc/functional_api'
}
- {
name: 'Property IC API',
directories: './tests/property/ic_api'
}
uses: ./.github/workflows/benchmark_parallel.yml
secrets:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LASTMJS_GITHUB_TOKEN: ${{ secrets.LASTMJS_GITHUB_TOKEN }}
with:
base-branch: ${{ needs.create-branch-prefix.outputs.base-branch }}
branch-prefix: ${{ needs.create-branch-prefix.outputs.branch-prefix }}
directories: ${{ matrix.benchmark_group.directories }}
exclude-dirs: ${{ needs.get-exclude-dirs.outputs.exclude-dirs }}
branch-prefix: ${{ needs.create-branch-prefix.outputs.branch-prefix }}

squash-branches:
needs: [run-benchmarks, create-branch-prefix]
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/benchmark_parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ name: Parallel Benchmark
on:
workflow_call:
inputs:
base-branch:
required: true
type: string
branch-prefix:
required: true
type: string
directories:
required: true
type: string
exclude-dirs:
required: false
type: string
default: ''
branch-prefix:
required: true
type: string

secrets:
GPG_SIGNING_KEY:
Expand All @@ -29,6 +32,8 @@ jobs:
test-infos: ${{ steps.get-test-infos.outputs.test-infos }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.base-branch }}

- id: get-test-infos
uses: ./.github/actions/get_test_infos
Expand All @@ -50,7 +55,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
ref: ${{ inputs.base-branch }}
token: ${{ secrets.LASTMJS_GITHUB_TOKEN || github.token }}

- uses: ./.github/actions/setup_node
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "azle",
"version": "0.25.0-dev.1",
"version": "0.25.0-pre-bifurcation",
"description": "TypeScript and JavaScript CDK for the Internet Computer",
"scripts": {
"typecheck": "tsc --noEmit",
Expand Down
2 changes: 1 addition & 1 deletion test/benchmarks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function updateBenchmarksForCanisters(
[canisterName]: {
previous: shouldUpdatePrevious
? acc[canisterName]?.current ?? {
version,
version: 'No previous benchmarks',
benchmarks: []
}
: acc[canisterName]?.previous,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import { runTests } from 'azle/test';

import { getTests } from './tests';

runTests(getTests());
runTests(getTests(), 'http_counter');

0 comments on commit 7376ed1

Please sign in to comment.