Skip to content

Commit

Permalink
chore: disable verbose compile for more consistent output stability (#53
Browse files Browse the repository at this point in the history
)
  • Loading branch information
aorumbayev authored Aug 21, 2024
1 parent 70ae198 commit 23a285c
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ For pull requests and pushes to `main` branch against this repository the follow
- - `Algorand Python` smart contract unit tests, that are run using [`algorand-python-testing`](https://pypi.org/project/algorand-python-testing/), which are executed in a Python intepreter emulating major AVM behaviour
- - Python `ApplicationClient` tests that are run against `algokit localnet` and test the behaviour in a real network enviornment
- Smart contract artifacts are built
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md)
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md).
- Smart contract is deployed to a AlgoKit LocalNet instance

> NOTE: By default smart contract artifacts are compiled with `--debug-level` set to 0, to change this, modify the compiler invocation under `smart_contracts/_helpers/build.py`
#### Continuous Deployment

For pushes to `main` branch, after the above checks pass, the following deployment actions are performed:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
contract_path.absolute(),
f"--out-dir={output_dir}",
"--output-arc32",
"--debug-level=0",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ For pull requests and pushes to `main` branch against this repository the follow
- Types are checked using [mypy](https://mypy-lang.org/)
- Typescript `ApplicationClient` tests against `algokit localnet` are executed using [jest](https://jestjs.io/)
- Smart contract artifacts are built
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md)
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md).
- Smart contract is deployed to a AlgoKit LocalNet instance

> NOTE: By default smart contract artifacts are compiled with `--debug-level` set to 0, to change this, modify the compiler invocation under `smart_contracts/_helpers/build.py`
#### Continuous Deployment

For pushes to `main` branch, after the above checks pass, the following deployment actions are performed:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
contract_path.absolute(),
f"--out-dir={output_dir}",
"--output-arc32",
"--debug-level=0",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
contract_path.absolute(),
f"--out-dir={output_dir}",
"--output-arc32",
"--debug-level=0",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
contract_path.absolute(),
f"--out-dir={output_dir}",
"--output-arc32",
"--debug-level=0",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down
4 changes: 3 additions & 1 deletion examples/production_python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ For pull requests and pushes to `main` branch against this repository the follow
- - `Algorand Python` smart contract unit tests, that are run using [`algorand-python-testing`](https://pypi.org/project/algorand-python-testing/), which are executed in a Python intepreter emulating major AVM behaviour
- - Python `ApplicationClient` tests that are run against `algokit localnet` and test the behaviour in a real network enviornment
- Smart contract artifacts are built
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md)
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md).
- Smart contract is deployed to a AlgoKit LocalNet instance

> NOTE: By default smart contract artifacts are compiled with `--debug-level` set to 0, to change this, modify the compiler invocation under `smart_contracts/_helpers/build.py`
#### Continuous Deployment

For pushes to `main` branch, after the above checks pass, the following deployment actions are performed:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
contract_path.absolute(),
f"--out-dir={output_dir}",
"--output-arc32",
"--debug-level=0",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down
1 change: 1 addition & 0 deletions examples/starter_python/smart_contracts/_helpers/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
contract_path.absolute(),
f"--out-dir={output_dir}",
"--output-arc32",
"--debug-level=0",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down
4 changes: 3 additions & 1 deletion template_content/README.md.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,11 @@ For pull requests and pushes to `main` branch against this repository the follow
- Typescript `ApplicationClient` tests against `algokit localnet` are executed using [jest](https://jestjs.io/)
{%- endif %}
- Smart contract artifacts are built
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md)
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md).
- Smart contract is deployed to a AlgoKit LocalNet instance

> NOTE: By default smart contract artifacts are compiled with `--debug-level` set to 0, to change this, modify the compiler invocation under `smart_contracts/_helpers/build.py`

#### Continuous Deployment

For pushes to `main` branch, after the above checks pass, the following deployment actions are performed:
Expand Down
1 change: 1 addition & 0 deletions template_content/smart_contracts/_helpers/build.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
contract_path.absolute(),
f"--out-dir={output_dir}",
"--output-arc32",
"--debug-level=0",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down

0 comments on commit 23a285c

Please sign in to comment.