Skip to content
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

Reorg examples #2326

Merged
merged 11 commits into from
Dec 17, 2024
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
50 changes: 25 additions & 25 deletions .github/actions/get_exclude_dirs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,37 +21,37 @@ runs:
shell: bash
run: |
RELEASE_ONLY_EXCLUSIONS="${{ format('
tests/end_to_end/candid_rpc/class_syntax/new
tests/end_to_end/http_server/new
examples/stable/test/end_to_end/candid_rpc/new
examples/experimental/test/end_to_end/http_server/new
') }}"

UNSTABLE_EXCLUSIONS="${{ format('
examples/basic_bitcoin
examples/bitcoin_psbt
examples/ckbtc
tests/end_to_end/candid_rpc/class_syntax/multi_deploy
tests/end_to_end/http_server/ethers_base
tests/end_to_end/http_server/http_outcall_fetch
tests/end_to_end/http_server/ic_evm_rpc
tests/end_to_end/http_server/multi_deploy
tests/property/candid_rpc/class_api/stable_b_tree_map
tests/property/candid_rpc/functional_api/stable_b_tree_map
tests/property/ic_api/performance_counter
tests/property/ic_api/instruction_counter
examples/stable/test/end_to_end/candid_rpc/multi_deploy
examples/stable/test/property/candid_rpc/stable_b_tree_map
examples/stable/test/property/ic_api/performance_counter
examples/stable/test/property/ic_api/instruction_counter
examples/experimental/demo/basic_bitcoin
examples/experimental/demo/bitcoin_psbt
examples/experimental/demo/ckbtc
examples/experimental/test/end_to_end/http_server/ethers_base
examples/experimental/test/end_to_end/http_server/http_outcall_fetch
examples/experimental/test/end_to_end/http_server/ic_evm_rpc
examples/experimental/test/end_to_end/http_server/multi_deploy
examples/experimental/test/property/candid_rpc/stable_b_tree_map
') }}"

SLOW_EXCLUSIONS="${{ format('
tests/end_to_end/candid_rpc/class_syntax/bitcoin
tests/end_to_end/candid_rpc/class_syntax/stable_structures
tests/end_to_end/candid_rpc/functional_syntax/bitcoin
tests/end_to_end/candid_rpc/functional_syntax/composite_queries
tests/end_to_end/candid_rpc/functional_syntax/ckbtc
tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls
tests/end_to_end/candid_rpc/functional_syntax/management_canister
tests/end_to_end/candid_rpc/functional_syntax/stable_structures
tests/end_to_end/http_server/autoreload
tests/end_to_end/http_server/large_files
tests/end_to_end/http_server/open_value_sharing
examples/stable/test/end_to_end/candid_rpc/bitcoin
examples/stable/test/end_to_end/candid_rpc/stable_structures
examples/experimental/test/end_to_end/candid_rpc/bitcoin
examples/experimental/test/end_to_end/candid_rpc/composite_queries
examples/experimental/test/end_to_end/candid_rpc/ckbtc
examples/experimental/test/end_to_end/candid_rpc/cross_canister_calls
examples/experimental/test/end_to_end/candid_rpc/management_canister
examples/experimental/test/end_to_end/candid_rpc/stable_structures
examples/experimental/test/end_to_end/http_server/autoreload
examples/experimental/test/end_to_end/http_server/large_files
examples/experimental/test/end_to_end/http_server/open_value_sharing
') }}"

