Skip to content

Commit 23a285c

Browse files
authored
chore: disable verbose compile for more consistent output stability (#53)
1 parent 70ae198 commit 23a285c

File tree

11 files changed

+19
-4
lines changed

11 files changed

+19
-4
lines changed

examples/generators/production_python_smart_contract_python/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,11 @@ For pull requests and pushes to `main` branch against this repository the follow
123123
- - `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
124124
- - Python `ApplicationClient` tests that are run against `algokit localnet` and test the behaviour in a real network enviornment
125125
- Smart contract artifacts are built
126-
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md)
126+
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md).
127127
- Smart contract is deployed to a AlgoKit LocalNet instance
128128

129+
> 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`
130+
129131
#### Continuous Deployment
130132

131133
For pushes to `main` branch, after the above checks pass, the following deployment actions are performed:

examples/generators/production_python_smart_contract_python/smart_contracts/_helpers/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
3131
contract_path.absolute(),
3232
f"--out-dir={output_dir}",
3333
"--output-arc32",
34+
"--debug-level=0",
3435
],
3536
stdout=subprocess.PIPE,
3637
stderr=subprocess.STDOUT,

examples/generators/production_python_smart_contract_typescript/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,11 @@ For pull requests and pushes to `main` branch against this repository the follow
122122
- Types are checked using [mypy](https://mypy-lang.org/)
123123
- Typescript `ApplicationClient` tests against `algokit localnet` are executed using [jest](https://jestjs.io/)
124124
- Smart contract artifacts are built
125-
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md)
125+
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md).
126126
- Smart contract is deployed to a AlgoKit LocalNet instance
127127

128+
> 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`
129+
128130
#### Continuous Deployment
129131

130132
For pushes to `main` branch, after the above checks pass, the following deployment actions are performed:

examples/generators/production_python_smart_contract_typescript/smart_contracts/_helpers/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
3131
contract_path.absolute(),
3232
f"--out-dir={output_dir}",
3333
"--output-arc32",
34+
"--debug-level=0",
3435
],
3536
stdout=subprocess.PIPE,
3637
stderr=subprocess.STDOUT,

examples/generators/starter_python_smart_contract_python/smart_contracts/_helpers/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
3131
contract_path.absolute(),
3232
f"--out-dir={output_dir}",
3333
"--output-arc32",
34+
"--debug-level=0",
3435
],
3536
stdout=subprocess.PIPE,
3637
stderr=subprocess.STDOUT,

examples/generators/starter_python_smart_contract_typescript/smart_contracts/_helpers/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
3131
contract_path.absolute(),
3232
f"--out-dir={output_dir}",
3333
"--output-arc32",
34+
"--debug-level=0",
3435
],
3536
stdout=subprocess.PIPE,
3637
stderr=subprocess.STDOUT,

examples/production_python/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,11 @@ For pull requests and pushes to `main` branch against this repository the follow
123123
- - `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
124124
- - Python `ApplicationClient` tests that are run against `algokit localnet` and test the behaviour in a real network enviornment
125125
- Smart contract artifacts are built
126-
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md)
126+
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md).
127127
- Smart contract is deployed to a AlgoKit LocalNet instance
128128

129+
> 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`
130+
129131
#### Continuous Deployment
130132

131133
For pushes to `main` branch, after the above checks pass, the following deployment actions are performed:

examples/production_python/smart_contracts/_helpers/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
3131
contract_path.absolute(),
3232
f"--out-dir={output_dir}",
3333
"--output-arc32",
34+
"--debug-level=0",
3435
],
3536
stdout=subprocess.PIPE,
3637
stderr=subprocess.STDOUT,

examples/starter_python/smart_contracts/_helpers/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
3131
contract_path.absolute(),
3232
f"--out-dir={output_dir}",
3333
"--output-arc32",
34+
"--debug-level=0",
3435
],
3536
stdout=subprocess.PIPE,
3637
stderr=subprocess.STDOUT,

template_content/README.md.jinja

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,11 @@ For pull requests and pushes to `main` branch against this repository the follow
154154
- Typescript `ApplicationClient` tests against `algokit localnet` are executed using [jest](https://jestjs.io/)
155155
{%- endif %}
156156
- Smart contract artifacts are built
157-
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md)
157+
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md).
158158
- Smart contract is deployed to a AlgoKit LocalNet instance
159159

160+
> 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`
161+
160162
#### Continuous Deployment
161163

162164
For pushes to `main` branch, after the above checks pass, the following deployment actions are performed:

template_content/smart_contracts/_helpers/build.py.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
3434
contract_path.absolute(),
3535
f"--out-dir={output_dir}",
3636
"--output-arc32",
37+
"--debug-level=0",
3738
],
3839
stdout=subprocess.PIPE,
3940
stderr=subprocess.STDOUT,

0 commit comments

Comments
 (0)