Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* dupn 1 -> dup (and misc) * const * adding comments * fix off-by-one-error * passing CI 🤞 * line number assertion off-by-1 * @pytest.mark.serial * minor * Update pyteal/ast/router.py Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * renaming i to something meaningful * build program API change * remove old comments * or none Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * taking with minor mods * renaming and comments * function bundle things * type casting * test _failing_ on master * wip * unit test done * stateful bug * lint * is this the bug that's been bugging me for almost a year? * Update pyteal/ast/router.py * does finally finally fix the bug? * lint * i think this works... * 🤞 * lint and re-sort imports * revert * Update pyteal/ast/router_test.py * oops - remove integration tests that snuck into unit tests * revive skipped tests in tests/unit/sourcemap_monkey_unit_test.py * manual merge * Update .gitignore * reorder * wip * small improvments e.g. better PC column output * fine grained control over sync/asyn of unit and integration tests * finally all merged * threading the synchronous tesst needle * don't need notebooks * remove mistakenly checked in files * Update .flake8 * sort lines * hide build program method in router * fix doc error * Zeph's sick move * enforce "_root_expr" for members and "root_expr" everywhere else * Refactoring non-idempotent fix with contextmanager a bit (#649) * minor, refactoring a bit * renaming * bring in `test_constructs()` passing in `source-mapper-that-works` * back to square 1.5 * actions -> as_list * deleting obsolete test * mostly just formatting * remove comments * add 3rd case to test_build_program_clear_state_invalid_config * Update pyteal/ast/router.py Co-authored-by: Hang Su <87964331+ahangsu@users.noreply.github.com> * minor refactoring * small changes to monkey unit test * passing tests hopefully (at least on 3.11) * Update pyteal/ast/router.py Co-authored-by: Hang Su <87964331+ahangsu@users.noreply.github.com> * Apply suggestions from code review * should pass the docs build -even if haven't properly updated them * Update pyteal/stack_frame_test.py * unskip the weak idempotence reliant tests * begone `source_inference` and `hybrid_source` params * begone `source_inference` and `hybrid_source` params * refactor part 1) CompileResults with safe data * refactor part 2) RouterResults with safe data * move SourceMapDisabledError up into errors.py * side-effectless infer method * small cleanup * unify source mapper outputs in `PyTealSourceMap` type * make `Compilation.compile()` kw-only * small cleanup/fixes * remove comment * comment StackFrames + reorder params + reformat * more comments + remove unused method + reduce the chance of a false positive in _frame_info_is_right_before_core * remove StackFrames' `keep_one_frame_only` param and privatize the `_keep_all` param * StackFrames ought not be subscriptable * remove unused StackFrames.frame_infos method * Privatizing StackFrames._frames * StackFrames becomes NatalStackFrame * pass the unit test * commentary * remove unused const _PYTEAL_FRAME * R3SourceMap commentary * fixture for source map integration tests * non-controversial changes * rename to what the test expects * commentary * Simplify NatalStackFrame's constructor while maintaining green tets * hard code the logic and set last_drop_idx=1, but introduce unit test_frame_info_is_right_before_core_last_drop_idx to guard against regressions * fix unit test now that _keep_all init param is gone * commentary * commentary * make sourcemap-coverage * EOL * BareCallActions.asdict|list * algokit "ruff"s up sourcemap.py * bad merge * removing ignoreExprEquality context * minor, index_start_from * remove dupe test_bare_call_actions_asdict * documentation * doc for de abify subroutine frame pointer * doc for de abify subroutine frame pointer * doc for de abify subroutine vanilla * explanatory coment * lint * unshadow `str` * Small tweaks of Router.bare_calls (#659) * commentary * first stab at issue #658 * _root_expr members renamed to more accurate _sframes_container * remove obsolete comment * Graviton 4 abi router (#634) * try nightly * typo * try gin * and agin * tg * default `annotate_teal=False` in `compile()` * just look for startswith("def") instead of decorators AST property * fix and test hybrid_w_offset * mokey patched tests should be run serially * temp todos * fix MethodReturn * no more BRUTE_FORCE_TERRIBLE_SKIP + improved interpretation of loading on stack before subroutine * pass the tests * remove unneeded duplicates pyteal printouts in annotate() * Update pyteal/ast/router_test.py * better import grouping * working on nightly in separate branch * Update pyteal/stack_frame.py * comment per CR suggestion * remove a TODO * per CR suggestion, add tests that assert no regressions against algobank fixtures * RPS fixture test to assert no regressions * unit tests with RPS; next up, integration tests * default Compilation.compile() to not calc sourcemap * rps integration test * router improvements + break out slow test * lint * register the custom pytest mark "slow" * bugfix, but don't fix the test cases just yet... * Tightening up types in 2 subroutine.py invokations (#672) * Update pyteal/ast/router.py Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * default optimize object Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments and docs Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments and docs Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update router comments Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * default `wrap_to_name` Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments and docs Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments and docs Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments and docs Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments and docs Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments and docs Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments and docs Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * update comments and docs Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com> * minor * 80% of the way towards complete router mapping * pass the tests * 85% of the way * 90% * 92% * passing tests locally * display only the mypy ERRORS, not the warnings * ci friendly grep * revert grep * wip * passing lint * sort imports * get closer to passing unit tests * pass more tests * fix test_r3sourcemap * improved RPS * skip flaky sub-test * begone Method._sframes_container * lint * shd pass unit tests in CI * more tests skipped due to unstable scratch slots * don't need root_expr in Break() * don't need root_expr in Continue or TealSimpleBlock * EnumInt.clone wasn't needed * revert * cut NatalStackFrame._compiler_gen_DEPRECATED and follow through * improve test legibility * improve test legibility * remove unused pathway for detecting import * lint * unused var * simplify with instance method * clean up * compress and comment * apply review suggestions and fix a couple more typos * per CR nudge - clean up _walk_asts logic * Update pyteal/ast/router.py * Update pyteal/stack_frame.py * Update pyteal/stack_frame.py * revert _debug_asts() * unify RPS so easier to run directly * Update .flake8 --------- Co-authored-by: Hang Su <hang.su@algorand.com> Co-authored-by: Hang Su <87964331+ahangsu@users.noreply.github.com>
- Loading branch information