EXCLUDE_DIRS=""
Expand Down
6 changes: 2 additions & 4 deletions .github/actions/get_test_infos/dir_to_test_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ function generateDisplayPath(path: string): string {
examples: 'ex',
property: 'prop',
end_to_end: 'e2e',
functional_syntax: 'func',
functional_api: 'func',
class_syntax: 'class',
class_api: 'class',
experimental: 'exp',
stable: 'stbl',
candid_rpc: 'crpc',
http_server: 'http',
tests: 't'
Expand Down
49 changes: 28 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,49 +91,56 @@ jobs:
fail-fast: false
matrix:
test_group:
- { name: 'Examples', directories: './examples' }
- {
name: 'Examples (Experimental)',
directories: './examples',
name: 'Stable Demo',
directories: './examples/stable/demo'
}
- {
name: 'Stable Demo (Experimental)',
directories: './examples/stable/demo',
run-experimental: true
}
- {
name: 'E2E Class',
directories: './tests/end_to_end/candid_rpc/class_syntax'
name: 'Experimental Demo',
directories: './examples/experimental/demo'
}
- {
name: 'Stable E2E CRPC',
directories: './examples/stable/test/end_to_end/candid_rpc'
}
- {
name: 'E2E Class (Experimental)',
directories: './tests/end_to_end/candid_rpc/class_syntax',
name: 'Stable E2E CRPC (Experimental)',
directories: './examples/stable/test/end_to_end/candid_rpc',
run-experimental: true
}
- {
name: 'E2E Functional',
directories: './tests/end_to_end/candid_rpc/functional_syntax'
name: 'Experimental E2E CRPC',
directories: './examples/experimental/test/end_to_end/candid_rpc'
}
- {
name: 'E2E HTTP Server',
directories: './tests/end_to_end/http_server'
name: 'Experimental E2E HTTP Server',
directories: './examples/experimental/test/end_to_end/http_server'
}
- {
name: 'Property Class',
directories: './tests/property/candid_rpc/class_api'
name: 'Stable Property CRPC',
directories: './examples/stable/test/property/candid_rpc'
}
- {
name: 'Property Class (Experimental)',
directories: './tests/property/candid_rpc/class_api',
name: 'Stable Property CRPC (Experimental)',
directories: './examples/stable/test/property/candid_rpc',
run-experimental: true
}
- {
name: 'Property Functional',
directories: './tests/property/candid_rpc/functional_api'
name: 'Experimental Property CRPC',
directories: './examples/experimental/test/property/candid_rpc'
}
- {
name: 'Property IC API',
directories: './tests/property/ic_api'
name: 'Stable Property IC API',
directories: './examples/stable/test/property/ic_api'
}
- {
name: 'Property IC API (Experimental)',
directories: './tests/property/ic_api',
name: 'Stable Property IC API (Experimental)',
directories: './examples/stable/test/property/ic_api',
run-experimental: true
}
uses: ./.github/workflows/run_test.yml
Expand Down
3 changes: 2 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export default tseslint.config(
ignores: [
'docs/**',
'the_azle_book/**',
'tests/property/candid_rpc/**/src/**',
'examples/stable/test/property/candid_rpc/**/src/**',
'examples/experimental/test/property/candid_rpc/**/src/**',
'**/.azle/**',
'**/.dfx/**',
'**/declarations/**',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { execSync } from 'child_process';
import { join } from 'path';

function pretest(): void {
linkAndInstallPatch(join('examples', 'basic_bitcoin'));
linkAndInstallPatch(
join('examples', 'experimental', 'demo', 'basic_bitcoin')
);

execSync(`dfx canister uninstall-code bitcoin_psbt || true`, {
stdio: 'inherit'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"azle": "0.24.1"
},
"devDependencies": {
"ckbtc_end_to_end_test_functional_syntax": "file:../../tests/end_to_end/candid_rpc/functional_syntax/ckbtc"
"ckbtc_end_to_end_test_functional_syntax": "file:../../test/end_to_end/candid_rpc/ckbtc"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ import { join } from 'path';

function pretest(): void {
linkAndInstallPatch(
join('tests', 'end_to_end', 'candid_rpc', 'functional_syntax', 'ckbtc')
join(
'examples',
'experimental',
'test',
'end_to_end',
'candid_rpc',
'ckbtc'
)
);

uninstall(
Expand Down
Loading
Loading