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

Full stdlib #382

Closed
wants to merge 86 commits into from
Closed
Show file tree
Hide file tree
Changes from 79 commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
0412bd2
adding the RustPython stdlib
lastmjs May 11, 2023
f12da38
major cleanup of many issues complete, ready for first round of testing
lastmjs May 12, 2023
a3530c1
Merge branch 'main' into full_stdlib
lastmjs May 12, 2023
1968c5b
update cdk_framework
lastmjs May 13, 2023
d1d66b0
the new process is working, but trying to optimize and fix auth issue…
lastmjs May 31, 2023
b0627d1
only compile the stdlib one time, python source code compiled with th…
lastmjs Jun 1, 2023
88edc82
we only compile the python stdlib lib once per version of kybra, we o…
lastmjs Jun 2, 2023
272375b
full flow seems to be working
lastmjs Jun 2, 2023
04f3c38
clean up verbose and error handling in kybra_modules_init
lastmjs Jun 2, 2023
7fbbe8d
general cleanup, use notify instead of regular call to install code
lastmjs Jun 2, 2023
ae0e518
remove comments, clean up
lastmjs Jun 2, 2023
d8b5428
clean up the deployer, make init and post_upgrade robust
lastmjs Jun 2, 2023
f9001db
add authorization to the deployer
lastmjs Jun 2, 2023
0e0905c
getting rid of the init method for now
lastmjs Jun 2, 2023
4970136
add in the network option for the kybra modules init
lastmjs Jun 2, 2023
908f9d2
get the init and post_upgrade params to work from the deployer
lastmjs Jun 3, 2023
656e944
Merge branch 'main' into full_stdlib
lastmjs Jun 3, 2023
a2c80e8
fixes after merge
lastmjs Jun 3, 2023
95b32d5
change all memory ids
lastmjs Jun 4, 2023
0d46d48
add in delays
lastmjs Jun 4, 2023
eb91d5b
fix post_upgrade args
lastmjs Jun 4, 2023
b4a864c
attemp to fix a few of the remaining tests
lastmjs Jun 4, 2023
975ec40
fix whoami tests
lastmjs Jun 4, 2023
33d5323
fix stable structures example
lastmjs Jun 4, 2023
ae47207
fixed random seed issues
lastmjs Jun 6, 2023
4d6a12a
fix stable memory tests
lastmjs Jun 6, 2023
d29050b
add KYBRA_REBUILD=true to all tests
lastmjs Jun 6, 2023
dc2805f
add dfx cache
lastmjs Jun 6, 2023
d18ddd2
remove --verbose
lastmjs Jun 6, 2023
89370ad
add the python stdlib
lastmjs Jun 6, 2023
f826cd4
Merge branch 'add_stlib_files' into full_stdlib
lastmjs Jun 6, 2023
a158ef2
update comment
lastmjs Jun 7, 2023
068585b
comment about whoami installer
lastmjs Jun 7, 2023
787e84a
remove all Promise awaits
lastmjs Jun 7, 2023
21e893c
rename kybra_modules_init to kybra_post_install and try to fix dfx cache
lastmjs Jun 7, 2023
fb96183
remove the Python stdlib source files, download them from RustPython …
lastmjs Jun 13, 2023
5599914
remove panic, fix guard function and inspect_message special cases
lastmjs Jun 13, 2023
2bc7e33
remove remaining test delays
lastmjs Jun 13, 2023
63e8ca0
use cdk_framework conditional compilation
lastmjs Jun 13, 2023
6ec25f7
fix stdout and stderr handling in post_install
lastmjs Jun 14, 2023
899c6fc
clean up the output messages during post_install
lastmjs Jun 14, 2023
4e1c071
rename INITIALIZED_MAP_REF_CELL
lastmjs Jun 14, 2023
91cd0cd
restructure kybra/bin to kybra/version
lastmjs Jun 14, 2023
e9e137a
let's make constants for the memory ids that we are using
lastmjs Jun 14, 2023
7cd83ee
change .py filtering to the bundler
lastmjs Jun 14, 2023
80e804e
only build kybra_generate once
lastmjs Jun 14, 2023
c23c6cc
change rust global directory structure
lastmjs Jun 14, 2023
110e1af
remove some comments
lastmjs Jun 14, 2023
f69cf86
fix kybra_generate typo
lastmjs Jun 14, 2023
62cf192
remove the canister as its own controller if it wasn't already its ow…
lastmjs Jun 14, 2023
adc691b
add kybra_Rebuild to Ethereum json rpc test example
lastmjs Jun 15, 2023
3a5fbd8
remove the dfinity cache for the moment, and all caching
lastmjs Jun 15, 2023
b650d3e
everything updated for ic-wasi-polyfill
lastmjs Jun 23, 2023
4af8913
update ic-wasi-polyfill to fix init/post_upgrade param panic
lastmjs Jun 23, 2023
109df6a
fix ledger canister url
lastmjs Jun 23, 2023
3b72183
add the transient feature
lastmjs Jun 23, 2023
c8abf3d
try seeing if report_wasi_calls fixes tests
lastmjs Jun 23, 2023
f8cb65d
attempt transient mode with debug outputs
lastmjs Jun 23, 2023
606a169
try out notify
lastmjs Jun 24, 2023
d83d8b6
completely remove Lib directory each time to overcome strange Lib nes…
lastmjs Jun 25, 2023
8226460
add the stdlib tests
lastmjs Jun 25, 2023
1699143
add pypi import test
lastmjs Jun 25, 2023
50e23a7
update the date tests to use stdlib datetime
lastmjs Jun 26, 2023
6f7147c
put the caches back
lastmjs Jun 26, 2023
41acb23
declarify build_wasm_binary_or_exit
lastmjs Jun 26, 2023
741a4a1
declarify run_kybra_generate_or_exit
lastmjs Jun 26, 2023
07f2b67
add unwrap_or_trap and map_err
lastmjs Jun 27, 2023
fabb72f
Merge branch 'main' into full_stdlib
lastmjs Jun 27, 2023
d4eb317
resultify and declarify the kybra deployer
lastmjs Jun 27, 2023
f6af0fb
fix vm initialization for post_upgrade
lastmjs Jun 27, 2023
1948d20
declarify and resultify post_upgrade_method/build.rs
lastmjs Jun 28, 2023
64e837e
declarify and resultify post_upgrade
lastmjs Jun 28, 2023
5aa11a1
remove unwraps from ref_cells
lastmjs Jun 28, 2023
b74e1b7
See if canister_methods_tuple should be returned to its former state.
lastmjs Jun 28, 2023
099b85e
declarify and resultiy kybra_post_install build
lastmjs Jun 28, 2023
7245529
remove fully qualified module nameS
lastmjs Jun 28, 2023
2b66acc
finish declarification of kybra_post_install
lastmjs Jun 28, 2023
650f3bc
fix ic build rust analyzer issues
lastmjs Jun 28, 2023
162fa64
fix heartbeat guard tests
lastmjs Jun 28, 2023
90f4bb1
fix directory copying issue
lastmjs Jun 29, 2023
c13cc24
add 0 check on randomness
lastmjs Jun 29, 2023
cc66d7a
abstract dfx calls
lastmjs Jun 29, 2023
369ea81
split kybra_post_install main.rs into multiple files
lastmjs Jun 29, 2023
585e871
move permissions into install_app_canister
lastmjs Jun 29, 2023
6aba0e0
change installer to option, abstract away a bit
lastmjs Jun 29, 2023
f2bd9d2
clean up a few things, add better documentation, rename, etc
lastmjs Jun 29, 2023
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
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ jobs:
"examples/simple_user_accounts",
"examples/stable_memory",
"examples/stable_structures",
"examples/stdlib",
"examples/timers",
"examples/tuple_types",
"examples/update"
Expand Down Expand Up @@ -162,13 +163,18 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
- if: ${{ needs.release-candidate-deploy.outputs.should_run_tests }}
run: DFX_VERSION=0.13.1 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)" # Find latest dfx version at https://raw.githubusercontent.com/dfinity/sdk/public-manifest/manifest.json
- if: ${{ needs.release-candidate-deploy.outputs.should_run_tests }}
uses: actions/cache@v3
with:
path: ~/.config/kybra
key: kybra-cargo-${{ hashFiles('kybra/cargotoml.py') }}
- if: ${{ needs.release-candidate-deploy.outputs.should_run_tests }}
uses: actions/cache@v3
with:
path: ~/.cache/dfinity
key: kybra-dfx-0.13.1
- if: ${{ needs.release-candidate-deploy.outputs.should_run_tests }}
run: DFX_VERSION=0.13.1 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)" # Find latest dfx version at https://raw.githubusercontent.com/dfinity/sdk/public-manifest/manifest.json
- if: ${{ needs.release-candidate-deploy.outputs.should_run_tests }}
working-directory: ${{ matrix.example_directories }}
run: curl https://pyenv.run | bash
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.editorconfig
.vscode/*
dist
kybra/compiler/kybra_post_install/src/Lib
target
build
kybra.egg-info
Expand Down
Loading